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 include "basic_1/tlist/defs.ma".
19 include "basic_1/s/defs.ma".
21 let rec lref_map (f: (nat \to nat)) (d: nat) (t: T) on t: T \def match t with
22 [(TSort n) \Rightarrow (TSort n) | (TLRef i) \Rightarrow (let TMP_4 \def
23 (match (blt i d) with [true \Rightarrow i | false \Rightarrow (f i)]) in
24 (TLRef TMP_4)) | (THead k u t0) \Rightarrow (let TMP_1 \def (lref_map f d u)
25 in (let TMP_2 \def (s k d) in (let TMP_3 \def (lref_map f TMP_2 t0) in (THead
29 nat \to (nat \to (T \to T))
31 \lambda (h: nat).(\lambda (i: nat).(\lambda (t: T).(let TMP_1 \def (\lambda
32 (x: nat).(plus x h)) in (lref_map TMP_1 i t)))).
34 let rec lifts (h: nat) (d: nat) (ts: TList) on ts: TList \def match ts with
35 [TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (let TMP_1 \def (lift h d
36 t) in (let TMP_2 \def (lifts h d ts0) in (TCons TMP_1 TMP_2)))].