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.
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_______________________________________________________________ *)
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 *)
22 type pars = (id * term) list (* parameter declarations: name, type *)
24 (* entry: line number, parameters, name, type, (transparent?, body) *)
25 type entry = int * pars * uri * term * (bool * term) option
27 type item = entry option