X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fstatic%2Flsubr.ma;h=111da17511225ed78d90f289af41e88278639910;hb=e258362c37ec6d9132ec57bd5e4987d148c10799;hp=ab498fc6395fc35ddaadd05d9b52abae58489e2a;hpb=52e675f555f559c047d5449db7fc89a51b977d35;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/static/lsubr.ma b/matita/matita/contribs/lambdadelta/basic_2/static/lsubr.ma index ab498fc63..111da1751 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/static/lsubr.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/static/lsubr.ma @@ -18,9 +18,9 @@ include "basic_2/substitution/drop.ma". (* RESTRICTED LOCAL ENVIRONMENT REFINEMENT **********************************) inductive lsubr: relation lenv ≝ -| lsubr_sort: ∀L. lsubr L (⋆) -| lsubr_bind: ∀I,L1,L2,V. lsubr L1 L2 → lsubr (L1.ⓑ{I}V) (L2.ⓑ{I}V) -| lsubr_abst: ∀L1,L2,V,W. lsubr L1 L2 → lsubr (L1.ⓓⓝW.V) (L2.ⓛW) +| lsubr_atom: ∀L. lsubr L (⋆) +| lsubr_pair: ∀I,L1,L2,V. lsubr L1 L2 → lsubr (L1.ⓑ{I}V) (L2.ⓑ{I}V) +| lsubr_beta: ∀L1,L2,V,W. lsubr L1 L2 → lsubr (L1.ⓓⓝW.V) (L2.ⓛW) . interpretation @@ -30,7 +30,7 @@ interpretation (* Basic properties *********************************************************) lemma lsubr_refl: ∀L. L ⫃ L. -#L elim L -L /2 width=1 by lsubr_sort, lsubr_bind/ +#L elim L -L /2 width=1 by lsubr_atom, lsubr_pair/ qed. (* Basic inversion lemmas ***************************************************) @@ -77,10 +77,10 @@ lemma lsubr_fwd_length: ∀L1,L2. L1 ⫃ L2 → |L2| ≤ |L1|. #L1 #L2 #H elim H -L1 -L2 /2 width=1 by monotonic_le_plus_l/ qed-. -lemma lsubr_fwd_drop2_bind: ∀L1,L2. L1 ⫃ L2 → - ∀I,K2,W,s,i. ⇩[s, 0, i] L2 ≡ K2.ⓑ{I}W → - (∃∃K1. K1 ⫃ K2 & ⇩[s, 0, i] L1 ≡ K1.ⓑ{I}W) ∨ - ∃∃K1,V. K1 ⫃ K2 & ⇩[s, 0, i] L1 ≡ K1.ⓓⓝW.V & I = Abst. +lemma lsubr_fwd_drop2_pair: ∀L1,L2. L1 ⫃ L2 → + ∀I,K2,W,s,i. ⬇[s, 0, i] L2 ≡ K2.ⓑ{I}W → + (∃∃K1. K1 ⫃ K2 & ⬇[s, 0, i] L1 ≡ K1.ⓑ{I}W) ∨ + ∃∃K1,V. K1 ⫃ K2 & ⬇[s, 0, i] L1 ≡ K1.ⓓⓝW.V & I = Abst. #L1 #L2 #H elim H -L1 -L2 [ #L #I #K2 #W #s #i #H elim (drop_inv_atom1 … H) -H #H destruct @@ -100,8 +100,8 @@ lemma lsubr_fwd_drop2_bind: ∀L1,L2. L1 ⫃ L2 → qed-. lemma lsubr_fwd_drop2_abbr: ∀L1,L2. L1 ⫃ L2 → - ∀K2,V,s,i. ⇩[s, 0, i] L2 ≡ K2.ⓓV → - ∃∃K1. K1 ⫃ K2 & ⇩[s, 0, i] L1 ≡ K1.ⓓV. -#L1 #L2 #HL12 #K2 #V #s #i #HLK2 elim (lsubr_fwd_drop2_bind … HL12 … HLK2) -L2 // * + ∀K2,V,s,i. ⬇[s, 0, i] L2 ≡ K2.ⓓV → + ∃∃K1. K1 ⫃ K2 & ⬇[s, 0, i] L1 ≡ K1.ⓓV. +#L1 #L2 #HL12 #K2 #V #s #i #HLK2 elim (lsubr_fwd_drop2_pair … HL12 … HLK2) -L2 // * #K1 #W #_ #_ #H destruct qed-.