]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/substitution/lleq_llor.ma
80bc596f2d94589a11c3c49f7e55ba15b744ca31
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / substitution / lleq_llor.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 "basic_2/substitution/llor.ma".
16 include "basic_2/substitution/lleq_alt.ma".
17
18 (* LAZY EQUIVALENCE FOR LOCAL ENVIRONMENTS **********************************)
19
20 (* Properties on poinwise union for local environments **********************)
21 (*
22 lemma llor_lleq_O: ∀R,L1,L2,T. llpx_sn R 0 T L1 L2 →
23                    ∀L. L1 ⩖[T] L2 ≡ L → L2 ≡[T, 0] L.
24 #R #L1 #L2 #T #H1 #L #H2
25 elim (llpx_sn_llpx_sn_alt … H1) -H1 #HL12 #IH1
26 elim H2 -H2 #_ #HL1 #IH2
27 @lleq_intro_alt // #I2 #I #K2 #K #V2 #V #i #Hi #HnT #HLK2 #HLK
28 lapply (ldrop_fwd_length_lt2 … HLK) #HiL
29 elim (ldrop_O1_lt (Ⓕ) L1 i) // -HiL #I1 #K1 #V1 #HLK1
30 elim (IH1 … HLK1 HLK2) // -IH1
31 [ #H #_ destruct
32   elim (IH2 … HLK1 HLK2 HLK) * /2 width=1 by conj/
33   #H elim HnT -HnT
34 | #H @HnT -HnT
35 ]
36 *)