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