| TLRef: nat \to T
| THead: K \to (T \to (T \to T)).
-inductive TList: Set \def
-| TNil: TList
-| TCons: T \to (TList \to TList).
-
-definition THeads:
- K \to (TList \to (T \to T))
+definition tweight:
+ T \to nat
\def
- let rec THeads (k: K) (us: TList) on us: (T \to T) \def (\lambda (t:
-T).(match us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (THead k u
-(THeads k ul t))])) in THeads.
-
-inductive C: Set \def
-| CSort: nat \to C
-| CHead: C \to (K \to (T \to C)).
+ let rec tweight (t: T) on t: nat \def (match t with [(TSort _) \Rightarrow
+(S O) | (TLRef _) \Rightarrow (S O) | (THead _ u t0) \Rightarrow (S (plus
+(tweight u) (tweight t0)))]) in tweight.