(* ||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 = NUri.uri type id = Aut.id type term = Sort of bool (* sorts: true = TYPE, false = PROP *) | LRef of int * int (* local reference: context length, de bruijn index *) | GRef of int * uri * term list (* global reference: context length, name, arguments *) | Appl of term * term (* application: argument, function *) | Abst of id * term * term (* abstraction: name, type, scope *) type pars = (id * term) list (* parameter declarations: name, type *) (* entry: line number, parameters, name, type, (transparent?, body) *) type entry = int * pars * uri * term * (bool * term) option type item = entry option