X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Frt_computation%2Frsx_lpxs.ma;h=f0a53e660691063120d6c34f2e8e67a7dc496a60;hp=bdb9c7de38e6a4f8155406f31c8c8910a4c727a5;hb=bd53c4e895203eb049e75434f638f26b5a161a2b;hpb=3b7b8afcb429a60d716d5226a5b6ab0d003228b1 diff --git a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/rsx_lpxs.ma b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/rsx_lpxs.ma index bdb9c7de3..f0a53e660 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/rt_computation/rsx_lpxs.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/rt_computation/rsx_lpxs.ma @@ -22,14 +22,14 @@ include "basic_2/rt_computation/rsx_rsx.ma". (* Basic_2A1: uses: lsx_intro_alt *) lemma rsx_intro_lpxs (h) (G): - ∀L1,T. (∀L2. ⦃G,L1⦄ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → G ⊢ ⬈*[h,T] 𝐒⦃L2⦄) → - G ⊢ ⬈*[h,T] 𝐒⦃L1⦄. + ∀L1,T. (∀L2. ❪G,L1❫ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → G ⊢ ⬈*[h,T] 𝐒❪L2❫) → + G ⊢ ⬈*[h,T] 𝐒❪L1❫. /4 width=1 by lpx_lpxs, rsx_intro/ qed-. (* Basic_2A1: uses: lsx_lpxs_trans *) lemma rsx_lpxs_trans (h) (G): - ∀L1,T. G ⊢ ⬈*[h,T] 𝐒⦃L1⦄ → - ∀L2. ⦃G,L1⦄ ⊢ ⬈*[h] L2 → G ⊢ ⬈*[h,T] 𝐒⦃L2⦄. + ∀L1,T. G ⊢ ⬈*[h,T] 𝐒❪L1❫ → + ∀L2. ❪G,L1❫ ⊢ ⬈*[h] L2 → G ⊢ ⬈*[h,T] 𝐒❪L2❫. #h #G #L1 #T #HL1 #L2 #H @(lpxs_ind_dx … H) -L2 /2 width=3 by rsx_lpx_trans/ qed-. @@ -37,12 +37,12 @@ qed-. (* Eliminators with unbound rt-computation for full local environments ******) lemma rsx_ind_lpxs_reqx (h) (G) (T) (Q:predicate lenv): - (∀L1. G ⊢ ⬈*[h,T] 𝐒⦃L1⦄ → - (∀L2. ⦃G,L1⦄ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → Q L2) → + (∀L1. G ⊢ ⬈*[h,T] 𝐒❪L1❫ → + (∀L2. ❪G,L1❫ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → Q L2) → Q L1 ) → - ∀L1. G ⊢ ⬈*[h,T] 𝐒⦃L1⦄ → - ∀L0. ⦃G,L1⦄ ⊢ ⬈*[h] L0 → ∀L2. L0 ≛[T] L2 → Q L2. + ∀L1. G ⊢ ⬈*[h,T] 𝐒❪L1❫ → + ∀L0. ❪G,L1❫ ⊢ ⬈*[h] L0 → ∀L2. L0 ≛[T] L2 → Q L2. #h #G #T #Q #IH #L1 #H @(rsx_ind … H) -L1 #L1 #HL1 #IH1 #L0 #HL10 #L2 #HL02 @IH -IH /3 width=3 by rsx_lpxs_trans, rsx_reqx_trans/ -HL1 #K2 #HLK2 #HnLK2 @@ -62,11 +62,11 @@ qed-. (* Basic_2A1: uses: lsx_ind_alt *) lemma rsx_ind_lpxs (h) (G) (T) (Q:predicate lenv): - (∀L1. G ⊢ ⬈*[h,T] 𝐒⦃L1⦄ → - (∀L2. ⦃G,L1⦄ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → Q L2) → + (∀L1. G ⊢ ⬈*[h,T] 𝐒❪L1❫ → + (∀L2. ❪G,L1❫ ⊢ ⬈*[h] L2 → (L1 ≛[T] L2 → ⊥) → Q L2) → Q L1 ) → - ∀L. G ⊢ ⬈*[h,T] 𝐒⦃L⦄ → Q L. + ∀L. G ⊢ ⬈*[h,T] 𝐒❪L❫ → Q L. #h #G #T #Q #IH #L #HL @(rsx_ind_lpxs_reqx … IH … HL) -IH -HL // (**) (* full auto fails *) qed-. @@ -74,10 +74,10 @@ qed-. (* Advanced properties ******************************************************) fact rsx_bind_lpxs_aux (h) (G): - ∀p,I,L1,V. G ⊢ ⬈*[h,V] 𝐒⦃L1⦄ → - ∀Y,T. G ⊢ ⬈*[h,T] 𝐒⦃Y⦄ → - ∀L2. Y = L2.ⓑ{I}V → ⦃G,L1⦄ ⊢ ⬈*[h] L2 → - G ⊢ ⬈*[h,ⓑ{p,I}V.T] 𝐒⦃L2⦄. + ∀p,I,L1,V. G ⊢ ⬈*[h,V] 𝐒❪L1❫ → + ∀Y,T. G ⊢ ⬈*[h,T] 𝐒❪Y❫ → + ∀L2. Y = L2.ⓑ[I]V → ❪G,L1❫ ⊢ ⬈*[h] L2 → + G ⊢ ⬈*[h,ⓑ[p,I]V.T] 𝐒❪L2❫. #h #G #p #I #L1 #V #H @(rsx_ind_lpxs … H) -L1 #L1 #_ #IHL1 #Y #T #H @(rsx_ind_lpxs … H) -Y #Y #HY #IHY #L2 #H #HL12 destruct @@ -95,16 +95,16 @@ qed-. (* Basic_2A1: uses: lsx_bind *) lemma rsx_bind (h) (G): - ∀p,I,L,V. G ⊢ ⬈*[h,V] 𝐒⦃L⦄ → - ∀T. G ⊢ ⬈*[h,T] 𝐒⦃L.ⓑ{I}V⦄ → - G ⊢ ⬈*[h,ⓑ{p,I}V.T] 𝐒⦃L⦄. + ∀p,I,L,V. G ⊢ ⬈*[h,V] 𝐒❪L❫ → + ∀T. G ⊢ ⬈*[h,T] 𝐒❪L.ⓑ[I]V❫ → + G ⊢ ⬈*[h,ⓑ[p,I]V.T] 𝐒❪L❫. /2 width=3 by rsx_bind_lpxs_aux/ qed. (* Basic_2A1: uses: lsx_flat_lpxs *) lemma rsx_flat_lpxs (h) (G): - ∀I,L1,V. G ⊢ ⬈*[h,V] 𝐒⦃L1⦄ → - ∀L2,T. G ⊢ ⬈*[h,T] 𝐒⦃L2⦄ → ⦃G,L1⦄ ⊢ ⬈*[h] L2 → - G ⊢ ⬈*[h,ⓕ{I}V.T] 𝐒⦃L2⦄. + ∀I,L1,V. G ⊢ ⬈*[h,V] 𝐒❪L1❫ → + ∀L2,T. G ⊢ ⬈*[h,T] 𝐒❪L2❫ → ❪G,L1❫ ⊢ ⬈*[h] L2 → + G ⊢ ⬈*[h,ⓕ[I]V.T] 𝐒❪L2❫. #h #G #I #L1 #V #H @(rsx_ind_lpxs … H) -L1 #L1 #HL1 #IHL1 #L2 #T #H @(rsx_ind_lpxs … H) -L2 #L2 #HL2 #IHL2 #HL12 @rsx_intro_lpxs @@ -121,15 +121,15 @@ qed-. (* Basic_2A1: uses: lsx_flat *) lemma rsx_flat (h) (G): - ∀I,L,V. G ⊢ ⬈*[h,V] 𝐒⦃L⦄ → - ∀T. G ⊢ ⬈*[h,T] 𝐒⦃L⦄ → G ⊢ ⬈*[h,ⓕ{I}V.T] 𝐒⦃L⦄. + ∀I,L,V. G ⊢ ⬈*[h,V] 𝐒❪L❫ → + ∀T. G ⊢ ⬈*[h,T] 𝐒❪L❫ → G ⊢ ⬈*[h,ⓕ[I]V.T] 𝐒❪L❫. /2 width=3 by rsx_flat_lpxs/ qed. fact rsx_bind_lpxs_void_aux (h) (G): - ∀p,I,L1,V. G ⊢ ⬈*[h,V] 𝐒⦃L1⦄ → - ∀Y,T. G ⊢ ⬈*[h,T] 𝐒⦃Y⦄ → - ∀L2. Y = L2.ⓧ → ⦃G,L1⦄ ⊢ ⬈*[h] L2 → - G ⊢ ⬈*[h,ⓑ{p,I}V.T] 𝐒⦃L2⦄. + ∀p,I,L1,V. G ⊢ ⬈*[h,V] 𝐒❪L1❫ → + ∀Y,T. G ⊢ ⬈*[h,T] 𝐒❪Y❫ → + ∀L2. Y = L2.ⓧ → ❪G,L1❫ ⊢ ⬈*[h] L2 → + G ⊢ ⬈*[h,ⓑ[p,I]V.T] 𝐒❪L2❫. #h #G #p #I #L1 #V #H @(rsx_ind_lpxs … H) -L1 #L1 #_ #IHL1 #Y #T #H @(rsx_ind_lpxs … H) -Y #Y #HY #IHY #L2 #H #HL12 destruct @@ -146,7 +146,7 @@ elim (rneqx_inv_bind_void … H) -H [ -IHY | -HY -IHL1 -HL12 ] qed-. lemma rsx_bind_void (h) (G): - ∀p,I,L,V. G ⊢ ⬈*[h,V] 𝐒⦃L⦄ → - ∀T. G ⊢ ⬈*[h,T] 𝐒⦃L.ⓧ⦄ → - G ⊢ ⬈*[h,ⓑ{p,I}V.T] 𝐒⦃L⦄. + ∀p,I,L,V. G ⊢ ⬈*[h,V] 𝐒❪L❫ → + ∀T. G ⊢ ⬈*[h,T] 𝐒❪L.ⓧ❫ → + G ⊢ ⬈*[h,ⓑ[p,I]V.T] 𝐒❪L❫. /2 width=3 by rsx_bind_lpxs_void_aux/ qed.