]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/etc_2A1/append/cpys0.etc
update in binaries for λδ
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / etc_2A1 / append / cpys0.etc
1 include "basic_2/grammar/cl_shift.ma".
2 include "basic_2/relocation/ldrop_append.ma".
3
4 lemma cpys_append: ∀G. l_appendable_sn … (cpys G).
5 #G #K #T1 #T2 #H elim H -G -K -T1 -T2
6 /2 width=3 by cpys_bind, cpys_flat/
7 #I #G #K #K0 #V1 #V2 #W2 #i #HK0 #_ #HVW2 #IHV12 #L
8 lapply (ldrop_fwd_length_lt2 … HK0) #H
9 @(cpys_delta … I … (L@@K0) V1 … HVW2) // 
10 @(ldrop_O1_append_sn_le … HK0) /2 width=2 by lt_to_le/ (**) (* /3/ does not work *)
11 qed.
12
13 lemma cpys_fwd_shift1: ∀G,L1,L,T1,T. ⦃G, L⦄ ⊢ L1 @@ T1 ▶*× T →
14                        ∃∃L2,T2. |L1| = |L2| & T = L2 @@ T2.
15 #G #L1 @(lenv_ind_dx … L1) -L1 normalize
16 [ #L #T1 #T #HT1 @(ex2_2_intro … (⋆)) // (**) (* explicit constructor *)
17 | #I #L1 #V1 #IH #L #T1 #X >shift_append_assoc normalize
18   #H elim (cpys_inv_bind1 … H) -H
19   #V0 #T0 #_ #HT10 #H destruct
20   elim (IH … HT10) -IH -HT10 #L2 #T2 #HL12 #H destruct
21   >append_length >HL12 -HL12
22   @(ex2_2_intro … (⋆.ⓑ{I}V0@@L2) T2) [ >append_length ] /2 width=3 by trans_eq/ (**) (* explicit constructor *)
23 ]
24 qed-.