natural-arithmetic-0.1.0.0: Arithmetic of natural numbers
Arithmetic.Unsafe
newtype Nat (n :: Nat) Source #
A value-level representation of a natural number n.
n
Constructors
Fields
data (<) :: Nat -> Nat -> Type where infix 4 Source #
Proof that the first argument is strictly less than the second argument.
data (<=) :: Nat -> Nat -> Type where infix 4 Source #
Proof that the first argument is less than or equal to the second argument.
Defined in Arithmetic.Unsafe
Methods
id :: a <= a #
(.) :: (b <= c) -> (a <= b) -> a <= c #
data (:=:) :: Nat -> Nat -> Type where infix 4 Source #
Proof that the first argument is equal to the second argument.
id :: a :=: a #
(.) :: (b :=: c) -> (a :=: b) -> a :=: c #