Created
September 26, 2011 11:32
-
-
Save msakai/1242059 to your computer and use it in GitHub Desktop.
John Major's equality in Agda2
This file contains 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
-- John Major's equality is definable in Agda2! | |
module JMeq where | |
data JMeq {A : Set} (a : A) : {B : Set} → B → Set where | |
refl : JMeq a a | |
JMeq-elim | |
: {A : Set} → (a a' : A) → (e : JMeq a a') | |
→ (P : (a' : A) → JMeq a a' → Set) | |
→ P a refl → P a' e | |
JMeq-elim a .a refl P P-prf = P-prf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment