2 (* Copyright (C) 2005, HELM Team.
4 * This file is part of HELM, an Hypertextual, Electronic
5 * Library of Mathematics, developed at the Computer Science
6 * Department, University of Bologna, Italy.
8 * HELM is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * HELM is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with HELM; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23 * For details, see the HELM World-Wide-Web page,
24 * http://cs.unibo.it/helm/.
27 (* the type for the callback used to saturate terms that are not
28 * equalities (but have = in main conclusion) *)
32 ProofEngineTypes.proof ->
35 ProofEngineTypes.goal list ->
36 Cic.substitution list * AutoCache.cache * int
39 scans the context to find all Declarations "left = right"; returns a
40 list of equalities and their indexes, the maxmeta and the cache resulted
43 val find_context_equalities:
45 Equality.equality_bag ->
47 Cic.context -> ProofEngineTypes.proof -> (* FIXME:Why bot context and proof?*)
49 int list * Equality.equality list * int * AutoCache.cache
52 searches the library for equalities and operates as find_context_equalities
54 val find_library_equalities:
55 Equality.equality_bag ->
57 bool -> HMysql.dbd -> Cic.context -> ProofEngineTypes.status -> int ->
59 UriManager.UriSet.t * (UriManager.uri * Equality.equality) list * int *