Debian Codegraph @

tactics/auto.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (** This files implements auto and related automation tactics *)
12
13 open Names
14 open EConstr
15 open Pattern
16 open Hints
17 open Tactypes
18
19 val compute_secvars : Proofview.Goal.t -> Id.Pred.t
20
21 (** Default maximum search depth used by [auto] and [trivial]. *)
22 val default_search_depth : int
23
24 val auto_flags_of_state : TransparentState.t -> Unification.unify_flags
25
26 (** Try unification with the precompiled clause, then use registered Apply *)
27 val unify_resolve : Unification.unify_flags -> hint -> unit Proofview.tactic
28
29 (** [ConclPattern concl pat tacast]:
30 if the term concl matches the pattern pat, (in sense of
31 [Pattern.somatches], then replace [?1] [?2] metavars in tacast by the
32 right values to build a tactic *)
33 val conclPattern : constr -> constr_pattern option -> Gentactic.glob_generic_tactic -> unit Proofview.tactic
34
35 (** [default_auto] runs the tactic [auto] with:
36 - Maximum search depth [default_search_depth].
37 - The hint database ["core"].
38 - No additional lemma. *)
39 val default_auto : unit Proofview.tactic
40
41 (** [gen_auto ?debug depth lemmas hints] runs the tactic [auto].
42 - [debug] controls whether to print a debug trace ([Off] by default). [Off] prints nothing,
43 [Info] prints successful steps, and [Debug] prints all steps (including unsuccessful ones).
44 - [depth] is the maximum search depth. If [None], [default_search_depth] is used.
45 - [lemmas] contains additional lemmas for [auto] to use.
46 - [hints] is a list of hint databases to use. If [None], _all_ existing hint databases are used.
47 By default the ["core"] hint database is included: passing ["nocore"]
48 will disable ["core"]. *)
49 val gen_auto : ?debug:debug ->
50 int option -> delayed_open_constr list -> hint_db_name list option -> unit Proofview.tactic
51
52 (** [gen_trivial] runs the tactic [trivial].
53 See [gen_auto] for an explanation of the different options.*)
54 val gen_trivial : ?debug:debug ->
55 delayed_open_constr list -> hint_db_name list option -> unit Proofview.tactic