]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/static/lsubr_drops.ma
renaming in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / static / lsubr_drops.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/relocation/drops.ma".
16 include "basic_2/static/lsubr.ma".
17
18 (* RESTRICTED REFINEMENT FOR LOCAL ENVIRONMENTS *****************************)
19
20 (* Forward lemmas with generic slicing for local environments ***************)
21
22 (* Basic_2A1: includes: lsubr_fwd_drop2_pair *)
23 lemma lsubr_fwd_drops2_bind: âˆ€L1,L2. L1 âŤƒ L2 â†’ 
24                              âˆ€b,f,I,K2. đ”âŚƒf⦄ â†’ âŹ‡*[b, f] L2 â‰˜ K2.ⓘ{I} â†’
25                              âˆ¨âˆ¨ âˆƒâˆƒK1. K1 âŤƒ K2 & âŹ‡*[b, f] L1 â‰˜ K1.ⓘ{I}
26                               | âˆƒâˆƒK1,W,V. K1 âŤƒ K2 & âŹ‡*[b, f] L1 â‰˜ K1.ⓓⓝW.V & I = BPair Abst W
27                               | âˆƒâˆƒJ1,J2,K1,V. K1 âŤƒ K2 & âŹ‡*[b, f] L1 â‰˜ K1.ⓑ{J1}V & I = BUnit J2.
28 #L1 #L2 #H elim H -L1 -L2
29 [ #b #f #I #K2 #_ #H
30   elim (drops_inv_atom1 â€Ś H) -H #H destruct
31 | #J #L1 #L2 | #L1 #L2 #V #W | #I1 #I2 #L1 #L2 #V1
32 ]
33 #HL12 #IH #b #f #I #K2 #Hf #H
34 elim (drops_inv_bind1_isuni â€Ś Hf H) -Hf -H *
35 [1,3,5: #Hf #H destruct -IH
36   /4 width=6 by drops_refl, or3_intro0, or3_intro1, or3_intro2, ex3_4_intro, ex3_3_intro, ex2_intro/
37 |2,4,6: #g #Hg #HLK2 #H destruct -HL12
38   elim (IH â€Ś Hg HLK2) -IH -Hg -HLK2 *
39   /4 width=6 by drops_drop, or3_intro0, or3_intro1, or3_intro2, ex3_4_intro, ex3_3_intro, ex2_intro/
40 ]
41 qed-.
42
43 (* Basic_2A1: includes: lsubr_fwd_drop2_abbr *)
44 lemma lsubr_fwd_drops2_abbr: âˆ€L1,L2. L1 âŤƒ L2 â†’
45                              âˆ€b,f,K2,V.  đ”âŚƒf⦄ â†’ âŹ‡*[b, f] L2 â‰˜ K2.ⓓV â†’
46                              âˆƒâˆƒK1. K1 âŤƒ K2 & âŹ‡*[b, f] L1 â‰˜ K1.ⓓV.
47 #L1 #L2 #HL12 #b #f #K2 #V #Hf #HLK2
48 elim (lsubr_fwd_drops2_bind â€Ś HL12 â€Ś Hf HLK2) -L2 -Hf // *
49 [ #K1 #W #V #_ #_ #H destruct
50 | #I1 #I2 #K1 #V #_ #_ #H destruct
51 ]
52 qed-.