]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/lift/defs.ma
some improvements in the anticipator
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / 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_1/tlist/defs.ma".
18
19 include "basic_1/s/defs.ma".
20
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 (blt 
23 i d) in (let TMP_5 \def (match TMP_4 with [true \Rightarrow i | false 
24 \Rightarrow (f i)]) in (TLRef TMP_5))) | (THead k u t0) \Rightarrow (let 
25 TMP_1 \def (lref_map f d u) in (let TMP_2 \def (s k d) in (let TMP_3 \def 
26 (lref_map f TMP_2 t0) in (THead k TMP_1 TMP_3))))].
27
28 definition lift:
29  nat \to (nat \to (T \to T))
30 \def
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)))).
33
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)))].
37