add natural exponentiation

This commit is contained in:
rnhmjoj 2016-11-28 21:14:14 +01:00
parent f0b2422711
commit 0994ae2940
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

@ -55,6 +55,11 @@ singletons [d|
Z × m = Z Z × m = Z
(S n) × m = (n × m) + m (S n) × m = (n × m) + m
-- | Exponentiation
(^)
n ^ Z = (S Z)
n ^ (S m) = n × (n ^ m)
-- | Ordering relation < -- | Ordering relation <
(<) 𝔹 (<) 𝔹
Z < Z = F Z < Z = F