Implement subtraction on the binary naturals (#45)

This commit is contained in:
Patrick Stevens
2019-09-22 08:36:41 +01:00
committed by GitHub
parent d4ebcc04ce
commit b92e6b2dd8
8 changed files with 922 additions and 2 deletions

View File

@@ -35,5 +35,5 @@ module Maybe where
noNotYes : {a : _} {A : Set a} {b : A} (no yes b) False
noNotYes ()
mapMaybePreservesNo : {a b : _} {A : Set a} {B : Set b} (f : A B) (x : Maybe A) mapMaybe f x no x no
mapMaybePreservesNo f no pr = refl
mapMaybePreservesNo : {a b : _} {A : Set a} {B : Set b} {f : A B} {x : Maybe A} mapMaybe f x no x no
mapMaybePreservesNo {f = f} {no} pr = refl