summaryrefslogtreecommitdiff
path: root/itt.ka
diff options
context:
space:
mode:
authorFrancesco Mazzoli <f@mazzo.li>2013-06-10 17:03:52 +0100
committerFrancesco Mazzoli <f@mazzo.li>2013-06-10 17:03:52 +0100
commit220ca85e4c690269298b9e8c1ef1752fad285855 (patch)
tree8a5baaec4bd038e8af7966c49e21b4ea8c0a22a4 /itt.ka
parent2a33412a41393afc6574354625c0d9434f099754 (diff)
...
Diffstat (limited to 'itt.ka')
-rw-r--r--itt.ka17
1 files changed, 17 insertions, 0 deletions
diff --git a/itt.ka b/itt.ka
new file mode 100644
index 0000000..e9decf6
--- /dev/null
+++ b/itt.ka
@@ -0,0 +1,17 @@
+data Empty : * => { }
+
+absurd [A : *] [x : Empty] : A => (
+ Empty-Elim x (\_ => A)
+)
+
+neg [A : *] : * => (A -> Empty)
+
+record Unit : * => tt { }
+
+record Prod : [A : *] [B : A -> *] -> * =>
+ prod {fst : A, snd : B fst}
+
+data Bool : * => { true : Bool | false : Bool }
+
+-- The if_then_else_ is provided by Bool-Elim
+