X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Freduction%2Fcpx_lleq.ma;h=d2703ad7ce47c837baa5d1beaafb0c41eb28ce5e;hb=1e414c3226307112e8289e014e2941479df7c663;hp=ae6ddac78b7e0bc44e141da5e33210c96ca9f11b;hpb=916c53e11fbf6dda073c8796cd97881c84ec5834;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/reduction/cpx_lleq.ma b/matita/matita/contribs/lambdadelta/basic_2/reduction/cpx_lleq.ma index ae6ddac78..d2703ad7c 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/reduction/cpx_lleq.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/reduction/cpx_lleq.ma @@ -12,9 +12,8 @@ (* *) (**************************************************************************) -include "basic_2/relocation/lleq_leq.ma". include "basic_2/relocation/lleq_ldrop.ma". -include "basic_2/reduction/cpx.ma". +include "basic_2/reduction/cpx_llpx_sn.ma". (* CONTEXT-SENSITIVE EXTENDED PARALLEL REDUCTION FOR TERMS ******************) @@ -44,36 +43,10 @@ lemma lleq_cpx_trans: ∀h,g,G,L2,T1,T2. ⦃G, L2⦄ ⊢ T1 ➡[h, g] T2 → ] qed-. -(* Note: lemma 1000 *) -lemma lleq_cpx_conf_dx: ∀h,g,G,L2,T1,T2. ⦃G, L2⦄ ⊢ T1 ➡[h, g] T2 → - ∀L1. L1 ⋕[T1, 0] L2 → L1 ⋕[T2, 0] L2. -#h #g #G #L2 #T1 #T2 #H elim H -G -L2 -T1 -T2 -[ // -| /3 width=3 by lleq_fwd_length, lleq_sort/ -| #I #G #L2 #K2 #V1 #V2 #W2 #i #HLK2 #_ #HVW2 #IHV12 #L1 #H elim (lleq_inv_lref_ge_dx … H … HLK2) // -H - #K1 #HLK1 #HV1 - lapply (ldrop_fwd_drop2 … HLK1) -HLK1 #HLK1 - lapply (ldrop_fwd_drop2 … HLK2) -HLK2 #HLK2 - @(lleq_lift_le … HLK1 HLK2 … HVW2) -HLK1 -HLK2 -HVW2 /2 width=1 by/ (**) (* full auto too slow *) -| #a #I #G #L2 #V1 #V2 #T1 #T2 #_ #_ #IHV12 #IHT12 #L1 #H elim (lleq_inv_bind_O … H) -H - /4 width=5 by lleq_bind_repl_SO, lleq_bind/ -| #I #G #L2 #V1 #V2 #T1 #T2 #_ #_ #IHV12 #IHT12 #L1 #H elim (lleq_inv_flat … H) -H - /3 width=1 by lleq_flat/ -| #G #L2 #V #T1 #T2 #T #_ #HT2 #IHT12 #L1 #H elim (lleq_inv_bind_O … H) -H - /3 width=10 by lleq_inv_lift_le, ldrop_drop/ -| #G #L2 #V #T1 #T2 #_ #IHT12 #L1 #H elim (lleq_inv_flat … H) -H /2 width=1 by/ -| #G #L2 #V1 #V2 #T #_ #IHV12 #L1 #H elim (lleq_inv_flat … H) -H /2 width=1 by/ -| #a #G #L2 #V1 #V2 #W1 #W2 #T1 #T2 #_ #_ #_ #IHV12 #IHW12 #IHT12 #L1 #H elim (lleq_inv_flat … H) -H - #HV1 #H elim (lleq_inv_bind_O … H) -H - /4 width=5 by lleq_bind_repl_SO, lleq_flat, lleq_bind/ -| #a #G #L2 #V1 #V2 #V #W1 #W2 #T1 #T2 #_ #HV2 #_ #_ #IHV12 #IHW12 #IHT12 #L1 #H elim (lleq_inv_flat … H) -H - #HV1 #H elim (lleq_inv_bind_O … H) -H - #HW1 #HT1 @lleq_bind_O /2 width=1 by/ @lleq_flat (**) (* full auto too slow *) - [ /3 width=10 by lleq_lift_le, ldrop_drop/ - | /3 width=3 by lleq_bind_repl_O/ -] -qed-. - lemma lleq_cpx_conf_sn: ∀h,g,G,L1,T1,T2. ⦃G, L1⦄ ⊢ T1 ➡[h, g] T2 → ∀L2. L1 ⋕[T1, 0] L2 → L1 ⋕[T2, 0] L2. -/4 width=6 by lleq_cpx_conf_dx, lleq_sym/ qed-. +/3 width=6 by llpx_sn_cpx_conf, lift_mono, ex2_intro/ qed-. + +lemma lleq_cpx_conf_dx: ∀h,g,G,L2,T1,T2. ⦃G, L2⦄ ⊢ T1 ➡[h, g] T2 → + ∀L1. L1 ⋕[T1, 0] L2 → L1 ⋕[T2, 0] L2. +/4 width=6 by lleq_cpx_conf_sn, lleq_sym/ qed-.