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.ma".
17 (* WEIGHT *******************************************************************)
19 (* the weight of a term *)
20 let rec tw T ≝ match T with
23 | TPair _ V T ⇒ tw V + tw T + 1
26 interpretation "weight (term)" 'Weight T = (tw T).
28 axiom tw_wf_ind: ∀P:term→Prop.
29 (∀T2. (∀T1. # T1 < # T2 → P T1) → P T2) →