]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1A/lift/defs.ma
update in lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / basic_1A / lift / defs.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* This file was automatically generated: do not edit *********************)
16
17 include "basic_1A/tlist/defs.ma".
18
19 include "basic_1A/s/defs.ma".
20
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))].
25
26 definition lift:
27  nat \to (nat \to (T \to T))
28 \def
29  \lambda (h: nat).(\lambda (i: nat).(\lambda (t: T).(lref_map (\lambda (x: 
30 nat).(plus x h)) i t))).
31
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) 
34 (lifts h d ts0))].
35