Created
December 28, 2024 17:25
-
-
Save ncfavier/7ae26ab98e247427305bef20bfb0938e to your computer and use it in GitHub Desktop.
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
{-# OPTIONS --without-K #-} | |
open import Agda.Primitive renaming (Set to Type) | |
open import Agda.Builtin.Equality | |
module JMeq where | |
data JMeq {ℓ} {A : Type ℓ} (a : A) : {B : Type ℓ} → B → Type (lsuc ℓ) where | |
refl : JMeq a a | |
JMeq-rec | |
: ∀ {ℓ} {A B : Type ℓ} (P : {A : Type ℓ} → A → Type ℓ) {x : A} {y : B} | |
→ P x → JMeq x y → P y | |
JMeq-rec P p refl = p | |
JMeq-refl | |
: ∀ {ℓ} {A : Type ℓ} (P : {A : Type ℓ} → A → Type ℓ) {x : A} (p : P x) | |
→ JMeq-rec P p refl ≡ p | |
JMeq-refl P p = refl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment