-
-
Save bukzor/de7205f73fa8a58d4c62ef823d395962 to your computer and use it in GitHub Desktop.
The simple Formality proofs. https://github.com/moonad/Formality/
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
T False | |
T True | |
| true; | |
Not(A: Type): Type | |
A -> False | |
T Equal<A: Type> ~ (a: A, b: A) | |
| same<a: A> ~ (a, a); | |
// "Given a proof of something False, I have a proof of something that's | |
// False." | |
trivial(x: False): False | |
x | |
// "Given a proof of something false, I can prove anything." | |
absurd<A: Type>(false: False): A | |
case false: | |
not_false: Not(False) | |
trivial | |
not_false2: Not(False) | |
absurd<False> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment