]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/contribs/LAMBDA-TYPES/terms_defs.ma
ocaml 3.09 transition
[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 include "coq.ma".
18
19 alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
20 alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
21 alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
22 alias id "plus" = "cic:/Coq/Init/Peano/plus.con".
23 alias id "lt" = "cic:/Coq/Init/Peano/lt.con".
24 alias id "le" = "cic:/Coq/Init/Peano/le.ind#xpointer(1/1)".
25
26 inductive B : Set \def 
27    | Void: B
28    | Abbr: B
29    | Abst: B.
30
31 inductive F : Set \def 
32    | Appl: F 
33    | Cast: F.
34
35 inductive W : Set \def 
36    | Bind: B \to W 
37    | Flat: F \to W.
38
39 inductive T (A:Set) (N:Set) : Set \def
40    | TSort: A \to nat \to (T A N) 
41    | TLRef: A \to nat \to (T A N)
42    | TWag : A \to W \to (T A N) \to (T A N) \to (T A N)
43    | TGRef: A \to N \to (T A N).
44    
45 record X (A:Set) (N:Set) : Type \def {
46    get_gref: N \to B \to (T A N) \to Prop
47 }.