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