X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fdynamic%2Fsnv_lift.ma;h=bb7ac6ca55db0b274ca15dd09879b62b2bf14412;hb=c9a1672c725945b47f9ea8af3c23b67cf9026f01;hp=ec9be23a4521e5cca5484f4f3c98084b51ccf5cd;hpb=18bc3082b332504f60345245e716b62ae628e3a7;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/dynamic/snv_lift.ma b/matita/matita/contribs/lambdadelta/basic_2/dynamic/snv_lift.ma index ec9be23a4..bb7ac6ca5 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/dynamic/snv_lift.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/dynamic/snv_lift.ma @@ -12,7 +12,7 @@ (* *) (**************************************************************************) -include "basic_2/computation/dxprs_lift.ma". +include "basic_2/computation/cpds_lift.ma". include "basic_2/equivalence/cpcs_cpcs.ma". include "basic_2/dynamic/snv.ma". @@ -20,60 +20,81 @@ include "basic_2/dynamic/snv.ma". (* Relocation properties ****************************************************) -lemma snv_lift: ∀h,g,K,T. ⦃h, K⦄ ⊩ T :[g] → ∀L,d,e. ⇩[d, e] L ≡ K → - ∀U. ⇧[d, e] T ≡ U → ⦃h, L⦄ ⊩ U :[g]. -#h #g #K #T #H elim H -K -T -[ #K #k #L #d #e #_ #X #H +lemma snv_lift: ∀h,g,G,K,T. ⦃G, K⦄ ⊢ T ¡[h, g] → ∀L,d,e. ⇩[d, e] L ≡ K → + ∀U. ⇧[d, e] T ≡ U → ⦃G, L⦄ ⊢ U ¡[h, g]. +#h #g #G #K #T #H elim H -G -K -T +[ #G #K #k #L #d #e #_ #X #H >(lift_inv_sort1 … H) -X -K -d -e // -| #I #K #K0 #V #i #HK0 #_ #IHV #L #d #e #HLK #X #H +| #I #G #K #K0 #V #i #HK0 #_ #IHV #L #d #e #HLK #X #H elim (lift_inv_lref1 … H) * #Hid #H destruct - [ elim (ldrop_trans_le … HLK … HK0 ?) -K /2 width=2/ #X #HL0 #H - elim (ldrop_inv_skip2 … H ?) -H /2 width=1/ -Hid #L0 #W #HLK0 #HVW #H destruct + [ elim (ldrop_trans_le … HLK … HK0) -K /2 width=2/ #X #HL0 #H + elim (ldrop_inv_skip2 … H) -H /2 width=1/ -Hid #L0 #W #HLK0 #HVW #H destruct /3 width=8/ | lapply (ldrop_trans_ge … HLK … HK0 ?) -K // -Hid /3 width=8/ ] -| #a #I #K #V #T #_ #_ #IHV #IHT #L #d #e #HLK #X #H +| #a #I #G #K #V #T #_ #_ #IHV #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 #V1 #T #T1 #l #_ #_ #HV0 #HV01 #HT1 #IHV #IHT #L #d #e #HLK #X #H +| #a #G #K #V #V0 #V1 #T #T1 #l #_ #_ #Hl #HV0 #HV01 #HT1 #IHV #IHT #L #d #e #HLK #X #H elim (lift_inv_flat1 … H) -H #W #U #HVW #HTU #H destruct elim (lift_total V0 d e) #W0 #HVW0 elim (lift_total V1 d e) #W1 #HVW1 elim (lift_total T1 (d+1) e) #U1 #HTU1 @(snv_appl … a … W0 … W1 … U1 l) - [ /2 width=4/ | /2 width=4/ | /2 width=9/ | /2 width=9/ ] - @(dxprs_lift … HLK … HTU … HT1) /2 width=1/ -| #K #V0 #T #V #l #_ #_ #HTV #HV0 #IHV0 #IHT #L #d #e #HLK #X #H + [1,2: /2 width=4/ | /2 width=7/ |4,5: /2 width=9/ ] + @(cpds_lift … HT1 … HLK … HTU) /2 width=1/ +| #G #K #V0 #T #V #l #_ #_ #Hl #HTV #HV0 #IHV0 #IHT #L #d #e #HLK #X #H elim (lift_inv_flat1 … H) -H #W0 #U #HVW0 #HTU #H destruct elim (lift_total V d e) #W #HVW - @(snv_cast … W l) [ /2 width=4/ | /2 width=4/ | /2 width=9/ | /2 width=9/ ] + @(snv_cast … W l) [1,2: /2 width=4/ | /2 width=7/ |4,5: /2 width=9/ ] ] qed. -lemma snv_inv_lift: ∀h,g,L,U. ⦃h, L⦄ ⊩ U :[g] → ∀K,d,e. ⇩[d, e] L ≡ K → - ∀T. ⇧[d, e] T ≡ U → ⦃h, K⦄ ⊩ T :[g]. -#h #g #L #U #H elim H -L -U -[ #L #k #K #d #e #_ #X #H +lemma snv_inv_lift: ∀h,g,G,L,U. ⦃G, L⦄ ⊢ U ¡[h, g] → ∀K,d,e. ⇩[d, e] L ≡ K → + ∀T. ⇧[d, e] T ≡ U → ⦃G, K⦄ ⊢ T ¡[h, g]. +#h #g #G #L #U #H elim H -G -L -U +[ #G #L #k #K #d #e #_ #X #H >(lift_inv_sort2 … H) -X -L -d -e // -| #I #L #L0 #W #i #HL0 #_ #IHW #K #d #e #HLK #X #H +| #I #G #L #L0 #W #i #HL0 #_ #IHW #K #d #e #HLK #X #H elim (lift_inv_lref2 … H) * #Hid #H destruct - [ elim (ldrop_conf_le … HLK … HL0 ?) -L /2 width=2/ #X #HK0 #H - elim (ldrop_inv_skip1 … H ?) -H /2 width=1/ -Hid #K0 #V #HLK0 #HVW #H destruct + [ elim (ldrop_conf_le … HLK … HL0) -L /2 width=2/ #X #HK0 #H + elim (ldrop_inv_skip1 … H) -H /2 width=1/ -Hid #K0 #V #HLK0 #HVW #H destruct /3 width=8/ | lapply (ldrop_conf_ge … HLK … HL0 ?) -L // -Hid /3 width=8/ ] -| #a #I #L #W #U #_ #_ #IHW #IHU #K #d #e #HLK #X #H +| #a #I #G #L #W #U #_ #_ #IHW #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 #W1 #U #U1 #l #_ #_ #HW0 #HW01 #HU1 #IHW #IHU #K #d #e #HLK #X #H +| #a #G #L #W #W0 #W1 #U #U1 #l #_ #_ #Hl #HW0 #HW01 #HU1 #IHW #IHU #K #d #e #HLK #X #H elim (lift_inv_flat2 … H) -H #V #T #HVW #HTU #H destruct - elim (ssta_inv_lift1 … HW0 … HLK … HVW) -HW0 #V0 #HV0 #HVW0 - elim (cprs_inv_lift1 … HLK … HVW0 … HW01) -W0 #V1 #HVW1 #HV01 - elim (dxprs_inv_lift1 … HLK … HTU … HU1) -HU1 #X #H #HTU + lapply (da_inv_lift … Hl … HLK … HVW) -Hl #Hl + elim (ssta_inv_lift1 … HW0 … HLK … HVW) -HW0 #V0 #HVW0 #HV0 + elim (cprs_inv_lift1 … HW01 … HLK … HVW0) -W0 #V1 #HVW1 #HV01 + elim (cpds_inv_lift1 … HU1 … HLK … HTU) -HU1 #X #H #HTU elim (lift_inv_bind2 … H) -H #Y #T1 #HY #HTU1 #H destruct lapply (lift_inj … HY … HVW1) -HY #H destruct /3 width=8/ -| #L #W0 #U #W #l #_ #_ #HUW #HW0 #IHW0 #IHU #K #d #e #HLK #X #H +| #G #L #W0 #U #W #l #_ #_ #Hl #HUW #HW0 #IHW0 #IHU #K #d #e #HLK #X #H elim (lift_inv_flat2 … H) -H #V0 #T #HVW0 #HTU #H destruct - elim (ssta_inv_lift1 … HUW … HLK … HTU) -HUW #V #HTV #HVW - lapply (cpcs_inv_lift … HLK … HVW … HVW0 ?) // -W /3 width=4/ + lapply (da_inv_lift … Hl … HLK … HTU) -Hl #Hl + elim (ssta_inv_lift1 … HUW … HLK … HTU) -HUW #V #HVW #HTV + lapply (cpcs_inv_lift G … HLK … HVW … HVW0 ?) // -W /3 width=4/ +] +qed-. + +(* Advanced properties ******************************************************) + +lemma snv_fqu_conf: ∀h,g,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ⊃ ⦃G2, L2, T2⦄ → + ⦃G1, L1⦄ ⊢ T1 ¡[h, g] → ⦃G2, L2⦄ ⊢ T2 ¡[h, g]. +#h #g #G1 #G2 #L1 #L2 #T1 #T2 #H elim H -G1 -G2 -L1 -L2 -T1 -T2 +[ #I1 #G1 #L1 #V1 #H + elim (snv_inv_lref … H) -H #I2 #L2 #V2 #H #HV2 + lapply (ldrop_inv_O2 … H) -H #H destruct // +|2: * +|5,6: /3 width=7 by snv_inv_lift/ +] +[1,3: #a #I #G1 #L1 #V1 #T1 #H elim (snv_inv_bind … H) -H // +|2,4: * #G1 #L1 #V1 #T1 #H + [1,3: elim (snv_inv_appl … H) -H // + |2,4: elim (snv_inv_cast … H) -H // + ] ] qed-.