X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_1%2Ftlist%2Fdefs.ma;h=d0eed7f52dc6abe23bfb275eeb0070d3f2ab3263;hb=57ae1762497a5f3ea75740e2908e04adb8642cc2;hp=557e41021af2120f46ed778c6787e1706fa5fa8b;hpb=14a8276e6d877c2281a1fda452ed3e4c150f5d39;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma b/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma index 557e41021..d0eed7f52 100644 --- a/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma +++ b/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma @@ -20,20 +20,19 @@ inductive TList: Type[0] \def | TNil: TList | 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))]). +rec definition THeads (k: K) (us: TList) on us: T \to T \def \lambda (t: +T).(match 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))]). +rec definition TApp (ts: TList) on ts: T \to TList \def \lambda (v: T).(match +ts 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))]. +rec definition tslen (ts: TList) on ts: nat \def match ts with [TNil +\Rightarrow O | (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))).