]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_1/lift/defs.ma
components C r flt app lift
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / lift / defs.ma
index 046506672747d8b444d0a4b64a375b318553ee5b..0ebbb480abbb2c0cda16bb14fb67f4245468bcb8 100644 (file)
 
 (* This file was automatically generated: do not edit *********************)
 
-include "Basic-1/tlist/defs.ma".
+include "basic_1/tlist/defs.ma".
 
-include "Basic-1/s/defs.ma".
+include "basic_1/s/defs.ma".
 
-definition lref_map:
- ((nat \to nat)) \to (nat \to (T \to T))
-\def
- let rec lref_map (f: ((nat \to nat))) (d: nat) (t: T) on t: T \def (match t 
-with [(TSort n) \Rightarrow (TSort n) | (TLRef i) \Rightarrow (TLRef (match 
-(blt i d) with [true \Rightarrow i | false \Rightarrow (f i)])) | (THead k u 
-t0) \Rightarrow (THead k (lref_map f d u) (lref_map f (s k d) t0))]) in 
-lref_map.
+let rec lref_map (f: (nat \to nat)) (d: nat) (t: T) on t: T \def match t with 
+[(TSort n) \Rightarrow (TSort n) | (TLRef i) \Rightarrow (let TMP_4 \def 
+(match (blt i d) with [true \Rightarrow i | false \Rightarrow (f i)]) in 
+(TLRef TMP_4)) | (THead k u t0) \Rightarrow (let TMP_1 \def (lref_map f d u) 
+in (let TMP_2 \def (s k d) in (let TMP_3 \def (lref_map f TMP_2 t0) in (THead 
+k TMP_1 TMP_3))))].
 
 definition lift:
  nat \to (nat \to (T \to T))
 \def
- \lambda (h: nat).(\lambda (i: nat).(\lambda (t: T).(lref_map (\lambda (x: 
-nat).(plus x h)) i t))).
+ \lambda (h: nat).(\lambda (i: nat).(\lambda (t: T).(let TMP_1 \def (\lambda 
+(x: nat).(plus x h)) in (lref_map TMP_1 i t)))).
 
-definition lifts:
- nat \to (nat \to (TList \to TList))
-\def
- let rec lifts (h: nat) (d: nat) (ts: TList) on ts: TList \def (match ts with 
-[TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (TCons (lift h d t) (lifts 
-h d ts0))]) in lifts.
+let rec lifts (h: nat) (d: nat) (ts: TList) on ts: TList \def match ts with 
+[TNil \Rightarrow TNil | (TCons t ts0) \Rightarrow (let TMP_1 \def (lift h d 
+t) in (let TMP_2 \def (lifts h d ts0) in (TCons TMP_1 TMP_2)))].