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 (* This file was automatically generated: do not edit *********************)
17 set "baseuri" "cic:/matita/LAMBDA-TYPES/Level-1/LambdaDelta/T/defs".
19 include "preamble.ma".
37 | THead: K \to (T \to (T \to T)).
39 inductive TList: Set \def
41 | TCons: T \to (TList \to TList).
44 K \to (TList \to (T \to T))
46 let rec THeads (k: K) (us: TList) on us: (T \to T) \def (\lambda (t:
47 T).(match us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (THead k u
48 (THeads k ul t))])) in THeads.
53 let rec tweight (t: T) on t: nat \def (match t with [(TSort _) \Rightarrow
54 (S O) | (TLRef _) \Rightarrow (S O) | (THead _ u t0) \Rightarrow (S (plus
55 (tweight u) (tweight t0)))]) in tweight.