Idris2Doc : Data.Prim.Integer

Data.Prim.Integer

(source)

Reexports

importpublic Control.WellFounded
importpublic Data.Prim.Ord
importpublic Algebra.Solver.Ring

Definitions

data(<) : Integer->Integer->Type
  Witness that `m < n === True`.

Totality: total
Visibility: export
Constructor: 
LT : (0_ : m<n=True) ->m<n

Hints:
(0_ : m<n=True) ->m<n
TotalInteger(<)

Fixity Declaration: infix operator, level 6
0mkLT : (0_ : m<n=True) ->m<n
  Contructor for `(<)`.

This can only be used in an erased context.

Totality: total
Visibility: export
0runLT : m<n->m<n=True
  Extractor for `(<)`.

This can only be used in an erased context.

Totality: total
Visibility: export
strictLT : (0_ : m<n) -> Lazy c->c
  We don't trust values of type `(<)` too much,
so we use this when creating magical results.

Totality: total
Visibility: export
0(>) : Integer->Integer->Type
  Flipped version of `(<)`.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 6
0(<=) : Integer->Integer->Type
  `m <= n` mean that either `m < n` or `m === n` holds.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 6
0(>=) : Integer->Integer->Type
  Flipped version of `(<=)`.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 6
0(/=) : Integer->Integer->Type
  `m /= n` mean that either `m < n` or `m > n` holds.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 6
comp : (m : Integer) -> (n : Integer) ->Trichotomy(<)mn
Totality: total
Visibility: export
0plusGT : (k : Integer) -> (m : Integer) -> (n : Integer) ->k<m-> (n+k) < (n+m)
  This axiom, which only holds for unbounded integers, relates
addition and the ordering of integers:

From `k < m` follows `n + k < n + m` for all integers `k`, `m`, and `n`.

Totality: total
Visibility: export
0multPosPosGT0 : (m : Integer) -> (n : Integer) ->0<m->0<n->0< (m*n)
  This axiom, which only holds for unbounded integers, relates
multiplication and the ordering of integers:

From `0 < m` and `0 < n` follows `0 < m * n` for all integers `m` and `n`.

Totality: total
Visibility: export
0oneAfterZero : (n : Integer) ->0<n->1<=n
  There is no integer between 0 and 1.

Totality: total
Visibility: export
0modLT : (n : Integer) -> (d : Integer) ->0<d-> (0<= (n `mod` d), (n `mod` d) <d)
  For positive `d`, `mod n d` is a non-negative number
strictly smaller than `d`.

Totality: total
Visibility: export
0modNegEQ : (n : Integer) -> (d : Integer) ->d<0->n `mod` d=n `mod` negd
Totality: total
Visibility: export
0lawDivMod : (n : Integer) -> (d : Integer) ->d/=0-> (d* (n `div` d)) + (n `mod` d) =n
Totality: total
Visibility: export
sdiv : Integer-> (d : Integer) -> {auto0_ : d/=0} ->Integer
  Safe division.

Totality: total
Visibility: export
smod : Integer-> (d : Integer) -> {auto0_ : d/=0} ->Integer
  Safe modulo.

Totality: total
Visibility: export
0BoundedLT : Integer->Integer->Integer->Type
Totality: total
Visibility: public export
0BoundedGT : Integer->Integer->Integer->Type
Totality: total
Visibility: public export
accessLT : (m : Integer) ->Accessible (BoundedLTlb) m
  Every value of type `Integer` with a fixed lower bound
is accessible with relation to `(<)`.

Totality: total
Visibility: export
accessGT : (m : Integer) ->Accessible (BoundedGTub) m
  Every value of type `Integer` with a fixed upper bound
is accessible with relation to `(>)`.

Totality: total
Visibility: export