X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Flib%2Fbasics%2Fdeqsets.ma;h=c17db5dc0cb4b1e899ae76533a686ad5322fb450;hb=f38fd769279794d0ca73c8945eac30e8b42e59be;hp=fcc89f3127007036a20a4b09e62b9b72d3bd0570;hpb=347a03a55e60c5a4682e0133454ff87ce21a4e8c;p=helm.git diff --git a/matita/matita/lib/basics/deqsets.ma b/matita/matita/lib/basics/deqsets.ma index fcc89f312..c17db5dc0 100644 --- a/matita/matita/lib/basics/deqsets.ma +++ b/matita/matita/lib/basics/deqsets.ma @@ -14,11 +14,12 @@ include "basics/bool.ma". (****** DeqSet: a set with a decidbale equality ******) -record DeqSet : Type[1] ≝ { carr :> Type[0]; +record DeqSet : Type[1] ≝ { + carr :> Type[0]; eqb: carr → carr → bool; eqb_true: ∀x,y. (eqb x y = true) ↔ (x = y) }. - + notation "a == b" non associative with precedence 45 for @{ 'eqb $a $b }. interpretation "eqb" 'eqb a b = (eqb ? a b). @@ -207,7 +208,8 @@ qed. definition DeqSig ≝ λA:DeqSet.λP:A→Prop. mk_DeqSet (Σx:A.P x) (eq_sigma A P) (eq_sigma_true A P). - + +(* unification hint 0 ≔ C,P; T ≟ carr C, X ≟ DeqSig C P @@ -218,4 +220,4 @@ unification hint 0 ≔ T,P,p1,p2; X ≟ DeqSig T P (* ---------------------------------------- *) ⊢ eq_sigma T P p1 p2 ≡ eqb X p1 p2. - +*)