1 (* Copyright (C) 2005, HELM Team.
3 * This file is part of HELM, an Hypertextual, Electronic
4 * Library of Mathematics, developed at the Computer Science
5 * Department, University of Bologna, Italy.
7 * HELM is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * HELM is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with HELM; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * For details, see the HELM World-Wide-Web page,
23 * http://cs.unibo.it/helm/.
26 (* (weight of constants, [(meta, weight_of_meta)]) *)
33 type weight = int * (int * int) list;;
35 type comparison = Lt | Le | Eq | Ge | Gt | Incomparable;;
37 val print_metasenv: Cic.metasenv -> string
39 val print_subst: ?prefix:string -> Cic.substitution -> string
41 val string_of_weight: weight -> string
44 ?consider_metas:bool ->
45 ?count_metas_occurrences:bool-> Cic.term -> weight
47 val normalize_weight: int -> weight -> weight
49 val string_of_comparison: comparison -> string
51 val compare_weights: ?normalize:bool -> weight -> weight -> comparison
53 val nonrec_kbo: Cic.term -> Cic.term -> comparison
55 val rpo: Cic.term -> Cic.term -> comparison
57 val nonrec_kbo_w: (Cic.term * weight) -> (Cic.term * weight) -> comparison
59 val names_of_context: Cic.context -> (Cic.name option) list
61 module TermMap: Map.S with type key = Cic.term
63 val symbols_of_term: Cic.term -> int TermMap.t
65 val lpo: Cic.term -> Cic.term -> comparison
67 val kbo: Cic.term -> Cic.term -> comparison
69 val ao: Cic.term -> Cic.term -> comparison
71 (** term-ordering function settable by the user *)
72 val compare_terms: (Cic.term -> Cic.term -> comparison) ref
74 val guarded_simpl: ?debug:bool -> Cic.context -> Cic.term -> Cic.term
76 type equality_sign = Negative | Positive
78 val string_of_sign: equality_sign -> string
80 type pos = Left | Right
82 val string_of_pos: pos -> string
84 val compute_equality_weight: Cic.term -> Cic.term -> Cic.term -> int
86 val debug_print: string Lazy.t -> unit
88 val eq_ind_URI: unit -> UriManager.uri
89 val eq_ind_r_URI: unit -> UriManager.uri
90 val sym_eq_URI: unit -> UriManager.uri
91 val eq_XURI: unit -> UriManager.uri
92 val trans_eq_URI: unit -> UriManager.uri