Debian Codegraph @

vernac/comTactic.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 (** Tactic interpreters have to register their interpretation function *)
12 type interpretable
13
14 type 'a tactic_interpreter = private Interpreter of ('a -> interpretable)
15
16 (** ['a] should be marshallable if ever used with [par:]. Must be
17 called no more than once per process with a particular string: make
18 sure to use partial application. *)
19 val register_tactic_interpreter :
20 string -> ('a -> unit Proofview.tactic) -> 'a tactic_interpreter
21
22 (** Entry point for toplevel tactic expression execution. It calls Proof.solve
23 after having interpreted the tactic, and after the tactic runs it
24 unfocus as much as needed to put a goal under focus. *)
25 val solve :
26 pstate:Declare.Proof.t ->
27 Goal_select.t ->
28 info:int option ->
29 ?with_end_tac:bool CAst.t ->
30 interpretable ->
31 Declare.Proof.t
32
33 (** [par: tac] runs tac on all goals, possibly in parallel using a worker pool.
34 If tac is [abstract tac1], then [abstract] is passed
35 explicitly to the solver and [tac1] passed to worker since it is up to
36 master to opacify the sub proofs produced by the workers. *)
37 type parallel_solver =
38 pstate:Declare.Proof.t ->
39 info:int option ->
40 interpretable ->
41 abstract:bool -> (* the tactic result has to be opacified as per abstract *)
42 Declare.Proof.t
43
44 (** Entry point when the goal selector is par: *)
45 val solve_parallel : parallel_solver
46
47 (** By default par: is implemented with all: (sequential).
48 The STM and LSP document manager provide "more parallel" implementations *)
49 val set_par_implementation : parallel_solver -> unit