]> matita.cs.unibo.it Git - helm.git/blob - components/tactics/paramodulation/utils.mli
tagged 0.5.0-rc1
[helm.git] / components / tactics / paramodulation / utils.mli
1 (* Copyright (C) 2005, HELM Team.
2  * 
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.
6  * 
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.
11  * 
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.
16  *
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,
20  * MA  02111-1307, USA.
21  * 
22  * For details, see the HELM World-Wide-Web page,
23  * http://cs.unibo.it/helm/.
24  *)
25
26 (* (weight of constants, [(meta, weight_of_meta)]) *)
27
28 val time : bool
29 val debug : bool
30 val debug_metas: bool
31 val debug_res: bool
32
33 type weight = int * (int * int) list;;
34
35 type comparison = Lt | Le | Eq | Ge | Gt | Incomparable;;
36
37 type environment = Cic.metasenv * Cic.context * CicUniv.universe_graph
38
39 val print_metasenv: Cic.metasenv -> string
40
41 val print_subst: ?prefix:string -> Cic.substitution -> string
42
43 val string_of_weight: weight -> string
44
45 val weight_of_term: 
46   ?consider_metas:bool ->
47   ?count_metas_occurrences:bool-> Cic.term -> weight
48
49 val normalize_weight: int -> weight -> weight
50
51 val string_of_comparison: comparison -> string
52
53 val compare_weights: ?normalize:bool -> weight -> weight -> comparison
54
55 val nonrec_kbo: Cic.term -> Cic.term -> comparison
56
57 val rpo: Cic.term -> Cic.term -> comparison
58
59 val nonrec_kbo_w: (Cic.term * weight) -> (Cic.term * weight) -> comparison
60
61 val names_of_context: Cic.context -> (Cic.name option) list
62
63 module TermMap: Map.S with type key = Cic.term
64
65 val symbols_of_term: Cic.term -> int TermMap.t
66 val set_goal_symbols: Cic.term -> unit
67
68 val lpo: Cic.term -> Cic.term -> comparison
69
70 val kbo: Cic.term -> Cic.term -> comparison
71
72 val ao: Cic.term -> Cic.term -> comparison
73
74 (** term-ordering function settable by the user *)
75 val compare_terms: (Cic.term -> Cic.term -> comparison) ref
76
77 val guarded_simpl:  ?debug:bool -> Cic.context -> Cic.term -> Cic.term
78
79 type pos = Left | Right 
80
81 val string_of_pos: pos -> string
82
83 val compute_equality_weight: Cic.term * Cic.term * Cic.term * comparison -> int
84
85 val debug_print: string Lazy.t -> unit
86
87 val metas_of_term: Cic.term -> int list
88
89 val remove_local_context: Cic.term -> Cic.term