Debian Codegraph @

proofs/refine.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 (** The primitive refine tactic used to fill the holes in partial proofs. This
12 is the recommended way to write tactics when the proof term is easy to
13 write down. Note that this is not the user-level refine tactic defined
14 in Ltac which is actually based on the one below. *)
15
16 open Proofview
17
18 (** {6 The refine tactic} *)
19
20 (** {7 Refinement primitives} *)
21
22 val refine : typecheck:bool -> (Evd.evar_map -> Evd.evar_map * EConstr.t) -> unit tactic
23 (** In [refine ~typecheck t], [t] is a term with holes under some
24 [evar_map] context. The term [t] is used as a partial solution
25 for the current goal (refine is a goal-dependent tactic), the
26 new holes created by [t] become the new subgoals. Exceptions
27 raised during the interpretation of [t] are caught and result in
28 tactic failures. If [typecheck] is [true] [t] is type-checked beforehand.
29 Shelved evars and goals are all marked as unresolvable for typeclasses. *)
30
31 val refine_with_principal : typecheck:bool -> (Evd.evar_map -> Evd.evar_map * EConstr.t * Evar.t option) -> unit tactic
32 (** Like [refine], but if the [Evar.t option] is [Some ev] then [ev]
33 inherits properties (the name) of the goal. *)
34
35 val generic_refine : typecheck:bool -> ('a * EConstr.t * Evar.t option) tactic ->
36 Proofview.Goal.t -> 'a tactic
37 (** The general version of refine. *)
38
39 (** {7 Unification constraint handling} *)
40
41 val solve_constraints : unit tactic
42 (** Solve any remaining unification problems, applying heuristics. *)