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_______________________________________________________________ *)
15 type term = Sort of bool (* sorts: true = TYPE, false = PROP *)
16 | LRef of int * int (* local reference: local environment length, de bruijn index *)
17 | GRef of int * uri * term list (* global reference: local environment length, name, arguments *)
18 | Appl of term * term (* application: argument, function *)
19 | Abst of id * term * term (* abstraction: name, domain, scope *)
21 type pars = (id * term) list (* parameter declarations: name, type *)
23 type entry = pars * term * term option (* parameters, domain, body *)
25 type entity = entry Entity.entity