]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/dama/dama/sandwich_corollary.ma
tagged 0.5.0-rc1
[helm.git] / matita / contribs / dama / dama / sandwich_corollary.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "sandwich.ma".
16
17 (* 3.17 *)
18 lemma tends_uniq:
19   ∀R.∀ml:mlattice R.∀xn:sequence ml.∀x,y:ml. 
20      xn ⇝ x → xn ⇝ y → δ x y ≈ 0.
21 intros (R ml xn x y H1 H2); unfold tends0 in H1 H2; unfold d2s in H1 H2;
22 intro Axy; lapply (ap_le_to_lt ??? (ap_symmetric ??? Axy) (mpositive ? ml ??)) as ge0;
23 cases (H1 (δ x y/1) (divide_preserves_lt ??? ge0)) (n1 Hn1); clear H1; 
24 cases (H2 (δ x y/1) (divide_preserves_lt ??? ge0)) (n2 Hn2); clear H2;
25 letin N ≝ (S (n2 + n1));
26 cases (Hn1 N ?) (H1 H2); [apply (ltwr ? n2); rewrite < sym_plus; apply le_n;]
27 cases (Hn2 N ?) (H3 H4); [apply (ltwl ? n1); rewrite < sym_plus; apply le_n;]
28 clear H1 H3 Hn2 Hn1 N ge0 Axy; lapply (mtineq ?? x y (xn (S (n2+n1)))) as H5;
29 cut ( δx (xn (S (n2+n1)))+ δ(xn (S (n2+n1))) y <   δx y/1 + δ(xn (S (n2+n1))) y) as H6;[2:
30   apply flt_plusr; apply (Lt≪ ? (msymmetric ????)); assumption]
31 lapply (le_lt_transitive ???? H5 H6) as H7; clear H6;
32 cut (δx y/1+ δ(xn (S (n2+n1))) y < δx y/1+  δx y/1) as H6; [2:apply flt_plusl; assumption]
33 lapply (lt_transitive ???? H7 H6) as ABS; clear H6 H7 H4 H5 H2 n1 n2 xn;
34 lapply (divpow ? (δ x y) 1) as D; lapply (Lt≪ ? (eq_sym ??? D) ABS) as H;
35 change in H with ( δx y/1+ δx y/1< δx y/1+ δx y/1);
36 apply (lt_coreflexive ?? H);
37 qed.
38
39 (* 3.18 *)