]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/T/defs.ma
- we generate the terms in anticipated form (the are easier to debug)
[helm.git] / matita / matita / contribs / lambdadelta / basic_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 "basic_1/preamble.ma".
18
19 inductive B: Type[0] \def
20 | Abbr: B
21 | Abst: B
22 | Void: B.
23
24 inductive F: Type[0] \def
25 | Appl: F
26 | Cast: F.
27
28 inductive K: Type[0] \def
29 | Bind: B \to K
30 | Flat: F \to K.
31
32 inductive T: Type[0] \def
33 | TSort: nat \to T
34 | TLRef: nat \to T
35 | THead: K \to (T \to (T \to T)).
36
37 let rec tweight (t: T) on t: nat \def match t with [(TSort _) \Rightarrow (S 
38 O) | (TLRef _) \Rightarrow (S O) | (THead _ u t0) \Rightarrow (let TMP_1824 
39 \def (tweight u) in (let TMP_1823 \def (tweight t0) in (let TMP_1825 \def 
40 (plus TMP_1824 TMP_1823) in (S TMP_1825))))].
41