X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Frt_transition%2Flpx.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Frt_transition%2Flpx.ma;h=cde540dcc53c6f148cb3189e5ecc1baa932c2a47;hb=d7c5846e4a362a366f5600d079e08f8a75b9d566;hp=0000000000000000000000000000000000000000;hpb=ff50a881cc8adf0aa2af7cfc0649bff35efc2f69;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/rt_transition/lpx.ma b/matita/matita/contribs/lambdadelta/basic_2/rt_transition/lpx.ma new file mode 100644 index 000000000..cde540dcc --- /dev/null +++ b/matita/matita/contribs/lambdadelta/basic_2/rt_transition/lpx.ma @@ -0,0 +1,65 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +include "basic_2/notation/relations/predtysn_4.ma". +include "basic_2/relocation/lex.ma". +include "basic_2/rt_transition/cpx.ma". + +(* UNCOUNTED PARALLEL RT-TRANSITION FOR LOCAL ENVIRONMENTS ******************) + +definition lpx: sh → genv → relation lenv ≝ + λh,G. lex (cpx h G). + +interpretation + "uncounted parallel rt-transition (local environment)" + 'PRedTySn h G L1 L2 = (lpx h G L1 L2). + +(* Basic properties *********************************************************) + +(* +lemma lpx_pair: ∀h,g,I,G,K1,K2,V1,V2. ⦃G, K1⦄ ⊢ ⬈[h] K2 → ⦃G, K1⦄ ⊢ V1 ⬈[h] V2 → + ⦃G, K1.ⓑ{I}V1⦄ ⊢ ⬈[h] K2.ⓑ{I}V2. +/2 width=1 by lpx_sn_pair/ qed. +*) + +lemma lpx_refl: ∀h,G. reflexive … (lpx h G). +/2 width=1 by lex_refl/ qed. + +(* Basic inversion lemmas ***************************************************) + +(* Basic_2A1: was: lpx_inv_atom1 *) +lemma lpx_inv_atom_sn: ∀h,G,L2. ⦃G, ⋆⦄ ⊢ ⬈[h] L2 → L2 = ⋆. +/2 width=2 by lex_inv_atom_sn/ qed-. + +(* Basic_2A1: was: lpx_inv_pair1 *) +lemma lpx_inv_pair_sn: ∀h,I,G,L2,K1,V1. ⦃G, K1.ⓑ{I}V1⦄ ⊢ ⬈[h] L2 → + ∃∃K2,V2. ⦃G, K1⦄ ⊢ ⬈[h] K2 & ⦃G, K1⦄ ⊢ V1 ⬈[h] V2 & + L2 = K2.ⓑ{I}V2. +/2 width=1 by lex_inv_pair_sn/ qed-. + +(* Basic_2A1: was: lpx_inv_atom2 *) +lemma lpx_inv_atom_dx: ∀h,G,L1. ⦃G, L1⦄ ⊢ ⬈[h] ⋆ → L1 = ⋆. +/2 width=2 by lex_inv_atom_dx/ qed-. + +(* Basic_2A1: was: lpx_inv_pair2 *) +lemma lpx_inv_pair2_dx: ∀h,I,G,L1,K2,V2. ⦃G, L1⦄ ⊢ ⬈[h] K2.ⓑ{I}V2 → + ∃∃K1,V1. ⦃G, K1⦄ ⊢ ⬈[h] K2 & ⦃G, K1⦄ ⊢ V1 ⬈[h] V2 & + L1 = K1.ⓑ{I}V1. +/2 width=1 by lex_inv_pair_dx/ qed-. + +(* Advanced inversion lemmas ************************************************) + +lemma lpx_inv_pair: ∀h,I1,I2,G,L1,L2,V1,V2. ⦃G, L1.ⓑ{I1}V1⦄ ⊢ ⬈[h] L2.ⓑ{I2}V2 → + ∧∧ ⦃G, L1⦄ ⊢ ⬈[h] L2 & ⦃G, L1⦄ ⊢ V1 ⬈[h] V2 & I1 = I2. +/2 width=1 by lex_inv_pair/ qed-.