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/lenv_weight.ma".
17 (* WEIGHT OF A CLOSURE ******************************************************)
19 definition cw: lenv → term → ? ≝ λL,T. #[L] + #[T].
21 interpretation "weight (closure)" 'Weight L T = (cw L T).
23 (* Basic properties *********************************************************)
25 lemma cw_shift: ∀K,I,V,T. #[K. 𝕓{I} V, T] < #[K, 𝕓{I} V. T].
29 axiom cw_wf_ind: ∀R:lenv→term→Prop.
30 (∀L2,T2. (∀L1,T1. #[L1,T1] < #[L2,T2] → R L1 T1) → R L2 T2) →