X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Frt_computation%2Ffpbs_lpxs.ma;h=2760e2a338e72cd8d351f50e03a5780d9ea5dff4;hp=6f1c516956a8ac4d45494b962a23037a1861d803;hb=ff612dc35167ec0c145864c9aa8ae5e1ebe20a48;hpb=f129bbbfda0e65a5f92ec086246f6e288376d4f9 diff --git a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/fpbs_lpxs.ma b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/fpbs_lpxs.ma index 6f1c51695..2760e2a33 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/fpbs_lpxs.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/fpbs_lpxs.ma @@ -12,29 +12,98 @@ (* *) (**************************************************************************) -include "basic_2/static/ffdeq_lfeq.ma". -include "basic_2/rt_computation/lfpxs_lpxs.ma". -include "basic_2/rt_computation/fpbs_lfpxs.ma". +include "static_2/static/fdeq_fqus.ma". +include "static_2/static/fdeq_fdeq.ma". +include "basic_2/rt_computation/cpxs_fqus.ma". +include "basic_2/rt_computation/cpxs_fdeq.ma". +include "basic_2/rt_computation/lpxs_fdeq.ma". +include "basic_2/rt_computation/fpbs_cpxs.ma". (* PARALLEL RST-COMPUTATION FOR CLOSURES ************************************) -(* Properties with unbound parallel rt-computation on local environments ****) +(* Properties with unbound rt-computation on full local environments *******) -(* Basic_2A1: uses: fpbs_intro_alt *) +lemma lpxs_fpbs: ∀h,o,G,L1,L2,T. ⦃G, L1⦄ ⊢ ⬈*[h] L2 → ⦃G, L1, T⦄ ≥[h, o] ⦃G, L2, T⦄. +#h #o #G #L1 #L2 #T #H @(lpxs_ind_dx … H) -L2 +/3 width=5 by fpbq_lpx, fpbs_strap1/ +qed. + +lemma fpbs_lpxs_trans: ∀h,o,G1,G2,L1,L,T1,T2. ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L, T2⦄ → + ∀L2. ⦃G2, L⦄ ⊢ ⬈*[h] L2 → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +#h #o #G1 #G2 #L1 #L #T1 #T2 #H1 #L2 #H @(lpxs_ind_dx … H) -L2 +/3 width=5 by fpbs_strap1, fpbq_lpx/ +qed-. + +lemma lpxs_fpbs_trans: ∀h,o,G1,G2,L,L2,T1,T2. ⦃G1, L, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄ → + ∀L1. ⦃G1, L1⦄ ⊢ ⬈*[h] L → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +#h #o #G1 #G2 #L #L2 #T1 #T2 #H1 #L1 #H @(lpxs_ind_sn … H) -L1 +/3 width=5 by fpbs_strap2, fpbq_lpx/ +qed-. + +(* Basic_2A1: uses: lpxs_lleq_fpbs *) +lemma lpxs_fdeq_fpbs: ∀h,o,G1,L1,L,T1. ⦃G1, L1⦄ ⊢ ⬈*[h] L → + ∀G2,L2,T2. ⦃G1, L, T1⦄ ≛[h, o] ⦃G2, L2, T2⦄ → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +/3 width=3 by lpxs_fpbs_trans, fdeq_fpbs/ qed. + +lemma fpbs_lpx_trans: ∀h,o,G1,G2,L1,L,T1,T2. ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L, T2⦄ → + ∀L2. ⦃G2, L⦄ ⊢ ⬈[h] L2 → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +/3 width=3 by fpbs_lpxs_trans, lpx_lpxs/ qed-. + +(* Properties with star-iterated structural successor for closures **********) + +lemma fqus_lpxs_fpbs: ∀h,o,G1,G2,L1,L,T1,T2. ⦃G1, L1, T1⦄ ⊐* ⦃G2, L, T2⦄ → + ∀L2. ⦃G2, L⦄ ⊢ ⬈*[h] L2 → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +/3 width=3 by fpbs_lpxs_trans, fqus_fpbs/ qed. + +(* Properties with unbound context-sensitive parallel rt-computation ********) + +lemma cpxs_fqus_lpxs_fpbs: ∀h,o,G1,L1,T1,T. ⦃G1, L1⦄ ⊢ T1 ⬈*[h] T → + ∀G2,L,T2. ⦃G1, L1, T⦄ ⊐* ⦃G2, L, T2⦄ → + ∀L2.⦃G2, L⦄ ⊢ ⬈*[h] L2 → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄. +/3 width=5 by cpxs_fqus_fpbs, fpbs_lpxs_trans/ qed. + +lemma fpbs_cpxs_tdeq_fqup_lpx_trans: ∀h,o,G1,G3,L1,L3,T1,T3. ⦃G1, L1, T1⦄ ≥ [h, o] ⦃G3, L3, T3⦄ → + ∀T4. ⦃G3, L3⦄ ⊢ T3 ⬈*[h] T4 → ∀T5. T4 ≛[h, o] T5 → + ∀G2,L4,T2. ⦃G3, L3, T5⦄ ⊐+ ⦃G2, L4, T2⦄ → + ∀L2. ⦃G2, L4⦄ ⊢ ⬈[h] L2 → ⦃G1, L1, T1⦄ ≥ [h, o] ⦃G2, L2, T2⦄. +#h #o #G1 #G3 #L1 #L3 #T1 #T3 #H13 #T4 #HT34 #T5 #HT45 #G2 #L4 #T2 #H34 #L2 #HL42 +@(fpbs_lpx_trans … HL42) -L2 (**) (* full auto too slow *) +@(fpbs_fqup_trans … H34) -G2 -L4 -T2 +/3 width=3 by fpbs_cpxs_trans, fpbs_tdeq_trans/ +qed-. + +(* Advanced properties ******************************************************) + +(* Basic_2A1: uses: fpbs_intro_alt *) lemma fpbs_intro_star: ∀h,o,G1,L1,T1,T. ⦃G1, L1⦄ ⊢ T1 ⬈*[h] T → ∀G,L,T0. ⦃G1, L1, T⦄ ⊐* ⦃G, L, T0⦄ → ∀L0. ⦃G, L⦄ ⊢ ⬈*[h] L0 → ∀G2,L2,T2. ⦃G, L0, T0⦄ ≛[h, o] ⦃G2, L2, T2⦄ → ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄ . -/3 width=9 by fpbs_intro_fstar, lfpxs_lpxs/ qed. +/3 width=5 by cpxs_fqus_lpxs_fpbs, fpbs_strap1, fpbq_fdeq/ qed. -(* Eliminators with unbound parallel rt-computation on local environments ***) +(* Advanced inversion lemmas *************************************************) (* Basic_2A1: uses: fpbs_inv_alt *) lemma fpbs_inv_star: ∀h,o,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ≥[h, o] ⦃G2, L2, T2⦄ → ∃∃G,L,L0,T,T0. ⦃G1, L1⦄ ⊢ T1 ⬈*[h] T & ⦃G1, L1, T⦄ ⊐* ⦃G, L, T0⦄ & ⦃G, L⦄ ⊢ ⬈*[h] L0 & ⦃G, L0, T0⦄ ≛[h, o] ⦃G2, L2, T2⦄. -#h #o #G1 #G2 #L1 #L2 #T1 #T2 #H -elim (fpbs_inv_fstar … H) -H #G #L #L0 #T #T0 #HT1 #H10 #HL0 #H02 -elim (lfpxs_inv_lpxs_lfeq … HL0) -HL0 #L3 #HL3 #HL30 -/3 width=11 by lfeq_lfdeq_trans, ex4_5_intro/ +#h #o #G1 #G2 #L1 #L2 #T1 #T2 #H @(fpbs_ind_dx … H) -G1 -L1 -T1 +[ /2 width=9 by ex4_5_intro/ +| #G1 #G0 #L1 #L0 #T1 #T0 * -G0 -L0 -T0 + [ #G0 #L0 #T0 #H10 #_ * #G3 #L3 #L4 #T3 #T4 #HT03 #H34 #HL34 #H42 + elim (fquq_cpxs_trans … HT03 … H10) -T0 + /3 width=9 by fqus_strap2, ex4_5_intro/ + | #T0 #HT10 #_ * #G3 #L3 #L4 #T3 #T4 #HT03 #H34 #HL34 #H42 + /3 width=9 by cpxs_strap2, ex4_5_intro/ + | #L0 #HL10 #_ * #G3 #L3 #L4 #T3 #T4 #HT13 #H34 #HL34 #H42 + lapply (lpx_cpxs_trans … HT13 … HL10) -HT13 #HT13 + elim (lpx_fqus_trans … H34 … HL10) -L0 + /3 width=9 by lpxs_step_sn, cpxs_trans, ex4_5_intro/ + | #G0 #L0 #T0 #H10 #_ * #G3 #L3 #L4 #T3 #T4 #HT03 #H34 #HL34 #H42 + elim (fdeq_cpxs_trans … H10 … HT03) -T0 #T0 #HT10 #H03 + elim (fdeq_fqus_trans … H03 … H34) -G0 -L0 -T3 #G0 #L0 #T3 #H03 #H34 + elim (fdeq_lpxs_trans … H34 … HL34) -L3 #L3 #HL03 #H34 + /3 width=13 by fdeq_trans, ex4_5_intro/ + ] +] qed-.