(* ||M|| This file is part of HELM, an Hypertextual, Electronic ||A|| Library of Mathematics, developed at the Computer Science ||T|| Department, University of Bologna, Italy. ||I|| ||T|| HELM is free software; you can redistribute it and/or ||A|| modify it under the terms of the GNU General Public License \ / version 2 or (at your option) any later version. \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) type uri = Entity.uri type id = Entity.id type term = Sort of bool (* sorts: true = TYPE, false = PROP *) | LRef of int * int (* local reference: local environment length, de bruijn index *) | GRef of int * uri * term list (* global reference: local environment length, name, arguments *) | Appl of term * term (* application: argument, function *) | Abst of id * term * term (* abstraction: name, domain, scope *) type pars = (id * term) list (* parameter declarations: name, type *) type entry = pars * term * term option (* parameters, domain, body *) type entity = entry Entity.entity