X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fnlibrary%2Fsets%2Fsetoids.ma;h=e40dad6f6d20e4e3a1f7624b6f28b5d6056a6ef3;hb=eca7393f8b871fd1d7838cfd5a176a80f4ec48c5;hp=376edc0ceb8fdfdbda4399c046a49bb50ff57eb5;hpb=90ff94e74ceed0954b8599bff55d5c84f15c1b9f;p=helm.git diff --git a/helm/software/matita/nlibrary/sets/setoids.ma b/helm/software/matita/nlibrary/sets/setoids.ma index 376edc0ce..e40dad6f6 100644 --- a/helm/software/matita/nlibrary/sets/setoids.ma +++ b/helm/software/matita/nlibrary/sets/setoids.ma @@ -32,6 +32,10 @@ notation < "[\setoid\ensp\of term 19 x]" non associative with precedence 90 fo interpretation "mk_setoid" 'mk_setoid x = (mk_setoid x ?). interpretation "setoid eq" 'eq t x y = (eq_rel ? (eq0 t) x y). +(* single = is for the abstract equality of setoids, == is for concrete + equalities (that may be lifted to the setoid level when needed *) +notation < "hvbox(a break mpadded width -50% (=)= b)" non associative with precedence 45 for @{ 'eq_low $a $b }. +notation > "a == b" non associative with precedence 45 for @{ 'eq_low $a $b }. notation > "hvbox(a break =_0 b)" non associative with precedence 45 for @{ eq_rel ? (eq0 ?) $a $b }. @@ -99,10 +103,11 @@ ndefinition comp_unary_morphisms: nqed. unification hint 0 ≔ o1,o2,o3:setoid,f:o2 ⇒_0 o3,g:o1 ⇒_0 o2; - R ≟ mk_unary_morphism ?? (composition ??? f g) - (prop1 ?? (comp_unary_morphisms o1 o2 o3 f g)) + R ≟ mk_unary_morphism o1 o3 + (composition ??? (fun1 o2 o3 f) (fun1 o1 o2 g)) + (prop1 o1 o3 (comp_unary_morphisms o1 o2 o3 f g)) (* -------------------------------------------------------------------- *) ⊢ - fun1 ?? R ≡ (composition ??? f g). + fun1 o1 o3 R ≡ composition ??? (fun1 o2 o3 f) (fun1 o1 o2 g). ndefinition comp_binary_morphisms: ∀o1,o2,o3.(o2 ⇒_0 o3) ⇒_0 ((o1 ⇒_0 o2) ⇒_0 (o1 ⇒_0 o3)).