add new proof

This commit is contained in:
rnhmjoj 2016-11-27 23:24:10 +01:00
parent 9d3ec1d2ad
commit 3714f048cf
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

@ -170,10 +170,15 @@ plus_assoc (SS a) b c = cong SS (plus_assoc a b c)
-- | Commutative property of addition -- | Commutative property of addition
plus_commut S n S m (n :+ m) : (m :+ n) plus_commut S n S m (n :+ m) : (m :+ n)
plus_commut n SZ = plus_right_id n plus_commut n SZ = plus_right_id n
plus_commut n (SS m) = plus_commut n (SS m) =
sym (succ_right n m) cong SS (plus_commut n m) succ_left m n sym (succ_right n m) cong SS (plus_commut n m) succ_left m n
-- | Left identity of multiplication
cross_left_id S n (S Z) :× n : n
cross_left_id SZ = Refl
cross_left_id (SS n) = cong SS (cross_left_id n)
-- | Minimum of itself -- | Minimum of itself
min_self S n Min n n : n min_self S n Min n n : n
min_self SZ = Refl min_self SZ = Refl