Binary naturals: Nearly got the monoid structure the same (#30)

This commit is contained in:
Patrick Stevens
2019-07-28 14:36:40 +01:00
committed by GitHub
parent 0c8e0f94ec
commit 226f1ad0f7
2 changed files with 76 additions and 10 deletions

View File

@@ -831,3 +831,6 @@ module Numbers.Naturals where
productZeroImpliesOperandZero {zero} {b} pr = inl refl
productZeroImpliesOperandZero {succ a} {zero} pr = inr refl
productZeroImpliesOperandZero {succ a} {succ b} ()
sumZeroImpliesOperandsZero : (a : ) {b : } a +N b 0 (a 0) && (b 0)
sumZeroImpliesOperandsZero zero {zero} pr = refl ,, refl