Alias for multiplying two numbers
Alias for multiplying two numbers
Harshad Deo
0.1
Alias for adding two numbers
Alias for adding two numbers
Harshad Deo
0.1
Alias for checking if the first number is less than the second
Alias for checking if the first number is less than the second
Harshad Deo
0.1
Alias for checking if the first number is less than or equal to the second
Alias for checking if the first number is less than or equal to the second
Harshad Deo
0.1
Alias for checking if the two numbers are equal
Alias for checking if the two numbers are equal
Harshad Deo
0.1
Alias for checking if the first number is greater than the second
Alias for checking if the first number is greater than the second
Harshad Deo
0.1
Alias for checking if the first number is greater than or equal to the second
Alias for checking if the first number is greater than or equal to the second
Harshad Deo
0.1
Alias for getting the result of comparing two numbers
Alias for getting the result of comparing two numbers
Harshad Deo
0.1
Fold to compute the exponent
Fold to compute the exponent
Harshad Deo
0.1
Alias for computing the factorial of the number
Alias for computing the factorial of the number
Harshad Deo
0.1
Fold to compute the increment of a number
Fold to compute the increment of a number
Harshad Deo
0.1
Alias for checking if the number is zero
Alias for checking if the number is zero
Harshad Deo
0.1
Represents zero in peano encoding of natural numbers
Represents zero in peano encoding of natural numbers
Harshad Deo
0.1
Builds a value level representation of the Nat
Builds a value level representation of the Nat
Harshad Deo
Natural number for which the value level representation is being built
0.1
Fold to compute the product
Fold to compute the product
Harshad Deo
0.1
Alias for computing the square of the number
Alias for computing the square of the number
Harshad Deo
0.1
Represents a successor in the peano encoding of natural numbers
Represents a successor in the peano encoding of natural numbers
Harshad Deo
Peano-type to which this is a successor
0.1
Fold to compute the sum
Fold to compute the sum
Harshad Deo
0.1
Alias for computing the exponent of the number
Alias for computing the exponent of the number
Harshad Deo
0.1
Peano 0
Peano 0
Harshad Deo
0.1
Peano 1
Peano 1
Harshad Deo
0.1
Peano 2
Peano 2
Harshad Deo
0.1
Peano 3
Peano 3
Harshad Deo
0.1
Peano 4
Peano 4
Harshad Deo
0.1
Peano 5
Peano 5
Harshad Deo
0.1
Peano 6
Peano 6
Harshad Deo
0.1
Peano 7
Peano 7
Harshad Deo
0.1
Peano 8
Peano 8
Harshad Deo
0.1
Peano 9
Peano 9
Harshad Deo
0.1
Provides implicit definitions to build a value level representation of a Nat
Provides implicit definitions to build a value level representation of a Nat
Harshad Deo
0.1
Builds a value level representation of a Nat
Builds a value level representation of a Nat
Harshad Deo
Nat for which the value level representation is to be built
0.1
Contains implementation traits for Nat and typeconstructor aliases that make usage more pleasant.
1. Additive commutativity:
+[A, B] =:= +[B, A]
2. Additive associativity:
+[A, +[B, C]] =:= +[+[A, B], C]
3. Additive identity:
+[A, _0] =:= A =:= +[_0, A]
4. Multiplicative commutativity:
*[A, B] =:= *[B, A]
5. Multiplicative associativity:
*[A, *[B, C]] =:= *[*[A, B], C]
6. Multiplicative identity:
*[A, _1] =:= A =:= *[_1, A]
7. Distributivity:
*[A, +[B, C]] =:= +[*[A, B], *[A, C]]
8. Zero exponent:
^[A, _0] =:= _1
9. One exponent:
^[_1, A] =:= _1
10. Exponent Identity:
^[A, _1] =:= A
11. Total Order
Author:
Harshad Deo
0.1