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