X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Freduction%2Fcrx_lift.ma;h=b1afecdc5cd9561f4b3b20d5ae31d9d7a5b78604;hb=78b27990925c54b2a34cff609fc9bcfbeb6b48f3;hp=5a5a286ffc3e2c517725b81ee94e0694477874f4;hpb=29973426e0227ee48368d1c24dc0c17bf2baef77;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/reduction/crx_lift.ma b/matita/matita/contribs/lambdadelta/basic_2/reduction/crx_lift.ma index 5a5a286ff..b1afecdc5 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/reduction/crx_lift.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/reduction/crx_lift.ma @@ -15,64 +15,64 @@ include "basic_2/relocation/ldrop_ldrop.ma". include "basic_2/reduction/crx.ma". -(* CONTEXT-SENSITIVE EXTENDED REDUCIBLE TERMS *******************************) +(* REDUCIBLE TERMS FOR CONTEXT-SENSITIVE EXTENDED REDUCTION *****************) (* Properties on relocation *************************************************) -lemma crx_lift: ∀h,g,K,T. ⦃h, K⦄ ⊢ 𝐑[h, g]⦃T⦄ → ∀L,d,e. ⇩[d, e] L ≡ K → - ∀U. ⇧[d, e] T ≡ U → ⦃G, L⦄ ⊢ 𝐑[h, g]⦃U⦄. -#h #g #K #T #H elim H -K -T -[ #K #k #l #Hkl #L #d #e #_ #X #H - >(lift_inv_sort1 … H) -X /2 width=2/ -| #I #K #K0 #V #i #HK0 #L #d #e #HLK #X #H +lemma crx_lift: ∀h,g,G,K,T. ⦃G, K⦄ ⊢ ➡[h, g] 𝐑⦃T⦄ → ∀L,s,d,e. ⇩[s, d, e] L ≡ K → + ∀U. ⇧[d, e] T ≡ U → ⦃G, L⦄ ⊢ ➡[h, g] 𝐑⦃U⦄. +#h #g #G #K #T #H elim H -K -T +[ #K #k #l #Hkl #L #s #d #e #_ #X #H + >(lift_inv_sort1 … H) -X /2 width=2 by crx_sort/ +| #I #K #K0 #V #i #HK0 #L #s #d #e #HLK #X #H elim (lift_inv_lref1 … H) -H * #Hid #H destruct - [ elim (ldrop_trans_lt … HLK … HK0) -K // /2 width=4/ - | lapply (ldrop_trans_ge … HLK … HK0 ?) -K // /2 width=4/ + [ elim (ldrop_trans_lt … HLK … HK0) -K /2 width=4 by crx_delta/ + | lapply (ldrop_trans_ge … HLK … HK0 ?) -K /3 width=5 by crx_delta, ldrop_inv_gen/ ] -| #K #V #T #_ #IHV #L #d #e #HLK #X #H - elim (lift_inv_flat1 … H) -H #W #U #HVW #_ #H destruct /3 width=4/ -| #K #V #T #_ #IHT #L #d #e #HLK #X #H - elim (lift_inv_flat1 … H) -H #W #U #_ #HTU #H destruct /3 width=4/ -| #I #K #V #T #HI #L #d #e #_ #X #H - elim (lift_fwd_pair1 … H) -H #W #U #_ #H destruct /2 width=1/ -| #a #I #K #V #T #HI #_ #IHV #L #d #e #HLK #X #H - elim (lift_inv_bind1 … H) -H #W #U #HVW #_ #H destruct /3 width=4/ -| #a #I #K #V #T #HI #_ #IHT #L #d #e #HLK #X #H - elim (lift_inv_bind1 … H) -H #W #U #HVW #HTU #H destruct /4 width=4/ -| #a #K #V #V0 #T #L #d #e #_ #X #H +| #K #V #T #_ #IHV #L #s #d #e #HLK #X #H + elim (lift_inv_flat1 … H) -H #W #U #HVW #_ #H destruct /3 width=5 by crx_appl_sn/ +| #K #V #T #_ #IHT #L #s #d #e #HLK #X #H + elim (lift_inv_flat1 … H) -H #W #U #_ #HTU #H destruct /3 width=5 by crx_appl_dx/ +| #I #K #V #T #HI #L #s #d #e #_ #X #H + elim (lift_fwd_pair1 … H) -H #W #U #_ #H destruct /2 width=1 by crx_ri2/ +| #a #I #K #V #T #HI #_ #IHV #L #s #d #e #HLK #X #H + elim (lift_inv_bind1 … H) -H #W #U #HVW #_ #H destruct /3 width=5 by crx_ib2_sn/ +| #a #I #K #V #T #HI #_ #IHT #L #s #d #e #HLK #X #H + elim (lift_inv_bind1 … H) -H #W #U #HVW #HTU #H destruct /4 width=5 by crx_ib2_dx, ldrop_skip/ +| #a #K #V #V0 #T #L #s #d #e #_ #X #H elim (lift_inv_flat1 … H) -H #W #X0 #_ #H0 #H destruct - elim (lift_inv_bind1 … H0) -H0 #W0 #U #_ #_ #H0 destruct /2 width=1/ -| #a #K #V #V0 #T #L #d #e #_ #X #H + elim (lift_inv_bind1 … H0) -H0 #W0 #U #_ #_ #H0 destruct /2 width=1 by crx_beta/ +| #a #K #V #V0 #T #L #s #d #e #_ #X #H elim (lift_inv_flat1 … H) -H #W #X0 #_ #H0 #H destruct - elim (lift_inv_bind1 … H0) -H0 #W0 #U #_ #_ #H0 destruct /2 width=1/ + elim (lift_inv_bind1 … H0) -H0 #W0 #U #_ #_ #H0 destruct /2 width=1 by crx_theta/ ] qed. -lemma crx_inv_lift: ∀h,g,L,U. ⦃G, L⦄ ⊢ 𝐑[h, g]⦃U⦄ → ∀K,d,e. ⇩[d, e] L ≡ K → - ∀T. ⇧[d, e] T ≡ U → ⦃h, K⦄ ⊢ 𝐑[h, g]⦃T⦄. -#h #g #L #U #H elim H -L -U -[ #L #k #l #Hkl #K #d #e #_ #X #H - >(lift_inv_sort2 … H) -X /2 width=2/ -| #I #L #L0 #W #i #HK0 #K #d #e #HLK #X #H +lemma crx_inv_lift: ∀h,g,G,L,U. ⦃G, L⦄ ⊢ ➡[h, g] 𝐑⦃U⦄ → ∀K,s,d,e. ⇩[s, d, e] L ≡ K → + ∀T. ⇧[d, e] T ≡ U → ⦃G, K⦄ ⊢ ➡[h, g] 𝐑⦃T⦄. +#h #g #G #L #U #H elim H -L -U +[ #L #k #l #Hkl #K #s #d #e #_ #X #H + >(lift_inv_sort2 … H) -X /2 width=2 by crx_sort/ +| #I #L #L0 #W #i #HK0 #K #s #d #e #HLK #X #H elim (lift_inv_lref2 … H) -H * #Hid #H destruct - [ elim (ldrop_conf_lt … HLK … HK0) -L // /2 width=4/ - | lapply (ldrop_conf_ge … HLK … HK0 ?) -L // /2 width=4/ + [ elim (ldrop_conf_lt … HLK … HK0) -L /2 width=4 by crx_delta/ + | lapply (ldrop_conf_ge … HLK … HK0 ?) -L /2 width=4 by crx_delta/ ] -| #L #W #U #_ #IHW #K #d #e #HLK #X #H - elim (lift_inv_flat2 … H) -H #V #T #HVW #_ #H destruct /3 width=4/ -| #L #W #U #_ #IHU #K #d #e #HLK #X #H - elim (lift_inv_flat2 … H) -H #V #T #_ #HTU #H destruct /3 width=4/ -| #I #L #W #U #HI #K #d #e #_ #X #H - elim (lift_fwd_pair2 … H) -H #V #T #_ #H destruct /2 width=1/ -| #a #I #L #W #U #HI #_ #IHW #K #d #e #HLK #X #H - elim (lift_inv_bind2 … H) -H #V #T #HVW #_ #H destruct /3 width=4/ -| #a #I #L #W #U #HI #_ #IHU #K #d #e #HLK #X #H - elim (lift_inv_bind2 … H) -H #V #T #HVW #HTU #H destruct /4 width=4/ -| #a #L #W #W0 #U #K #d #e #_ #X #H +| #L #W #U #_ #IHW #K #s #d #e #HLK #X #H + elim (lift_inv_flat2 … H) -H #V #T #HVW #_ #H destruct /3 width=5 by crx_appl_sn/ +| #L #W #U #_ #IHU #K #s #d #e #HLK #X #H + elim (lift_inv_flat2 … H) -H #V #T #_ #HTU #H destruct /3 width=5 by crx_appl_dx/ +| #I #L #W #U #HI #K #s #d #e #_ #X #H + elim (lift_fwd_pair2 … H) -H #V #T #_ #H destruct /2 width=1 by crx_ri2/ +| #a #I #L #W #U #HI #_ #IHW #K #s #d #e #HLK #X #H + elim (lift_inv_bind2 … H) -H #V #T #HVW #_ #H destruct /3 width=5 by crx_ib2_sn/ +| #a #I #L #W #U #HI #_ #IHU #K #s #d #e #HLK #X #H + elim (lift_inv_bind2 … H) -H #V #T #HVW #HTU #H destruct /4 width=5 by crx_ib2_dx, ldrop_skip/ +| #a #L #W #W0 #U #K #s #d #e #_ #X #H elim (lift_inv_flat2 … H) -H #V #X0 #_ #H0 #H destruct - elim (lift_inv_bind2 … H0) -H0 #V0 #T #_ #_ #H0 destruct /2 width=1/ -| #a #L #W #W0 #U #K #d #e #_ #X #H + elim (lift_inv_bind2 … H0) -H0 #V0 #T #_ #_ #H0 destruct /2 width=1 by crx_beta/ +| #a #L #W #W0 #U #K #s #d #e #_ #X #H elim (lift_inv_flat2 … H) -H #V #X0 #_ #H0 #H destruct - elim (lift_inv_bind2 … H0) -H0 #V0 #T #_ #_ #H0 destruct /2 width=1/ + elim (lift_inv_bind2 … H0) -H0 #V0 #T #_ #_ #H0 destruct /2 width=1 by crx_theta/ ] -qed. +qed-.