Debian Codegraph @

src/Data/Nat.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Natural numbers
5 ------------------------------------------------------------------------
6
7 -- See README.Data.Nat for examples of how to use and reason about
8 -- naturals.
9
10 {-# OPTIONS --cubical-compatible --safe #-}
11
12 module Data.Nat where
13
14 ------------------------------------------------------------------------
15 -- Publicly re-export the contents of the base module
16
17 open import Data.Nat.Base public
18
19 ------------------------------------------------------------------------
20 -- Publicly re-export queries
21
22 open import Data.Nat.Properties public
23 using
24 -- key values
25 ( nonZero?
26 -- equalities
27 ; _≟_ ; eq?
28 -- standard orders & their relationship
29 ; _≤?_ ; _≥?_ ; _<?_ ; _>?_
30 ; ≤-<-connex ; ≥->-connex ; <-≤-connex ; >-≥-connex
31 ; <-cmp
32 -- alternative definitions of the orders
33 ; _≤′?_; _≥′?_; _<′?_; _>′?_
34 ; _≤″?_; _<″?_; _≥″?_; _>″?_
35 ; _<‴?_; _≤‴?_; _≥‴?_; _>‴?_
36 -- bounded predicates
37 ; anyUpTo? ; allUpTo?
38 )
39
40 ------------------------------------------------------------------------
41 -- Deprecated
42
43 -- Version 0.17
44
45 -- Version 2.0
46
47 -- solely for the re-export of this name, formerly in `Data.Nat.Properties.Core`
48 open import Data.Nat.Properties public
49 using (≤-pred)