Skip to content

Instantly share code, notes, and snippets.

View steven-mathew's full-sized avatar

Steven steven-mathew

View GitHub Profile
@hirrolot
hirrolot / CoC.ml
Last active February 3, 2025 06:02
Barebones lambda cube in OCaml
(* The syntax of our calculus. Notice that types are represented in the same way
as terms, which is the essence of CoC. *)
type term =
| Var of string
| Appl of term * term
| Binder of binder * string * term * term
| Star
| Box
and binder = Lam | Pi