(**************************************************************************) (* ___ *) (* ||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/reducibility/cpr_tpss.ma". include "basic_2/reducibility/cpr_cpr.ma". include "basic_2/reducibility/cfpr_ltpss.ma". (* CONTEXT-SENSITIVE PARALLEL REDUCTION ON CLOSURES *************************) (* Advanced properties ******************************************************) lemma fpr_all: ∀L1,L. L1 ➡ L → ∀L2,T1,T2. L ⊢ T1 ➡ T2 → L ⊢ ▶* [0, |L|] L2 → ⦃L1, T1⦄ ➡ ⦃L2, T2⦄. #L1 #L #H elim H -L1 -L [ #L2 #T1 #T2 #HT12 #HL2 lapply (ltpss_sn_inv_atom1 … HL2) -HL2 #H destruct lapply (cpr_inv_atom … HT12) -HT12 /2 width=1/ | #I #L1 #L #V1 #V #_ #HV1 #IH #X #T1 #T2 #HT12 #H elim (ltpss_sn_inv_tpss21 … H ?) -H // append_length >append_length #H lapply (injective_plus_r … H) -H #H @(ex3_intro … (⋆.ⓑ{I}V@@Y)) append_length H -H >commutative_plus /3 width=1/ ] qed-. lemma fpr_inv_all: ∀L1,L2,T1,T2. ⦃L1, T1⦄ ➡ ⦃L2, T2⦄ → ∃∃L. L1 ➡ L & L ⊢ T1 ➡ T2 & L ⊢ ▶* [0, |L|] L2. #L1 #L2 #T1 #T2 #H lapply (fpr_cfpr … H) -H #H elim (cfpr_inv_all … H) -H /2 width=4/ qed-.