]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/grammar/term_weight.ma
universary milestone in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / grammar / term_weight.ma
index 3f9fbef8775b55a2e353acea9aafbedceca23a44..23659262d95191885e034822d1c60f4d1499af76 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
+include "basic_2/notation/functions/weight_1.ma".
 include "basic_2/grammar/term.ma".
 
 (* WEIGHT OF A TERM *********************************************************)
 
-let rec tw T ≝ match T with
+rec definition tw T ≝ match T with
 [ TAtom _     ⇒ 1
 | TPair _ V T ⇒ tw V + tw T + 1
 ].
@@ -26,7 +27,7 @@ interpretation "weight (term)" 'Weight T = (tw T).
 (* Basic properties *********************************************************)
 
 (* Basic_1: was: tweight_lt *)
-lemma tw_pos: ∀T. 1 ≤ #{T}.
+lemma tw_pos: ∀T. 1 ≤ {T}.
 #T elim T -T //
 qed.