]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/etc_2A1/append/cpr.etc
update in binaries for λδ
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / etc_2A1 / append / cpr.etc
1 include "basic_2/grammar/cl_shift.ma".
2 include "basic_2/relocation/ldrop_append.ma".
3
4 lemma cpr_append: ∀G. l_appendable_sn … (cpr G).
5 #G #K #T1 #T2 #H elim H -G -K -T1 -T2
6 /2 width=3 by cpr_bind, cpr_flat, cpr_zeta, cpr_tau, cpr_beta, cpr_theta/
7 #G #K #K0 #V1 #V2 #W2 #i #HK0 #_ #HVW2 #IHV12 #L
8 lapply (ldrop_fwd_length_lt2 … HK0) #H
9 @(cpr_delta … (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 cpr_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
17   @(ex2_2_intro … (⋆)) // (**) (* explicit constructor *)
18 | #I #L1 #V1 #IH #L #T1 #X
19   >shift_append_assoc normalize #H
20   elim (cpr_inv_bind1 … H) -H *
21   [ #V0 #T0 #_ #HT10 #H destruct
22     elim (IH … HT10) -IH -HT10 #L2 #T2 #HL12 #H destruct
23     >append_length >HL12 -HL12
24     @(ex2_2_intro … (⋆.ⓑ{I}V0@@L2) T2) [ >append_length ] /2 width=3 by trans_eq/ (**) (* explicit constructor *)
25   | #T #_ #_ #H destruct
26   ]
27 ]
28 qed-.
29