(* This file was automatically generated: do not edit *********************)
-include "Basic-1/T/defs.ma".
+include "basic_1/T/defs.ma".
definition wadd:
((nat \to nat)) \to (nat \to (nat \to nat))
\lambda (f: ((nat \to nat))).(\lambda (w: nat).(\lambda (n: nat).(match n
with [O \Rightarrow w | (S m) \Rightarrow (f m)]))).
-definition weight_map:
- ((nat \to nat)) \to (T \to nat)
-\def
- let rec weight_map (f: ((nat \to nat))) (t: T) on t: nat \def (match t with
-[(TSort _) \Rightarrow O | (TLRef n) \Rightarrow (f n) | (THead k u t0)
+rec definition weight_map (f: (nat \to nat)) (t: T) on t: nat \def match t
+with [(TSort _) \Rightarrow O | (TLRef n) \Rightarrow (f n) | (THead k u t0)
\Rightarrow (match k with [(Bind b) \Rightarrow (match b with [Abbr
\Rightarrow (S (plus (weight_map f u) (weight_map (wadd f (S (weight_map f
u))) t0))) | Abst \Rightarrow (S (plus (weight_map f u) (weight_map (wadd f
O) t0))) | Void \Rightarrow (S (plus (weight_map f u) (weight_map (wadd f O)
t0)))]) | (Flat _) \Rightarrow (S (plus (weight_map f u) (weight_map f
-t0)))])]) in weight_map.
+t0)))])].
definition weight:
T \to nat