]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/toplevel/meta.ml
- we updated some preambles to match that of nUri.ml
[helm.git] / helm / software / lambda-delta / toplevel / meta.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 type uri = NUri.uri
13
14 type id = Aut.id
15
16 type term = Sort of bool                  (* sorts: true = TYPE, false = PROP *)
17           | LRef of int * int             (* local reference: context length, de bruijn index *)
18           | GRef of int * uri * term list (* global reference: context length, name, arguments *)
19           | Appl of term * term           (* application: argument, function *)
20           | Abst of id * term * term      (* abstraction: name, type, scope *)
21
22 type pars = (id * term) list (* parameter declarations: name, type *)
23
24 (* entry: line number, parameters, name, type, (transparent?, body) *)
25 type entry = int * pars * uri * term * (bool * term) option
26
27 type item = entry option