X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_1%2Ftlist%2Fdefs.ma;h=d0eed7f52dc6abe23bfb275eeb0070d3f2ab3263;hb=ab2f735d97d2b9c965f13527d5f6f61048d29b22;hp=86b88b5dfbfedd36740096d048aba69b4155c964;hpb=c3904c007394068ed823575e3be3d73a9ad92cce;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 86b88b5df..d0eed7f52 100644 --- a/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma +++ b/matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma @@ -20,16 +20,16 @@ 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 (THead k u (THeads k -ul t))]). +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 (TCons t +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 (S (tslen ts0))]. +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)