X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Frt_computation%2Flprs_lpr.ma;h=e442a66b20268470ff75ac84503bc08231c08a54;hb=cac0166656e08399eaaf1a1e19f0ccea28c36d39;hp=96c53c7dbe92465233710f9ca536464f4ae5f3cc;hpb=8f5533bd34e93eee2a14cdcfd0595be65651bfa7;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/lprs_lpr.ma b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/lprs_lpr.ma index 96c53c7db..e442a66b2 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/lprs_lpr.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/lprs_lpr.ma @@ -12,9 +12,7 @@ (* *) (**************************************************************************) -include "basic_2/relocation/lex_tc.ma". -include "basic_2/rt_computation/cprs_lpr.ma". -include "basic_2/rt_computation/lprs.ma". +include "basic_2/rt_computation/lprs_tc.ma". (* PARALLEL R-COMPUTATION FOR FULL LOCAL ENVIRONMENTS ***********************) @@ -24,25 +22,34 @@ include "basic_2/rt_computation/lprs.ma". lemma lprs_ind_sn (h) (G) (L2): ∀R:predicate lenv. R L2 → (∀L1,L. ⦃G, L1⦄ ⊢ ➡[h] L → ⦃G, L⦄ ⊢ ➡*[h] L2 → R L → R L1) → ∀L1. ⦃G, L1⦄ ⊢ ➡*[h] L2 → R L1. -/3 width=7 by lpr_cprs_trans, cpr_refl, lex_CTC_ind_sn/ qed-. +/4 width=8 by lprs_inv_CTC, lprs_CTC, lpr_cprs_trans, cpr_refl, lex_CTC_ind_sn/ qed-. (* Basic_2A1: was: lprs_ind *) lemma lprs_ind_dx (h) (G) (L1): ∀R:predicate lenv. R L1 → (∀L,L2. ⦃G, L1⦄ ⊢ ➡*[h] L → ⦃G, L⦄ ⊢ ➡[h] L2 → R L → R L2) → ∀L2. ⦃G, L1⦄ ⊢ ➡*[h] L2 → R L2. -/3 width=7 by lpr_cprs_trans, cpr_refl, lex_CTC_ind_dx/ qed-. +/4 width=8 by lprs_inv_CTC, lprs_CTC, lpr_cprs_trans, cpr_refl, lex_CTC_ind_dx/ qed-. (* Properties with unbound rt-transition for full local environments ********) lemma lpr_lprs (h) (G): ∀L1,L2. ⦃G, L1⦄ ⊢ ➡[h] L2 → ⦃G, L1⦄ ⊢ ➡*[h] L2. -/3 width=3 by lpr_cprs_trans, lex_CTC_inj/ qed. +/4 width=3 by lprs_CTC, lpr_cprs_trans, lex_CTC_inj/ qed. (* Basic_2A1: was: lprs_strap2 *) lemma lprs_step_sn (h) (G): ∀L1,L. ⦃G, L1⦄ ⊢ ➡[h] L → ∀L2.⦃G, L⦄ ⊢ ➡*[h] L2 → ⦃G, L1⦄ ⊢ ➡*[h] L2. -/3 width=3 by lpr_cprs_trans, lex_CTC_step_sn/ qed-. +/4 width=3 by lprs_inv_CTC, lprs_CTC, lpr_cprs_trans, lex_CTC_step_sn/ qed-. (* Basic_2A1: was: lpxs_strap1 *) lemma lprs_step_dx (h) (G): ∀L1,L. ⦃G, L1⦄ ⊢ ➡*[h] L → ∀L2. ⦃G, L⦄ ⊢ ➡[h] L2 → ⦃G, L1⦄ ⊢ ➡*[h] L2. -/3 width=3 by lpr_cprs_trans, lex_CTC_step_dx/ qed-. +/4 width=3 by lprs_inv_CTC, lprs_CTC, lpr_cprs_trans, lex_CTC_step_dx/ qed-. + +lemma lprs_strip (h) (G): confluent2 … (lprs h G) (lpr h G). +#h #G #L0 #L1 #HL01 #L2 #HL02 +elim (TC_strip1 … L1 ?? HL02) -HL02 +[ /3 width=3 by lprs_TC, ex2_intro/ | skip +| /2 width=1 by lprs_inv_TC/ +| /2 width=3 by lpr_conf/ +] +qed-.