Created
August 31, 2019 18:45
-
-
Save MarcelineVQ/19d59a14f994fcd01521a05f0b945da9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data Foo : Nat -> Nat -> Type where | |
| Uuuh : Foo Z 0 | |
| Aaah : Foo x y -> Foo x w -> Foo (S x) (y+w) | |
| try_contradict : Foo n 0 -> IsSucc n -> Void | |
| try_contradict Uuuh ItIsSucc impossible | |
| try_contradict (Aaah f g {y=Z} {w=Z} {x = Z}) ItIsSucc = ?valid1 | |
| try_contradict (Aaah f g {y=Z} {w=Z} {x = (S k)}) ItIsSucc = ?valid2 | |
| try_contradict (Aaah f g {y=Z} {w=S k}) ItIsSucc impossible | |
| try_contradict (Aaah f g {y=S j} {w=Z}) ItIsSucc impossible | |
| try_contradict (Aaah f g {y=S j} {w=S k}) ItIsSucc impossible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment