Denotational Semantics in Agda
Data.Nat
Initializing search
    pdmosses/xds-agda
    • About
    • Meta-notation
    • ULC
    • PCF
    • Scheme
    pdmosses/xds-agda
    • About
    • Meta-notation
      • Untyped λ-calculus
      • ULC.All
      • ULC.Variables
      • ULC.Terms
      • ULC.Domains
      • ULC.Environments
      • ULC.Semantics
      • ULC.Checks
      • PCF (Plotkin 1977)
      • PCF.All
      • PCF.Domain Notation
      • PCF.Types
      • PCF.Constants
      • PCF.Variables
      • PCF.Terms
      • PCF.Environments
      • PCF.Checks
      • Core Scheme (R5RS)
      • Scheme.All
      • Scheme.Domain Notation
      • Scheme.Abstract Syntax
      • Scheme.Domain Equations
      • Scheme.Auxiliary Functions
      • Scheme.Semantic Functions

    Data.Nat

    ------------------------------------------------------------------------
    -- The Agda standard library
    --
    -- Natural numbers
    ------------------------------------------------------------------------
    
    -- See README.Data.Nat for examples of how to use and reason about
    -- naturals.
    
    {-# OPTIONS --cubical-compatible --safe #-}
    
    module Data.Nat where
    
    ------------------------------------------------------------------------
    -- Publicly re-export the contents of the base module
    
    open import Data.Nat.Base public
    
    ------------------------------------------------------------------------
    -- Publicly re-export queries
    
    open import Data.Nat.Properties public
      using
      -- key values
      ( nonZero?
      -- equalities
      ; _≟_ ; eq?
      -- standard orders & their relationship
      ; _≤?_ ; _≥?_ ; _<?_ ; _>?_
      ; ≤-<-connex ; ≥->-connex ; <-≤-connex ; >-≥-connex
      ; <-cmp
      -- alternative definitions of the orders
      ; _≤′?_; _≥′?_; _<′?_; _>′?_
      ; _≤″?_; _<″?_; _≥″?_; _>″?_
      ; _<‴?_; _≤‴?_; _≥‴?_; _>‴?_
      -- bounded predicates
      ; anyUpTo? ; allUpTo?
      )
    
    ------------------------------------------------------------------------
    -- Deprecated
    
    -- Version 0.17
    
    -- Version 2.0
    
    -- solely for the re-export of this name, formerly in `Data.Nat.Properties.Core`
    open import Data.Nat.Properties public
      using (≤-pred)
    
    Made with Material for MkDocs