]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1A/T/defs.ma
update in lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / basic_1A / 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_1A/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 rec definition tweight (t: T) on t: nat \def match t with [(TSort _) 
38 \Rightarrow (S O) | (TLRef _) \Rightarrow (S O) | (THead _ u t0) \Rightarrow 
39 (S (plus (tweight u) (tweight t0)))].
40
41 definition tle:
42  T \to (T \to Prop)
43 \def
44  \lambda (t1: T).(\lambda (t2: T).(le (tweight t1) (tweight t2))).
45