From 0c8cad22457218f78c30de239e49187968251613 Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Thu, 2 Feb 2012 18:29:52 +0000 Subject: [PATCH] - three lemmas on context sensitive parallel reduction closed --- .../lambda_delta/Basic_2/reducibility/cpr.ma | 5 --- .../Basic_2/reducibility/cpr_lift.ma | 40 ++++++++++++++++++ .../Basic_2/reducibility/cpr_tpss.ma | 42 +++++++++++++++++++ 3 files changed, 82 insertions(+), 5 deletions(-) create mode 100644 matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr_tpss.ma diff --git a/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr.ma b/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr.ma index b3812e942..4edfc6456 100644 --- a/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr.ma +++ b/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr.ma @@ -89,8 +89,3 @@ qed-. Basic_1: removed local theorems 3: pr2_free_free pr2_free_delta pr2_delta_delta *) - -(* -pr2/fwd pr2_gen_appl -pr2/fwd pr2_gen_abbr -*) diff --git a/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr_lift.ma b/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr_lift.ma index fcdcdcdd8..4c77444d4 100644 --- a/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr_lift.ma +++ b/matita/matita/contribs/lambda_delta/Basic_2/reducibility/cpr_lift.ma @@ -48,6 +48,46 @@ lemma cpr_inv_abst1: ∀V1,T1,U2. ⓛV1. T1 ➡ U2 → ∃∃V2,T2. V1 ➡ V2 & T1 ➡ T2 & U2 = ⓛV2. T2. /2 width=3/ qed-. +(* Basic_1: was pr2_gen_appl *) +lemma cpr_inv_appl1: ∀L,V1,U0,U2. L ⊢ ⓐV1. U0 ➡ U2 → + ∨∨ ∃∃V2,T2. L ⊢ V1 ➡ V2 & L ⊢ U0 ➡ T2 & + U2 = ⓐV2. T2 + | ∃∃V2,W,T1,T2. L ⊢ V1 ➡ V2 & L. ⓓV2 ⊢ T1 ➡ T2 & + U0 = ⓛW. T1 & + U2 = ⓓV2. T2 + | ∃∃V2,V,W1,W2,T1,T2. L ⊢ V1 ➡ V2 & L ⊢ W1 ➡ W2 & L. ⓓW2 ⊢ T1 ➡ T2 & + ⇧[0,1] V2 ≡ V & + U0 = ⓓW1. T1 & + U2 = ⓓW2. ⓐV. T2. +#L #V1 #U0 #Y * #X #H1 #H2 +elim (tpr_inv_appl1 … H1) -H1 * +[ #V #U #HV1 #HU0 #H destruct + elim (tpss_inv_flat1 … H2) -H2 #V2 #U2 #HV2 #HU2 #H destruct /4 width=5/ +| #V #W #T0 #T #HV1 #HT0 #H #H1 destruct + elim (tpss_inv_bind1 … H2) -H2 #V2 #T2 #HV2 #HT2 #H destruct + lapply (tpss_weak … HT2 0 (|L|+1) ? ?) -HT2 // /4 width=8/ +| #V0 #V #W #W0 #T #T0 #HV10 #HW0 #HT0 #HV0 #H #H1 destruct + elim (tpss_inv_bind1 … H2) -H2 #W2 #X #HW02 #HX #HY destruct + elim (tpss_inv_flat1 … HX) -HX #V2 #T2 #HV2 #HT2 #H destruct + elim (tpss_inv_lift1_ge … HV2 … HV0 ?) -V // [3: /2 width=1/ |2: skip ] #V