about summary refs log tree commit diff
path: root/lib/Syntax.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Syntax.ml')
-rw-r--r--lib/Syntax.ml19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Syntax.ml b/lib/Syntax.ml
new file mode 100644
index 0000000..6cd988a
--- /dev/null
+++ b/lib/Syntax.ml
@@ -0,0 +1,19 @@
+type tm =
+  | Var of int
+  | Pi of tm * (* BINDS *) tm
+  | Lam of (* BINDS *) tm
+  | App of tm * tm
+  | Sg of tm * (* BINDS *) tm
+  | Pair of tm * tm
+  | Fst of tm
+  | Snd of tm
+  | Type
+  | Bool
+  | True
+  | False
+  | BoolElim of {
+      motive : (* BINDS *) tm;
+      true_case : tm;
+      false_case : tm;
+      scrut : tm;
+    }