]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_1/lift1/defs.ma
update in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / lift1 / defs.ma
index 1e1080c89c842dc0d31a89c99e3039c3788d3b34..4ab2589050f3a4a028468c2b4ae454043e126819 100644 (file)
 
 include "basic_1/lift/defs.ma".
 
-let rec 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 (let TMP_1 \def (blt j d) in (match TMP_1 with [tru
-\Rightarrow j | false \Rightarrow (plus j h)])))]).
+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 | fals
+\Rightarrow (plus j h)]))]).
 
-let rec lift1 (hds: PList) on hds: T \to T \def \lambda (t: T).(match hds 
-with [PNil \Rightarrow t | (PCons h d hds0) \Rightarrow (let TMP_1 \def 
-(lift1 hds0 t) in (lift h d TMP_1))]).
+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))]).
 
-let rec lifts1 (hds: PList) (ts: TList) on ts: TList \def match ts with [TNil 
-\Rightarrow TNil | (TCons t ts0) \Rightarrow (let TMP_1 \def (lift1 hds t) in 
-(let TMP_2 \def (lifts1 hds ts0) in (TCons TMP_1 TMP_2)))].
+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))].