1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "static_2/syntax/bind_weight.ma".
16 include "static_2/syntax/lenv.ma".
18 (* WEIGHT OF A LOCAL ENVIRONMENT ********************************************)
20 rec definition lw L ≝ match L with
22 | LBind L I ⇒ lw L + ♯❨I❩
25 interpretation "weight (local environment)" 'Weight L = (lw L).
27 (* Basic properties *********************************************************)
29 lemma lw_atom_unfold: 𝟏 = ♯❨⋆❩.
32 lemma lw_bind_unfold (I) (L): ♯❨L❩ + ♯❨I❩ = ♯❨L.ⓘ[I]❩.
35 (* Basic_2A1: uses: lw_pair *)
36 lemma lw_bind: ∀I,L. ♯❨L❩ < ♯❨L.ⓘ[I]❩.
39 (* Basic_1: removed theorems 4: clt_cong clt_head clt_thead clt_wf_ind *)
40 (* Basic_1: removed local theorems 1: clt_wf__q_ind *)
41 (* Basic_1: note: clt_thead should be renamed clt_ctail *)