(* 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/. *) (* $Id$ *) type goal = Equality.goal_proof * Cic.metasenv * Cic.term module Index : sig module PosEqSet : Set.S with type elt = Utils.pos * Equality.equality and type t = Equality_indexing.DT.PosEqSet.t type t = Discrimination_tree.DiscriminationTreeIndexing(PosEqSet).t type key = Cic.term end val index : Index.t -> Equality.equality -> Index.t val remove_index : Index.t -> Equality.equality -> Index.t val in_index : Index.t -> Equality.equality -> bool val empty : Index.t val init_index : unit -> unit val unification : Cic.metasenv * Cic.context * CicUniv.universe_graph -> Index.t -> Equality.equality -> (Subst.substitution * Equality.equality * bool) option val subsumption : Cic.metasenv * Cic.context * CicUniv.universe_graph -> Index.t -> Equality.equality -> (Subst.substitution * Equality.equality * bool) option val superposition_left : Cic.conjecture list * Cic.context * CicUniv.universe_graph -> Index.t -> goal -> goal list val superposition_right : ?subterms_only:bool -> int -> 'a * Cic.context * CicUniv.universe_graph -> Index.t -> Equality.equality -> int * Equality.equality list val demodulation_equality : ?from:string -> int -> Cic.metasenv * Cic.context * CicUniv.universe_graph -> Index.t -> Utils.equality_sign -> Equality.equality -> int * Equality.equality val demodulation_goal : Cic.metasenv * Cic.context * CicUniv.universe_graph -> Index.t -> goal -> bool * goal val demodulation_theorem : 'a -> Cic.metasenv * Cic.context * CicUniv.universe_graph -> Index.t -> Cic.term * Index.key * Cic.metasenv -> 'a * (Cic.term * Index.key * Cic.metasenv) val check_target: Cic.context -> Equality.equality -> string -> unit (** profiling *) val get_stats: unit -> string