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/notation/functions/weight_1.ma".
16 include "static_2/syntax/term.ma".
18 (* WEIGHT OF A TERM *********************************************************)
20 rec definition tw T ≝ match T with
22 | TPair _ V T ⇒ ↑(tw V + tw T)
25 interpretation "weight (term)" 'Weight T = (tw T).
27 (* Basic properties *********************************************************)
29 (* Basic_1: was: tweight_lt *)
30 lemma tw_pos: ∀T. 1 ≤ ♯❨T❩.
34 lemma tw_le_pair_dx (I): ∀V,T. ♯❨T❩ < ♯❨②[I]V.T❩.
35 #I #V #T /2 width=1 by nle_succ_bi/
38 (* Basic_1: removed theorems 11:
39 wadd_le wadd_lt wadd_O weight_le weight_eq weight_add_O
40 weight_add_S tlt_trans tlt_head_sx tlt_head_dx tlt_wf_ind
42 (* Basic_1: removed local theorems 1: q_ind *)