]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/LAMBDA-TYPES/LambdaDelta-1/tlist/defs.ma
experimental branch with no set baseuri command and no developments
[helm.git] / matita / contribs / LAMBDA-TYPES / LambdaDelta-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 set "baseuri" "cic:/matita/LAMBDA-TYPES/LambdaDelta-1/tlist/defs".
18
19 include "T/defs.ma".
20
21 inductive TList: Set \def
22 | TNil: TList
23 | TCons: T \to (TList \to TList).
24
25 definition THeads:
26  K \to (TList \to (T \to T))
27 \def
28  let rec THeads (k: K) (us: TList) on us: (T \to T) \def (\lambda (t: 
29 T).(match us with [TNil \Rightarrow t | (TCons u ul) \Rightarrow (THead k u 
30 (THeads k ul t))])) in THeads.
31
32 definition TApp:
33  TList \to (T \to TList)
34 \def
35  let rec TApp (ts: TList) on ts: (T \to TList) \def (\lambda (v: T).(match ts 
36 with [TNil \Rightarrow (TCons v TNil) | (TCons t ts0) \Rightarrow (TCons t 
37 (TApp ts0 v))])) in TApp.
38
39 definition tslen:
40  TList \to nat
41 \def
42  let rec tslen (ts: TList) on ts: nat \def (match ts with [TNil \Rightarrow O 
43 | (TCons _ ts0) \Rightarrow (S (tslen ts0))]) in tslen.
44
45 definition tslt:
46  TList \to (TList \to Prop)
47 \def
48  \lambda (ts1: TList).(\lambda (ts2: TList).(lt (tslen ts1) (tslen ts2))).
49