X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fdama%2Fmetric_lattice.ma;h=ae55b5551dae807bd16ab72fae962914c0e70b4d;hb=3a5b9647787e1402f6886d41824f664db290963f;hp=a4ca3b4f4b6029d692b618aae05eee9438190230;hpb=39c55604f8114e2e8f9f9769acd328de8f19c7e4;p=helm.git diff --git a/helm/software/matita/dama/metric_lattice.ma b/helm/software/matita/dama/metric_lattice.ma index a4ca3b4f4..ae55b5551 100644 --- a/helm/software/matita/dama/metric_lattice.ma +++ b/helm/software/matita/dama/metric_lattice.ma @@ -17,7 +17,7 @@ set "baseuri" "cic:/matita/metric_lattice/". include "metric_space.ma". include "lattice.ma". -record mlattice_ (R : ogroup) : Type ≝ { +record mlattice_ (R : todgroup) : Type ≝ { ml_mspace_: metric_space R; ml_lattice:> lattice; ml_with_: ms_carr ? ml_mspace_ = ap_carr (l_carr ml_lattice) @@ -33,12 +33,12 @@ qed. coercion cic:/matita/metric_lattice/ml_mspace.con. -record is_mlattice (R : ogroup) (ml: mlattice_ R) : Type ≝ { +record is_mlattice (R : todgroup) (ml: mlattice_ R) : Type ≝ { ml_prop1: ∀a,b:ml. 0 < δ a b → a # b; ml_prop2: ∀a,b,c:ml. δ (a∨b) (a∨c) + δ (a∧b) (a∧c) ≤ δ b c }. -record mlattice (R : ogroup) : Type ≝ { +record mlattice (R : todgroup) : Type ≝ { ml_carr :> mlattice_ R; ml_props:> is_mlattice R ml_carr }. @@ -100,6 +100,93 @@ apply (Eq≈ (δ(y∧x) (y∧z))); [apply (meq_l ????? (meet_comm ???));] apply eq_reflexive; qed. +include "sequence.ma". +include "nat/plus.ma". + +lemma ltwl: ∀a,b,c:nat. b + a < c → a < c. +intros 3 (x y z); elim y (H z IH H); [apply H] +apply IH; apply lt_S_to_lt; apply H; +qed. + +lemma ltwr: ∀a,b,c:nat. a + b < c → a < c. +intros 3 (x y z); rewrite > sym_plus; apply ltwl; +qed. + + +definition d2s ≝ + λR.λml:mlattice R.λs:sequence ml.λk.λn. δ (s n) k. +(* +notation "s ⇝ 'Zero'" non associative with precedence 50 for @{'tends0 $s }. + +interpretation "tends to" 'tends s x = + (cic:/matita/sequence/tends0.con _ s). +*) + +axiom core1: ∀G:todgroup.∀e:G.0