From: Anders Mörtberg Date: Fri, 16 Oct 2015 15:51:13 +0000 (-0400) Subject: Remove some old tests X-Git-Url: https://git.ak3n.com/?a=commitdiff_plain;h=57b9a57caeb8e3952160fe6e78113206b743fb1b;p=cubicaltt.git Remove some old tests --- diff --git a/examples/torus.ctt b/examples/torus.ctt index 871e23f..7fc9cae 100644 --- a/examples/torus.ctt +++ b/examples/torus.ctt @@ -76,7 +76,8 @@ c2t2c_base : (c2 : S1) -> IdP (<_> and S1 S1) (t2c (c2t_base c2)) (base,c2) = sp base -> <_> (base,base) loop @ y -> <_> (base,loop1 @ y) --- the loop goal reduced using the defintional equalties, and with the two binders exchanged. +-- the loop goal reduced using the defintional equalties, and with the +-- two binders exchanged. -- c2t' (loop @ y) c2 = (c2t_loop @ y c2) = c2t_loop' c2 @ y c2t2c_loop' : (c2 : S1) -> IdP ( IdP (<_> and S1 S1) (t2c (c2t_loop @ y c2)) (loop1 @ y , c2)) @@ -91,39 +92,9 @@ c2t2c : (c1 : S1) (c2 : S1) -> IdP (<_> and S1 S1) (t2c (c2t' c1 c2)) (c1,c2) = -- I should be able to do a split inside of an interval binding loop @ y -> \(c : S1) -> c2t2c_loop' c @ y --- ---------------------------------------------------------------------- --- tests - --- p * p --- pp : IdP (<_> Torus) ptT ptT = --- comp Torus (pathOneT{Torus} @ x) [(x=1) -> pathOneT{Torus}@y] - --- f :IdP ( IdP (<_> Torus) (pathTwoT{Torus}@x) (pathTwoT{Torus}@x) ) ( pathOneT{Torus}@y) ( pathOneT{Torus}@y) = --- squareT{Torus} @ x @ y - - --- -- vertically compose two torus squares --- ff : IdP ( IdP (<_> Torus) (pathTwoT{Torus}@x) (pathTwoT{Torus}@x) ) pp pp = --- comp Torus (squareT{Torus} @ x @ y) [(y=1) -> squareT{Torus} @ x @ y] - --- image_of_f : IdP ( IdP (<_> (_ : S1) * S1) (t2c (pathTwoT{Torus}@x)) (t2c (pathTwoT{Torus}@x)) ) ( t2c ((pathOneT{Torus}@x))) ( t2c ((pathOneT{Torus}@x))) = --- t2c (f @ x @ y) - --- image_of_ff : IdP ( IdP (<_> (_ : S1) * S1) (t2c (pathTwoT{Torus}@x)) (t2c (pathTwoT{Torus}@x)) ) ( t2c (pp @ x)) ( t2c (pp @ x)) = --- t2c (ff @ x @ y) - --- diag_of_image_of_ff : IdP (<_> (_ : S1) * S1) (base,base) (base,base) --- = image_of_ff @ x @ x - --- Type checking failed: path endpoints don't match for --- got ( comp (Torus) (pathOneT {Torus} @ !0) [ (!0 = 1) -> pathOneT {Torus} @ !1 ], --- comp (Torus) (pathOneT {Torus} @ !0) [ (!0 = 1) -> pathOneT {Torus} @ !1 ]), --- but expected --- ( comp (Torus) (pathOneT {Torus} @ !0) --- [ (!0 = 0) -> pathOneT {Torus} @ !1 ], --- comp (Torus) (pathOneT {Torus} @ !0) --- [ (!0 = 0) -> pathOneT {Torus} @ !1 ]) +------------------------------------------------------------------------ +-- combine everything to get that Torus = S1 * S1 S1S1equalsTorus : Id U (and S1 S1) Torus = isoId (and S1 S1) Torus c2t t2c t2c2t rem where @@ -131,6 +102,8 @@ S1S1equalsTorus : Id U (and S1 S1) Torus = isoId (and S1 S1) Torus c2t t2c t2c2t TorusEqualsS1S1 : Id U Torus (and S1 S1) = S1S1equalsTorus @ -i + + loopT : U = Id Torus ptT ptT -- funDep (A0 A1 :U) (p:Id U A0 A1) (u0:A0) (u1:A1) :