Skip to content

Instantly share code, notes, and snippets.

@Russoul
Created July 5, 2024 12:21
Show Gist options
  • Select an option

  • Save Russoul/dde12b87116f43f9d2870668ec699331 to your computer and use it in GitHub Desktop.

Select an option

Save Russoul/dde12b87116f43f9d2870668ec699331 to your computer and use it in GitHub Desktop.
Simple extrinsically typed signatures with two universes (one included in another)
------------ SYNTAX -------------
Γ ::= ε | Γ (x : A)
A, B, f, e ::= Sort | Sort₁ | x | f e | (x : A) → B
------------ JUDGEMENT FORMS -------------
Γ con
Γ con
----------
Γ ⊦ A sig
Γ ⊦ A sig
---------
Γ ⊦ a : A
------------ INFERENCE RULES -------------
ε con
Γ con
Γ ⊦ A sig
-------------
Γ (x : A) con
Γ con
------------
Γ ⊦ Sort sig
Γ con
------------
Γ ⊦ Sort₁ sig
Γ con
----------------
Γ ⊦ Sort : Sort₁
Γ ⊦ A : Sort
-------------
Γ ⊦ A : Sort₁
Γ ⊦ A : Sort₁
-------------
Γ ⊦ A sig
Γ ⊦ A : Sort₁
Γ (x : A) ⊦ B sig
-------------------
Γ ⊦ (x : A) → B sig
Γ₀ (x : A) Γ₁ ⊦ x : A
Γ ⊦ f : (x : A) → B
Γ ⊦ e : A
-------------------
Γ ⊦ f e : B[e/x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment