X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fstatic_2%2Fsyntax%2Flenv_weight.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fstatic_2%2Fsyntax%2Flenv_weight.ma;h=01ff8b7ad00c8672da3f3040498b5bc55c6daea3;hb=ff612dc35167ec0c145864c9aa8ae5e1ebe20a48;hp=0000000000000000000000000000000000000000;hpb=222044da28742b24584549ba86b1805a87def070;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/static_2/syntax/lenv_weight.ma b/matita/matita/contribs/lambdadelta/static_2/syntax/lenv_weight.ma new file mode 100644 index 000000000..01ff8b7ad --- /dev/null +++ b/matita/matita/contribs/lambdadelta/static_2/syntax/lenv_weight.ma @@ -0,0 +1,35 @@ +(**************************************************************************) +(* ___ *) +(* ||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 "static_2/syntax/bind_weight.ma". +include "static_2/syntax/lenv.ma". + +(* WEIGHT OF A LOCAL ENVIRONMENT ********************************************) + +rec definition lw L ≝ match L with +[ LAtom ⇒ 0 +| LBind L I ⇒ lw L + ♯{I} +]. + +interpretation "weight (local environment)" 'Weight L = (lw L). + +(* Basic properties *********************************************************) + +(* Basic_2A1: uses: lw_pair *) +lemma lw_bind: ∀I,L. ♯{L} < ♯{L.ⓘ{I}}. +normalize /2 width=1 by monotonic_le_plus_r/ qed. + +(* Basic_1: removed theorems 4: clt_cong clt_head clt_thead clt_wf_ind *) +(* Basic_1: removed local theorems 1: clt_wf__q_ind *) +(* Basic_1: note: clt_thead should be renamed clt_ctail *)