X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fetc%2Flsubd%2Flsubd_da.etc;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fetc%2Flsubd%2Flsubd_da.etc;h=62b67e09cd36d1ace3ddf03e8c26f5a99e5137d1;hb=b4b5f03ffca4f250a1dc02f277b70e4f33ac8a9b;hp=0000000000000000000000000000000000000000;hpb=09b4420070d6a71990e16211e499b51dbb0742cb;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/etc/lsubd/lsubd_da.etc b/matita/matita/contribs/lambdadelta/basic_2/etc/lsubd/lsubd_da.etc new file mode 100644 index 000000000..62b67e09c --- /dev/null +++ b/matita/matita/contribs/lambdadelta/basic_2/etc/lsubd/lsubd_da.etc @@ -0,0 +1,65 @@ +(**************************************************************************) +(* ___ *) +(* ||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/da_da.ma". +include "basic_2/static/lsubd.ma". + +(* LOCAL ENVIRONMENT REFINEMENT FOR DEGREE ASSIGNMENT ***********************) + +(* Properties on degree assignment ******************************************) + +lemma lsubd_da_trans: ∀h,o,G,L2,T,d. ⦃G, L2⦄ ⊢ T ▪[h, o] d → + ∀L1. G ⊢ L1 ⫃▪[h, o] L2 → ⦃G, L1⦄ ⊢ T ▪[h, o] d. +#h #o #G #L2 #T #d #H elim H -G -L2 -T -d +[ /2 width=1 by da_sort/ +| #G #L2 #K2 #V #i #d #HLK2 #_ #IHV #L1 #HL12 + elim (lsubd_drop_O1_trans … HL12 … HLK2) -L2 #X #H #HLK1 + elim (lsubd_inv_pair2 … H) -H * #K1 [ | -IHV -HLK1 ] + [ #HK12 #H destruct /3 width=4 by da_ldef/ + | #W #d0 #_ #_ #_ #H destruct + ] +| #G #L2 #K2 #W #i #d #HLK2 #HW #IHW #L1 #HL12 + elim (lsubd_drop_O1_trans … HL12 … HLK2) -L2 #X #H #HLK1 + elim (lsubd_inv_pair2 … H) -H * #K1 [ -HW | -IHW ] + [ #HK12 #H destruct /3 width=4 by da_ldec/ + | #V #d0 #HV #H0W #_ #_ #H destruct + lapply (da_mono … H0W … HW) -H0W -HW #H destruct /3 width=7 by da_ldef, da_flat/ + ] +| /4 width=1 by lsubd_pair, da_bind/ +| /3 width=1 by da_flat/ +] +qed-. + +lemma lsubd_da_conf: ∀h,o,G,L1,T,d. ⦃G, L1⦄ ⊢ T ▪[h, o] d → + ∀L2. G ⊢ L1 ⫃▪[h, o] L2 → ⦃G, L2⦄ ⊢ T ▪[h, o] d. +#h #o #G #L1 #T #d #H elim H -G -L1 -T -d +[ /2 width=1 by da_sort/ +| #G #L1 #K1 #V #i #d #HLK1 #HV #IHV #L2 #HL12 + elim (lsubd_drop_O1_conf … HL12 … HLK1) -L1 #X #H #HLK2 + elim (lsubd_inv_pair1 … H) -H * #K2 [ -HV | -IHV ] + [ #HK12 #H destruct /3 width=4 by da_ldef/ + | #W0 #V0 #d0 #HV0 #HW0 #_ #_ #H1 #H2 destruct + lapply (da_inv_flat … HV) -HV #H0V0 + lapply (da_mono … H0V0 … HV0) -H0V0 -HV0 #H destruct /2 width=4 by da_ldec/ + ] +| #G #L1 #K1 #W #i #d #HLK1 #HW #IHW #L2 #HL12 + elim (lsubd_drop_O1_conf … HL12 … HLK1) -L1 #X #H #HLK2 + elim (lsubd_inv_pair1 … H) -H * #K2 [ -HW | -IHW ] + [ #HK12 #H destruct /3 width=4 by da_ldec/ + | #W0 #V0 #d0 #HV0 #HW0 #_ #H destruct + ] +| /4 width=1 by lsubd_pair, da_bind/ +| /3 width=1 by da_flat/ +] +qed-.