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 rec definition lref_map (f: (nat \to nat)) (d: nat) (t: T) on t: T \def match
22 t with [(TSort n) \Rightarrow (TSort n) | (TLRef i) \Rightarrow (TLRef (match
23 (blt i d) with [true \Rightarrow i | false \Rightarrow (f i)])) | (THead k u
24 t0) \Rightarrow (THead k (lref_map f d u) (lref_map f (s k d) t0))].
27 nat \to (nat \to (T \to T))
29 \lambda (h: nat).(\lambda (i: nat).(\lambda (t: T).(lref_map (\lambda (x:
30 nat).(plus x h)) i t))).
32 rec definition lifts (h: nat) (d: nat) (ts: TList) on ts: TList \def match ts
33 with [TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (TCons (lift h d t)