summaryrefslogtreecommitdiff
path: root/demo.ka
diff options
context:
space:
mode:
authorFrancesco Mazzoli <f@mazzo.li>2013-06-24 10:33:46 +0100
committerFrancesco Mazzoli <f@mazzo.li>2013-06-24 10:33:46 +0100
commit6731f090d5edb85f628501e5dcc513e542fce325 (patch)
treeeb471990b9a95d9e6dd49cc2217c23d3d2e9f8b9 /demo.ka
parentec1119dffc5801526058a816d498b58e3c8f9e7f (diff)
...
Diffstat (limited to 'demo.ka')
-rw-r--r--demo.ka23
1 files changed, 2 insertions, 21 deletions
diff --git a/demo.ka b/demo.ka
index 8e9ba5f..60ebdea 100644
--- a/demo.ka
+++ b/demo.ka
@@ -12,30 +12,11 @@ data List : [A : *] → * ⇒
{ nil : List A | cons : A → List A → List A }
nonEmpty [A : *] [l : List A] : * ⇒ (
- {| h1 |}
-)
-
-nonEmpty [A : *] [l : List A] : * ⇒ (
- List-Elim l (λ _ ⇒ *) {|h1|} {|h2|}
-)
-
-nonEmpty [A : *] [l : List A] : * ⇒ (
List-Elim l (λ _ ⇒ *) Empty (λ _ _ _ ⇒ Unit)
)
head [A : *] [l : List A] : nonEmpty A l → A ⇒ (
List-Elim l (λ l ⇒ nonEmpty A l → A)
- {|h1|} {|h2|}
-)
-
-head [A : *] [l : List A] : nonEmpty A l → A ⇒ (
- List-Elim l (λ l ⇒ nonEmpty A l → A)
- (λ p ⇒ {|h1 p|})
- (λ x l pl pxl ⇒ {|h2 x l pl pxl|})
-)
-
-head [A : *] [l : List A] : nonEmpty A l → A ⇒ (
- List-Elim l (λ l ⇒ nonEmpty A l → A)
- (λ p ⇒ absurd A p)
- (λ x l pl pxl ⇒ x)
+ {| h1 |}
+ {| h2 |}
)