add new proof

This commit is contained in:
rnhmjoj 2016-11-15 00:05:26 +01:00
parent cbd12fe5b8
commit fc3b3bd927
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

@ -142,6 +142,10 @@ plus_right_id ∷ S n → (n :+ Z) :≡ n
plus_right_id SZ = Refl
plus_right_id (SS n) = cong SS (plus_right_id n)
-- | Left identity of addition
plus_left_id S n (Z :+ n) : n
plus_left_id n = (plus_commut SZ n) (plus_right_id n)
-- | Associative property of addition
plus_assoc S a S b S c (a :+ b) :+ c : a :+ (b :+ c)
plus_assoc SZ _ _ = Refl