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 "basic_2/grammar/term_weight.ma".
16 include "basic_2/grammar/lenv.ma".
18 (* WEIGHT OF A LOCAL ENVIRONMENT ********************************************)
20 let rec lw L ≝ match L with
22 | LPair L _ V ⇒ lw L + #[V]
25 interpretation "weight (local environment)" 'Weight L = (lw L).
27 (* Basic_1: removed theorems 2: clt_cong clt_head clt_thead *)
28 (* Basic_1: note: clt_thead should be renamed clt_ctail *)