Skip to content

Instantly share code, notes, and snippets.

@dagit
Last active December 11, 2015 02:08
Show Gist options
  • Save dagit/4528107 to your computer and use it in GitHub Desktop.
Save dagit/4528107 to your computer and use it in GitHub Desktop.
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