projects
/
cubicaltt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6701e40
)
funext from interval
author
Simon Huber
<hubsim@gmail.com>
Thu, 9 Apr 2015 11:16:33 +0000
(13:16 +0200)
committer
Simon Huber
<hubsim@gmail.com>
Thu, 9 Apr 2015 11:16:33 +0000
(13:16 +0200)
examples/interval.ctt
[new file with mode: 0644]
patch
|
blob
diff --git a/examples/interval.ctt
b/examples/interval.ctt
new file mode 100644
(file)
index 0000000..
01c49e6
--- /dev/null
+++ b/
examples/interval.ctt
@@ -0,0
+1,13
@@
+module interval where
+
+import prelude
+
+data I = zero | one | seg @ zero ~ one
+
+fext (A B : U) (f g : A -> B) (p : (x : A) -> Id B (f x) (g x)) :
+ Id (A -> B) f g = mapOnPath I (A -> B) (\(i : I) (x : A) -> htpy x i)
+ zero one (<i> seg{I} @ i)
+ where htpy (x : A) : I -> B = split
+ zero -> f x
+ one -> g x
+ seg @ i -> (p x) @ i