]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/lift1/defs.ma
components: clen lift1 drop1
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / lift1 / 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/lift/defs.ma".
18
19 let rec trans (hds: PList) on hds: nat \to nat \def \lambda (i: nat).(match 
20 hds with [PNil \Rightarrow i | (PCons h d hds0) \Rightarrow (let j \def 
21 (trans hds0 i) in (let TMP_1 \def (blt j d) in (match TMP_1 with [true 
22 \Rightarrow j | false \Rightarrow (plus j h)])))]).
23
24 let rec lift1 (hds: PList) on hds: T \to T \def \lambda (t: T).(match hds 
25 with [PNil \Rightarrow t | (PCons h d hds0) \Rightarrow (let TMP_1 \def 
26 (lift1 hds0 t) in (lift h d TMP_1))]).
27
28 let rec lifts1 (hds: PList) (ts: TList) on ts: TList \def match ts with [TNil 
29 \Rightarrow TNil | (TCons t ts0) \Rightarrow (let TMP_1 \def (lift1 hds t) in 
30 (let TMP_2 \def (lifts1 hds ts0) in (TCons TMP_1 TMP_2)))].
31