]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/LAMBDA-TYPES/LambdaDelta-1/T/defs.ma
contribs should now compile
[helm.git] / matita / contribs / LAMBDA-TYPES / LambdaDelta-1 / T / 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
18
19 include "preamble3.ma".
20
21 inductive B: Set \def
22 | Abbr: B
23 | Abst: B
24 | Void: B.
25
26 inductive F: Set \def
27 | Appl: F
28 | Cast: F.
29
30 inductive K: Set \def
31 | Bind: B \to K
32 | Flat: F \to K.
33
34 inductive T: Set \def
35 | TSort: nat \to T
36 | TLRef: nat \to T
37 | THead: K \to (T \to (T \to T)).
38
39 definition tweight:
40  T \to nat
41 \def
42  let rec tweight (t: T) on t: nat \def (match t with [(TSort _) \Rightarrow 
43 (S O) | (TLRef _) \Rightarrow (S O) | (THead _ u t0) \Rightarrow (S (plus 
44 (tweight u) (tweight t0)))]) in tweight.
45