(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** This files implements typeclasses eauto *)
open Names open EConstr
val typeclasses_db : string
val set_typeclasses_debug : bool -> unit
val set_typeclasses_depth : int option -> unit
type search_strategy = Dfs | Bfs
val set_typeclasses_strategy : search_strategy -> unit
val typeclasses_eauto :
?only_classes:bool (** Should non-class goals be shelved and resolved at the end. Default: false *)
-> ?best_effort:bool (** Default: false. Allow some unresolved goals to remain in the result. We explore the wholesearchspacetofindacompletesolutionbutifthatfails, wereturnthefirstsolution(ifany)withonlytwokindofconstraints: -Stuckconstraintswhichdonotvalidatethemodesdeclared fortheirheadsinthedatabaseareshelved. -Constraintswhichvalidateamodedeclarationfortheirclassbuthavenosolution areleftassubgoals. Thisisusefultodebugeautocallsandintypeclassresolutiontogivemoreinformative
error messages. *)
-> ?st:TransparentState.t (** Default: full. The transparent_state used when working with local hypotheses *)
-> ?strategy:search_strategy (** Default: governed by a global flag, which itself defaults to depth-first search.
Is a traversing-strategy specified? *)
-> depth:(Int.t option) (** Bounded or unbounded search *)
-> Hints.hint_db_name list (** The list of hint databases to use *)
-> unit Proofview.tactic
val head_of_constr : Id.t -> constr -> unit Proofview.tactic
val not_evar : constr -> unit Proofview.tactic
val is_ground : constr -> unit Proofview.tactic
val autoapply : constr -> Hints.hint_db_name -> unit Proofview.tactic
val resolve_one_typeclass : Environ.env -> Evd.evar_map -> types -> Evd.evar_map * constr (** Tries to find a solution for the given type. Raises Not_found it it fails. *)
type condition = (Environ.env -> Evd.evar_map -> Evar.Set.t -> bool)
(** Atc_solverismadeofasolverandaconditiontellingwhenthe thesolvershouldbeexecutedinsteadofRocq'sone
*) type tc_solver = solver * condition
val register_solver : name:CString.Map.key -> ?override:bool -> tc_solver -> unit val activate_solver : name:CString.Map.key -> unit val deactivate_solver : name:CString.Map.key -> unit
module Search : sig val eauto_tac :
Hints.Modes.t * TransparentState.t (** The transparent_state and modes used when working with local hypotheses *)
-> ?unique:bool (** Should we force a unique solution *)
-> only_classes:bool (** Should non-class goals be shelved and resolved at the end *)
-> best_effort:bool (** If true, when considering a proof search problem where some constraintsobeymodedeclarations,weallowinsomesituations toperformproofsearchontherestofthegoalsandreportthese remaininggoals(iftheyremainunsolved)attheend. Theremaininggoalsareconstraintsthateitherdonotmatchthemodedeclared fortheirhead(i.e.aclass),sowecannoteventrytosolvethem, orthatmatchitbuthavenosolution(forasinglerunoftheresolution). Thisisanapproximation:theremightingeneralbeotherruns ofresolutionthatfailtooandgeneratedifferentinstantiationsofthesegoals. Howeveritisstillsound:providinginstancesforthereportedconstraints
would provide a solution to the whole proof search problem. *)
-> ?strategy:search_strategy (** Is a traversing-strategy specified? *)
-> depth:Int.t option (** Bounded or unbounded search *)
-> dep:bool (** Should the tactic be made backtracking on the initial goals,
whatever their internal dependencies are. *)
-> Hints.hint_db list (** The list of hint databases to use *)
-> unit Proofview.tactic (** Note: there might be stuck goals due to mode declarations
remaining even in case of success of the tactic. *) end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.