From: Simon Huber Date: Sun, 28 Jun 2015 00:41:57 +0000 (+0200) Subject: Fixed lemCompInv X-Git-Url: https://git.ak3n.com/?a=commitdiff_plain;h=d26380a46761833d6a070b1385f59dfb10d02689;p=cubicaltt.git Fixed lemCompInv --- diff --git a/examples/prelude.ctt b/examples/prelude.ctt index f161fb8..3af7ae7 100644 --- a/examples/prelude.ctt +++ b/examples/prelude.ctt @@ -68,8 +68,16 @@ compDown (A : U) (a a' b b' : A) (p : Id A a a') (q: Id A b b') : Id A a' b' -> Id A a b = compUp A a' a b' b (inv A a a' p) (inv A b b' q) --- lemCompInv (A:U) (a b c:A) (p:Id A a b) (q:Id A b c) : Id (Id A a b) (compId A a c b (compId A a b c p q) (inv A b c q)) p = --- comp A (comp A (p @ i) [(i=1) -> q @ (-j /\ k)]) [(i=1) -> q @ (-j /\ - k)] +lemCompInv (A:U) (a b c:A) (p:Id A a b) (q:Id A b c) + : Id (Id A a b) (compId A a c b (compId A a b c p q) (inv A b c q)) p = + comp (<_>A) + ((fill (<_>A) (p @ i) [(i=0) -> <_>a, (i=1) -> q]) @ -j) + [ (i=0) -> <_> a + , (i=1) -> q @ - (j \/ k) + , (j=0) -> fill (<_>A) ((compId A a b c p q @ i)) + [(i=0) -> <_>a, (i=1) -> q @ -k ] + , (j=1) -> <_> p @ i + ] lemInv (A:U) (a b:A) (p:Id A a b) : Id (Id A b b) (compId A b a b (inv A a b p) p) (refl A b) = comp (<_>A) (p @ (-i \/ j)) [(i=0) -> b, (j=1) -> b, (i=1) -> p @ (j \/ k)]