X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Flib%2Fformal_topology%2Fcategories.ma;h=94a8d22ebb6f69dd64c249677e30c74ee7fdb9d3;hb=84b38ac86f1f92b91ae8913cd0dbcb5c3485dc3a;hp=68a02e9642e136b42fa77c608271494e4a13318a;hpb=3dd0d3a7493b73418a5a08e540f23fe82106cef9;p=helm.git diff --git a/matita/matita/lib/formal_topology/categories.ma b/matita/matita/lib/formal_topology/categories.ma index 68a02e964..94a8d22eb 100644 --- a/matita/matita/lib/formal_topology/categories.ma +++ b/matita/matita/lib/formal_topology/categories.ma @@ -13,6 +13,8 @@ (**************************************************************************) include "formal_topology/cprop_connectives.ma". +include "basics/core_notation/compose_2.ma". +include "basics/core_notation/invert_1.ma". inductive eq (A:Type[0]) (x:A) : A → CProp[0] ≝ refl: eq A x x. @@ -128,7 +130,7 @@ interpretation "setoid3 symmetry" 'invert r = (sym3 ???? r). interpretation "setoid2 symmetry" 'invert r = (sym2 ???? r). interpretation "setoid1 symmetry" 'invert r = (sym1 ???? r). interpretation "setoid symmetry" 'invert r = (sym ???? r). -notation ".= r" with precedence 50 for @{'trans $r}. +notation ".= r" with precedence 55 for @{'trans $r}. interpretation "trans3" 'trans r = (trans3 ????? r). interpretation "trans2" 'trans r = (trans2 ????? r). interpretation "trans1" 'trans r = (trans1 ????? r). @@ -244,7 +246,7 @@ definition fi': ∀A,B:CPROP. A = B → B → A. #A #B #e #b @(fi ?? e) assumption. qed. -notation ". r" with precedence 50 for @{'fi $r}. +notation ". r" with precedence 55 for @{'fi $r}. interpretation "fi" 'fi r = (fi' ?? r). definition and_morphism: binary_morphism1 CPROP CPROP CPROP. @@ -279,7 +281,7 @@ definition if_morphism: binary_morphism1 CPROP CPROP CPROP. | @(fi ?? e1) @f @(if ?? e) assumption]] qed. (* -notation > "hvbox(a break ∘ b)" left associative with precedence 55 for @{ comp ??? $a $b }. +notation > "hvbox(a break ∘ b)" left associative with precedence 60 for @{ comp ??? $a $b }. *) record category : Type[1] ≝ { objs:> Type[0]; @@ -292,7 +294,7 @@ record category : Type[1] ≝ { id_neutral_right: ∀o1,o2. ∀a: arrows o1 o2. comp ??? a (id o2) =_0 a }. (* -notation "hvbox(a break ∘ b)" left associative with precedence 55 for @{ 'compose $a $b }. +notation "hvbox(a break ∘ b)" left associative with precedence 60 for @{ 'compose $a $b }. *) record category1 : Type[2] ≝ { objs1:> Type[1]; @@ -360,10 +362,10 @@ record functor2 (C1: category2) (C2: category2) : Type[3] ≝ ∀o1,o2,o3.∀f1:arrows2 ? o1 o2.∀f2:arrows2 ? o2 o3. map_arrows2 ?? (f2 ∘ f1) = map_arrows2 ?? f2 ∘ map_arrows2 ?? f1}. -notation > "F⎽⇒ x" left associative with precedence 60 for @{'map_arrows2 $F $x}. -notation "F\sub⇒ x" left associative with precedence 60 for @{'map_arrows2 $F $x}. +notation > "F⎽⇒ x" left associative with precedence 65 for @{'map_arrows2 $F $x}. +notation "F\sub⇒ x" left associative with precedence 65 for @{'map_arrows2 $F $x}. interpretation "map_arrows2" 'map_arrows2 F x = (fun12 ?? (map_arrows2 ?? F ??) x). - +(* BEGIN HERE definition functor2_setoid: category2 → category2 → setoid3. #C1 #C2 @mk_setoid3 @@ -525,3 +527,4 @@ notation > "r⎻*" non associative with precedence 90 for @{'OR_f_minus_star $r} notation "r \sup ⎻" non associative with precedence 90 for @{'OR_f_minus $r}. notation > "r⎻" non associative with precedence 90 for @{'OR_f_minus $r}. +*)