1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "static_2/relocation/drops.ma".
16 include "static_2/static/lsubr.ma".
18 (* RESTRICTED REFINEMENT FOR LOCAL ENVIRONMENTS *****************************)
20 (* Forward lemmas with generic slicing for local environments ***************)
22 (* Basic_2A1: includes: lsubr_fwd_drop2_pair *)
23 lemma lsubr_fwd_drops2_bind:
24 âL1,L2. L1 ⍠L2 â
25 âb,f,I,K2. đâ¨f⊠â âŠ*[b,f] L2 â K2.â[I] â
26 â¨â¨ ââK1. K1 ⍠K2 & âŠ*[b,f] L1 â K1.â[I]
27 | ââK1,W,V. K1 ⍠K2 & âŠ*[b,f] L1 â K1.ââW.V & I = BPair Abst W
28 | ââJ1,J2,K1,V. K1 ⍠K2 & âŠ*[b,f] L1 â K1.â[J1]V & I = BUnit J2.
29 #L1 #L2 #H elim H -L1 -L2
31 elim (drops_inv_atom1 ⌠H) -H #H destruct
32 | #J #L1 #L2 | #L1 #L2 #V #W | #I1 #I2 #L1 #L2 #V1
34 #HL12 #IH #b #f #I #K2 #Hf #H
35 elim (drops_inv_bind1_isuni ⌠Hf H) -Hf -H *
36 [1,3,5: #Hf #H destruct -IH
37 /4 width=6 by drops_refl, or3_intro0, or3_intro1, or3_intro2, ex3_4_intro, ex3_3_intro, ex2_intro/
38 |2,4,6: #g #Hg #HLK2 #H destruct -HL12
39 elim (IH ⌠Hg HLK2) -IH -Hg -HLK2 *
40 /4 width=6 by drops_drop, or3_intro0, or3_intro1, or3_intro2, ex3_4_intro, ex3_3_intro, ex2_intro/
44 (* Basic_2A1: includes: lsubr_fwd_drop2_abbr *)
45 lemma lsubr_fwd_drops2_abbr:
46 âL1,L2. L1 ⍠L2 â
47 âb,f,K2,V. đâ¨f⊠â âŠ*[b,f] L2 â K2.âV â
48 ââK1. K1 ⍠K2 & âŠ*[b,f] L1 â K1.âV.
49 #L1 #L2 #HL12 #b #f #K2 #V #Hf #HLK2
50 elim (lsubr_fwd_drops2_bind ⌠HL12 ⌠Hf HLK2) -L2 -Hf // *
51 [ #K1 #W #V #_ #_ #H destruct
52 | #I1 #I2 #K1 #V #_ #_ #H destruct