]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/LAMBDA-TYPES/LambdaDelta-1/lift1/defs.ma
matita 0.5.1 tagged
[helm.git] / matita / contribs / LAMBDA-TYPES / LambdaDelta-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 "LambdaDelta-1/lift/defs.ma".
18
19 definition trans:
20  PList \to (nat \to nat)
21 \def
22  let rec trans (hds: PList) on hds: (nat \to nat) \def (\lambda (i: 
23 nat).(match hds with [PNil \Rightarrow i | (PCons h d hds0) \Rightarrow (let 
24 j \def (trans hds0 i) in (match (blt j d) with [true \Rightarrow j | false 
25 \Rightarrow (plus j h)]))])) in trans.
26
27 definition lift1:
28  PList \to (T \to T)
29 \def
30  let rec lift1 (hds: PList) on hds: (T \to T) \def (\lambda (t: T).(match hds 
31 with [PNil \Rightarrow t | (PCons h d hds0) \Rightarrow (lift h d (lift1 hds0 
32 t))])) in lift1.
33
34 definition lifts1:
35  PList \to (TList \to TList)
36 \def
37  let rec lifts1 (hds: PList) (ts: TList) on ts: TList \def (match ts with 
38 [TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (TCons (lift1 hds t) 
39 (lifts1 hds ts0))]) in lifts1.
40