Skip to content

Instantly share code, notes, and snippets.

@jpm61704
Last active July 30, 2019 15:16
Show Gist options
  • Save jpm61704/3d43fad5db08974162242d16ccdaa2b0 to your computer and use it in GitHub Desktop.
Save jpm61704/3d43fad5db08974162242d16ccdaa2b0 to your computer and use it in GitHub Desktop.
Π-Syn Contexts
infix 5 _,_∶_
data Context : Set where
∅ : Context
_,_∶_ : Context → Id → Expr → Context
infix 4 _∋_∶_
data _∋_∶_ : Context → Id → Expr → Set where
here : ∀ {Γ x A}
-----------------
→ Γ , x ∶ A ∋ x ∶ A
there : ∀ {Γ x y A B}
→ x ≢ y
→ Γ ∋ x ∶ A
-----------------
→ Γ , y ∶ B ∋ x ∶ A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment