]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/tlist/defs.ma
update in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / tlist / defs.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* This file was automatically generated: do not edit *********************)
16
17 include "basic_1/T/defs.ma".
18
19 inductive TList: Type[0] \def
20 | TNil: TList
21 | TCons: T \to (TList \to TList).
22
23 rec definition THeads (k: K) (us: TList) on us: T \to T \def \lambda (t: 
24 T).(match us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (THead k u 
25 (THeads k ul t))]).
26
27 rec definition TApp (ts: TList) on ts: T \to TList \def \lambda (v: T).(match 
28 ts with [TNil \Rightarrow (TCons v TNil) | (TCons t ts0) \Rightarrow (TCons t 
29 (TApp ts0 v))]).
30
31 rec definition tslen (ts: TList) on ts: nat \def match ts with [TNil 
32 \Rightarrow O | (TCons _ ts0) \Rightarrow (S (tslen ts0))].
33
34 definition tslt:
35  TList \to (TList \to Prop)
36 \def
37  \lambda (ts1: TList).(\lambda (ts2: TList).(lt (tslen ts1) (tslen ts2))).
38