Skip to content

Instantly share code, notes, and snippets.

View CharlesAverill's full-sized avatar
💪
Getting good

Charles Averill CharlesAverill

💪
Getting good
View GitHub Profile
@Hirrolot
Hirrolot / CoC.ml
Last active July 16, 2024 18:56
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