Skip to content

Instantly share code, notes, and snippets.

@phi16
Last active January 13, 2025 02:35
Show Gist options
  • Save phi16/34dfe2674a674a77c57c9f8148b70789 to your computer and use it in GitHub Desktop.
Save phi16/34dfe2674a674a77c57c9f8148b70789 to your computer and use it in GitHub Desktop.
id = ...
c = id: e
m = id%.
e = primitive
| λ( (id* | id*: e)%, ) e
| λ{ (id* | id*: e)%, } e
| Π( (e | id*: e)%, ) e
| Π{ (e | id*: e)%, } e
| e e
| e {e}
| ( e%, )
| { (id (id* | {id*} | (id*: e) | {id*: e})*[: e] = e)%, }
| Σ( (e | id*: e)%, )
| Σ{ (id*: e)%, }
| e.nat
| e.id
| σ{ (id (id* | {id*} | (id*: e) | {id*: e})*[: e] = e)%, } e
| m.id
| μ(id: e) { (id: e)* }
| ν(id: e) { (id: e)* }
| let d* in e
| e where d*
| ...
d = [c] d
| { d* }
| id { d* }
| id (id* | {id*} | (id*: e) | {id*: e})*[: e] = e
| syntax nat%. ... = ...
| open m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment