# HG changeset patch # User Cezary Kaliszyk # Date 1264517944 -3600 # Node ID de9e5faf1f03ff12d15ed90c5150df6d3ad490c6 # Parent 6267ad688ea8101abe7f50e078efa09180815b2c Hom Theorem with exists unique diff -r 6267ad688ea8 -r de9e5faf1f03 Quot/Examples/SigmaEx.thy --- a/Quot/Examples/SigmaEx.thy Tue Jan 26 14:48:25 2010 +0100 +++ b/Quot/Examples/SigmaEx.thy Tue Jan 26 15:59:04 2010 +0100 @@ -85,17 +85,17 @@ \ fpar\Respects (op = ===> op = ===> alpha_method ===> op =). \ fsgm\Respects (op = ===> (op = ===> alpha_obj) ===> op =). - \ (hom_o\robj \ 'a, hom_d\(char list \ rmethod) list \ 'b, hom_e\char list \ rmethod \ 'c, hom_m\rmethod \ 'd) - \ Respects + Bexeq (prod_rel (alpha_obj ===> op =) (prod_rel (list_rel (prod_rel (op =) alpha_method) ===> op =) (prod_rel ((prod_rel (op =) alpha_method) ===> op =) (alpha_method ===> op =) ) ) - ). + ) +(\ (hom_o\robj \ 'a, hom_d\(char list \ rmethod) list \ 'b, hom_e\char list \ rmethod \ 'c, hom_m\rmethod \ 'd). -( + (\x. hom_o (rVar x) = fvar x) \ (\d. hom_o (rObj d) = fobj (hom_d d) d) \ (\a l. hom_o (rInv a l) = fnvk (hom_o a) a l) \ @@ -130,8 +130,8 @@ lemma liftd: " -\\(hom_o, hom_d, hom_e, hom_m). -( +Ex1 (\(hom_o, hom_d, hom_e, hom_m). + (\x. hom_o (Var x) = fvar x) \ (\d. hom_o (Obj d) = fobj (hom_d d) d) \ (\a l. hom_o (Inv a l) = fnvk (hom_o a) a l) \ @@ -144,6 +144,8 @@ apply (lifting tolift) done +done + lemma tolift': "\ fvar. \ fobj\Respects (op = ===> list_rel (prod_rel (op =) alpha_method) ===> op =).