Last active
December 11, 2015 02:08
-
-
Save dagit/4528107 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
module TAMO where | |
open import Relation.Binary.Core | |
data Bool : Set where | |
true : Bool | |
false : Bool | |
data False : Set where | |
record True : Set where | |
isTrue : Bool → Set | |
isTrue true = True | |
isTrue false = False | |
lem-isTrue : {p : Bool} → p ≡ true → isTrue p | |
lem-isTrue refl = _ | |
lem-p≡true : (p : Bool) → isTrue p → p ≡ true | |
lem-p≡true true True = refl | |
lem-p≡true false () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment