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