]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma
legacy_1, ground_1, and basic_1 recommitted without anticipation
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / tlist / defs.ma
index 557e41021af2120f46ed778c6787e1706fa5fa8b..86b88b5dfbfedd36740096d048aba69b4155c964 100644 (file)
@@ -21,19 +21,18 @@ inductive TList: Type[0] \def
 | TCons: T \to (TList \to TList).
 
 let rec THeads (k: K) (us: TList) on us: T \to T \def \lambda (t: T).(match 
-us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (let TMP_1 \def 
-(THeads k ul t) in (THead k u TMP_1))]).
+us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (THead k u (THeads k 
+ul t))]).
 
 let rec TApp (ts: TList) on ts: T \to TList \def \lambda (v: T).(match ts 
-with [TNil \Rightarrow (TCons v TNil) | (TCons t ts0) \Rightarrow (let TMP_1 
-\def (TApp ts0 v) in (TCons t TMP_1))]).
+with [TNil \Rightarrow (TCons v TNil) | (TCons t ts0) \Rightarrow (TCons t 
+(TApp ts0 v))]).
 
 let rec tslen (ts: TList) on ts: nat \def match ts with [TNil \Rightarrow O | 
-(TCons _ ts0) \Rightarrow (let TMP_1 \def (tslen ts0) in (S TMP_1))].
+(TCons _ ts0) \Rightarrow (S (tslen ts0))].
 
 definition tslt:
  TList \to (TList \to Prop)
 \def
- \lambda (ts1: TList).(\lambda (ts2: TList).(let TMP_1 \def (tslen ts1) in 
-(let TMP_2 \def (tslen ts2) in (lt TMP_1 TMP_2)))).
+ \lambda (ts1: TList).(\lambda (ts2: TList).(lt (tslen ts1) (tslen ts2))).