]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/contribs/LAMBDA-TYPES/terms_defs.ma
LAMBDA-TYPES moved under contrib, fixed (to use the library of Coq even if
[helm.git] / helm / matita / contribs / LAMBDA-TYPES / terms_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 set "baseuri" "cic:/matita/LAMBDA-TYPES/terms_defs".
16
17 inductive B : Set \def 
18    | Void: B
19    | Abbr: B
20    | Abst: B.
21
22 inductive F : Set \def 
23    | Appl: F 
24    | Cast: F.
25
26 inductive W : Set \def 
27    | Bind: B \to W 
28    | Flat: F \to W.
29
30 alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
31 inductive T (A:Set) (N:Set) : Set \def
32    | TSort: A \to nat \to (T A N) 
33    | TLRef: A \to nat \to (T A N)
34    | TWag : A \to W \to (T A N) \to (T A N) \to (T A N)
35    | TGRef: A \to N \to (T A N).
36    
37 record X (A:Set) (N:Set) : Type \def {
38    get_gref: N \to B \to (T A N) \to Prop
39 }.