X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Freducibility%2Fcpr_ltpr.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Freducibility%2Fcpr_ltpr.ma;h=ab10e3fc69f2060e7d639eb94048a9e7eccd7c28;hb=eb4b3b1b307fc392c36f0be253e6a111553259bc;hp=d3e75f8c0efe4074dc162ba217acba953182f9f4;hpb=85a33f6b6de49ad8076753643df41f39bbedf802;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/reducibility/cpr_ltpr.ma b/matita/matita/contribs/lambdadelta/basic_2/reducibility/cpr_ltpr.ma index d3e75f8c0..ab10e3fc6 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/reducibility/cpr_ltpr.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/reducibility/cpr_ltpr.ma @@ -12,20 +12,20 @@ (* *) (**************************************************************************) -include "basic_2/reducibility/tpr_tpss.ma". +include "basic_2/reducibility/ltpr_tpss.ma". include "basic_2/reducibility/cpr.ma". (* CONTEXT-SENSITIVE PARALLEL REDUCTION ON TERMS ****************************) (* Properties concerning parallel unfold on terms ***************************) -(* Note: we could invoke tpss_weak_all instead of ltpr_fwd_length *) +(* Note: we could invoke tpss_weak_full instead of ltpr_fwd_length *) (* Basic_1: was only: pr2_subst1 *) lemma cpr_tpss_ltpr: ∀L1,L2. L1 ➡ L2 → ∀T1,T2. L2 ⊢ T1 ➡ T2 → ∀d,e,U1. L1 ⊢ T1 ▶* [d, e] U1 → ∃∃U2. L2 ⊢ U1 ➡ U2 & L2 ⊢ T2 ▶* [d, e] U2. #L1 #L2 #HL12 #T1 #T2 * #T #HT1 #HT2 #d #e #U1 #HTU1 -elim (tpr_tpss_ltpr … HL12 … HT1 … HTU1) -L1 -HT1 #U #HU1 #HTU +elim (ltpr_tpr_tpss_conf … HL12 … HT1 … HTU1) -L1 -HT1 #U #HU1 #HTU elim (tpss_conf_eq … HT2 … HTU) -T /3 width=3/ qed. @@ -33,7 +33,7 @@ lemma cpr_ltpr_conf_eq: ∀L1,T1,T2. L1 ⊢ T1 ➡ T2 → ∀L2. L1 ➡ L2 → ∃∃T. L2 ⊢ T1 ➡ T & T2 ➡ T. #L1 #T1 #T2 * #T #HT1 #HT2 #L2 #HL12 >(ltpr_fwd_length … HL12) in HT2; #HT2 -elim (tpr_tpss_ltpr … HL12 … HT2) -L1 /3 width=3/ +elim (ltpr_tpr_tpss_conf … HL12 … HT2) -L1 /3 width=3/ qed. lemma cpr_ltpr_conf_tpss: ∀L1,L2. L1 ➡ L2 → ∀T1,T2. L1 ⊢ T1 ➡ T2 → @@ -42,5 +42,5 @@ lemma cpr_ltpr_conf_tpss: ∀L1,L2. L1 ➡ L2 → ∀T1,T2. L1 ⊢ T1 ➡ T2 → #L1 #L2 #HL12 #T1 #T2 #HT12 #d #e #U1 #HTU1 elim (cpr_ltpr_conf_eq … HT12 … HL12) -HT12 #T #HT1 #HT2 elim (cpr_tpss_ltpr … HL12 … HT1 … HTU1) -L1 -HT1 #U2 #HU12 #HTU2 -lapply (tpss_weak_all … HTU2) -HTU2 #HTU2 /3 width=5/ (**) (* /4 width=5/ is too slow *) +lapply (tpss_weak_full … HTU2) -HTU2 #HTU2 /3 width=5/ (**) (* /4 width=5/ is too slow *) qed.