X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fstatic%2Ffsle_fqup.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fstatic%2Ffsle_fqup.ma;h=84be1fe436b2da19e7abe0c6867be97fdd07cc66;hb=990f97071a9939d47be16b36f6045d3b23f218e0;hp=0000000000000000000000000000000000000000;hpb=42705ef31dd3513a998533e02b5f20fb38dd4fb2;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/static/fsle_fqup.ma b/matita/matita/contribs/lambdadelta/basic_2/static/fsle_fqup.ma new file mode 100644 index 000000000..84be1fe43 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/basic_2/static/fsle_fqup.ma @@ -0,0 +1,89 @@ +(**************************************************************************) +(* ___ *) +(* ||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/frees_fqup.ma". +include "basic_2/static/fsle_length.ma". + +(* FREE VARIABLES INCLUSION FOR RESTRICTED CLOSURES *************************) + +(* Advanced properties ******************************************************) + +lemma fsle_refl: bi_reflexive … fsle. +#L #T +elim (frees_total L T) #f #Hf +/2 width=8 by sle_refl, ex4_4_intro/ +qed. + +lemma fsle_shift: ∀L1,L2. |L1| = |L2| → + ∀I,T1,T2,V. ⦃L1.ⓧ, T1⦄ ⊆ ⦃L2.ⓑ{I}V, T2⦄ → + ∀p. ⦃L1.ⓧ, T1⦄ ⊆ ⦃L2, ⓑ{p,I}V.T2⦄. +#L1 #L2 #H1L #I #T1 #T2 #V +* #n #m #f2 #g2 #Hf2 #Hg2 #H2L #Hfg2 #p +elim (lveq_inj_length … H2L) // -H1L #H1 #H2 destruct +lapply (lveq_inv_bind … H2L) -H2L #HL +elim (frees_total L2 V) #g1 #Hg1 +elim (sor_isfin_ex g1 (⫱g2)) /3 width=3 by frees_fwd_isfin, isfin_tl/ #g #Hg #_ +lapply (sor_inv_sle_dx … Hg) #H0g +/4 width=10 by frees_bind, lveq_void_sn, sle_tl, sle_trans, ex4_4_intro/ +qed. + +lemma fsle_bind_dx_sn: ∀L1,L2,V1,V2. ⦃L1, V1⦄ ⊆ ⦃L2, V2⦄ → + ∀p,I,T2. ⦃L1, V1⦄ ⊆ ⦃L2, ⓑ{p,I}V2.T2⦄. +#L1 #L2 #V1 #V2 * #n1 #m1 #f1 #g1 #Hf1 #Hg1 #HL12 #Hfg1 #p #I #T2 +elim (frees_total (L2.ⓧ) T2) #g2 #Hg2 +elim (sor_isfin_ex g1 (⫱g2)) /3 width=3 by frees_fwd_isfin, isfin_tl/ #g #Hg #_ +@(ex4_4_intro … g Hf1 … HL12) (**) (* full auto too slow *) +/4 width=5 by frees_bind_void, sor_inv_sle_sn, sor_tls, sle_trans/ +qed. + +lemma fsle_bind_dx_dx: ∀L1,L2,T1,T2. ⦃L1, T1⦄ ⊆ ⦃L2.ⓧ, T2⦄ → |L1| ≤ |L2| → + ∀p,I,V2. ⦃L1, T1⦄ ⊆ ⦃L2, ⓑ{p,I}V2.T2⦄. +#L1 #L2 #T1 #T2 * #n1 #x1 #f2 #g2 #Hf2 #Hg2 #H #Hfg2 #HL12 #p #I #V2 +elim (lveq_inv_void_dx_length … H HL12) -H -HL12 #m1 #HL12 #H1 #H2 destruct +