X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fdynamic%2Flsubsv_lsstas.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fdynamic%2Flsubsv_lsstas.ma;h=0000000000000000000000000000000000000000;hb=ff7754f834f937bfe2384c7703cf63f552885395;hp=ec2ae57bc94c5af752012601632d16325e72b17f;hpb=4720368dcf18593959c6d21484f62fb5b61f3d26;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/dynamic/lsubsv_lsstas.ma b/matita/matita/contribs/lambdadelta/basic_2/dynamic/lsubsv_lsstas.ma deleted file mode 100644 index ec2ae57bc..000000000 --- a/matita/matita/contribs/lambdadelta/basic_2/dynamic/lsubsv_lsstas.ma +++ /dev/null @@ -1,89 +0,0 @@ -(**************************************************************************) -(* ___ *) -(* ||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/static/lsubd_da.ma". -include "basic_2/unfold/lsstas_alt.ma". -include "basic_2/equivalence/cpcs_cpcs.ma". -include "basic_2/dynamic/lsubsv_ldrop.ma". -include "basic_2/dynamic/lsubsv_lsubd.ma". - -(* LOCAL ENVIRONMENT REFINEMENT FOR STRATIFIED NATIVE VALIDITY **************) - -(* Properties on nat-iterated stratified static type assignment *************) - -lemma lsubsv_lsstas_trans: ∀h,g,G,L2,T,U2,l1. ⦃G, L2⦄ ⊢ T •*[h, g, l1] U2 → - ∀l2. l1 ≤ l2 → ⦃G, L2⦄ ⊢ T ▪[h, g] l2 → - ∀L1. G ⊢ L1 ¡⫃[h, g] L2 → - ∃∃U1. ⦃G, L1⦄ ⊢ T •*[h, g, l1] U1 & ⦃G, L1⦄ ⊢ U1 ⬌* U2. -#h #g #G #L2 #T #U #l1 #H @(lsstas_ind_alt … H) -G -L2 -T -U -l1 -[1,2: /2 width=3 by lstar_O, ex2_intro/ -| #G #L2 #K2 #X #Y #U #i #l1 #HLK2 #_ #HYU #IHXY #l2 #Hl12 #Hl2 #L1 #HL12 - elim (da_inv_lref … Hl2) -Hl2 * #K0 #V0 [| #l0 ] #HK0 #HV0 - lapply (ldrop_mono … HK0 … HLK2) -HK0 #H destruct - elim (lsubsv_ldrop_O1_trans … HL12 … HLK2) -L2 #X #H #HLK1 - elim (lsubsv_inv_pair2 … H) -H * #K1 [ | -HYU -IHXY -HLK1 ] - [ #HK12 #H destruct - elim (IHXY … Hl12 HV0 … HK12) -K2 -l2 #T #HXT #HTY - lapply (ldrop_fwd_drop2 … HLK1) #H - elim (lift_total T 0 (i+1)) - /3 width=12 by lsstas_ldef, cpcs_lift, ex2_intro/ - | #V #l0 #_ #_ #_ #_ #_ #_ #_ #H destruct - ] -| #G #L2 #K2 #X #Y #U #i #l1 #l #HLK2 #_ #_ #HYU #IHXY #l2 #Hl12 #Hl2 #L1 #HL12 -l - elim (da_inv_lref … Hl2) -Hl2 * #K0 #V0 [| #l0 ] #HK0 #HV0 [| #H1 ] - lapply (ldrop_mono … HK0 … HLK2) -HK0 #H2 destruct - lapply (le_plus_to_le_r … Hl12) -Hl12 #Hl12 - elim (lsubsv_ldrop_O1_trans … HL12 … HLK2) -L2 #X #H #HLK1 - elim (lsubsv_inv_pair2 … H) -H * #K1 [| ] - [ #HK12 #H destruct - lapply (lsubsv_fwd_lsubd … HK12) #H - lapply (lsubd_da_trans … HV0 … H) -H - elim (IHXY … Hl12 HV0 … HK12) -K2 -Hl12 #Y0 - lapply (ldrop_fwd_drop2 … HLK1) - elim (lift_total Y0 0 (i+1)) - /3 width=12 by lsstas_ldec, cpcs_lift, ex2_intro/ - | #V #l #_ #_ #HVX #_ #HV #HX #HK12 #_ #H destruct - lapply (da_mono … HX … HV0) -HX #H destruct - elim (IHXY … Hl12 HV0 … HK12) -K2 #Y0 #HXY0 #HY0 - elim (da_ssta … HV) -HV #W #HVW - elim (lsstas_total … HVW (l1+1)) -W #W #HVW - lapply (HVX … Hl12 HVW HXY0) -HVX -Hl12 -HXY0 #HWY0 - lapply (cpcs_trans … HWY0 … HY0) -Y0 - lapply (ldrop_fwd_drop2 … HLK1) - elim (lift_total W 0 (i+1)) - /4 width=12 by lsstas_ldef, lsstas_cast, cpcs_lift, ex2_intro/ - ] -| #a #I #G #L2 #V2 #T2 #U2 #l1 #_ #IHTU2 #l2 #Hl12 #Hl2 #L1 #HL12 - lapply (da_inv_bind … Hl2) -Hl2 #Hl2 - elim (IHTU2 … Hl2 (L1.ⓑ{I}V2) …) // [2: /2 width=1/ ] -L2 - /3 width=3 by lsstas_bind, cpcs_bind_dx, ex2_intro/ -| #G #L2 #V2 #T2 #U2 #l1 #_ #IHTU2 #l2 #Hl12 #Hl2 #L1 #HL12 - lapply (da_inv_flat … Hl2) -Hl2 #Hl2 - elim (IHTU2 … Hl2 … HL12) -L2 // - /3 width=5 by lsstas_appl, cpcs_flat, ex2_intro/ -| #G #L2 #W2 #T2 #U2 #l1 #_ #IHTU2 #l2 #Hl12 #Hl2 #L1 #HL12 - lapply (da_inv_flat … Hl2) -Hl2 #Hl2 - elim (IHTU2 … Hl2 … HL12) -L2 // - /3 width=3 by lsstas_cast, ex2_intro/ -] -qed-. - -lemma lsubsv_ssta_trans: ∀h,g,G,L2,T,U2. ⦃G, L2⦄ ⊢ T •[h, g] U2 → - ∀l. ⦃G, L2⦄ ⊢ T ▪[h, g] l+1 → - ∀L1. G ⊢ L1 ¡⫃[h, g] L2 → - ∃∃U1. ⦃G, L1⦄ ⊢ T •[h, g] U1 & ⦃G, L1⦄ ⊢ U1 ⬌* U2. -#h #g #G #L2 #T #U2 #H #l #HTl #L1 #HL12 -elim ( lsubsv_lsstas_trans … U2 1 … HTl … HL12) -/3 width=3 by lsstas_inv_SO, ssta_lsstas, ex2_intro/ -qed-.