X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_1A%2Flift1%2Fdefs.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_1A%2Flift1%2Fdefs.ma;h=c65accaae91397ea7caddb03e1ae0364c0732bee;hb=d2545ffd201b1aa49887313791386add78fa8603;hp=0000000000000000000000000000000000000000;hpb=57ae1762497a5f3ea75740e2908e04adb8642cc2;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_1A/lift1/defs.ma b/matita/matita/contribs/lambdadelta/basic_1A/lift1/defs.ma new file mode 100644 index 000000000..c65accaae --- /dev/null +++ b/matita/matita/contribs/lambdadelta/basic_1A/lift1/defs.ma @@ -0,0 +1,31 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +(* This file was automatically generated: do not edit *********************) + +include "basic_1A/lift/defs.ma". + +rec definition trans (hds: PList) on hds: nat \to nat \def \lambda (i: +nat).(match hds with [PNil \Rightarrow i | (PCons h d hds0) \Rightarrow (let +j \def (trans hds0 i) in (match (blt j d) with [true \Rightarrow j | false +\Rightarrow (plus j h)]))]). + +rec definition lift1 (hds: PList) on hds: T \to T \def \lambda (t: T).(match +hds with [PNil \Rightarrow t | (PCons h d hds0) \Rightarrow (lift h d (lift1 +hds0 t))]). + +rec definition lifts1 (hds: PList) (ts: TList) on ts: TList \def match ts +with [TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (TCons (lift1 hds t) +(lifts1 hds ts0))]. +