Debian Codegraph @

plugins/ltac/internals.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 open Proofview
12 open Ltac_pretype
13
14 (** Implementation of Ltac-specific code to be exported in mlg files.
15
16 This is voluntarily undocumented. Please do not use in plugin code. *)
17
18 (** {5 Tactics} *)
19
20 val assert_succeeds : unit Proofview.tactic -> unit Proofview.tactic
21
22 val mytclWithHoles : (Tactics.evars_flag ->
23 EConstr.constr Tactypes.with_bindings Tactics.destruction_arg option ->
24 unit Proofview.tactic) ->
25 Tactics.evars_flag ->
26 Tactypes.delayed_open_constr_with_bindings Tactics.destruction_arg ->
27 unit Proofview.tactic
28
29 val with_delayed_uconstr : Tacinterp.interp_sign ->
30 closed_glob_constr -> (EConstr.constr -> unit tactic) -> unit tactic
31 val replace_in_clause_maybe_by : Tacinterp.interp_sign -> bool option ->
32 closed_glob_constr -> EConstr.constr ->
33 Locus.clause -> Tacinterp.Value.t option -> unit tactic
34 val replace_term : Geninterp.interp_sign -> bool option -> closed_glob_constr ->
35 Locus.clause -> unit tactic
36
37 val discrHyp : Names.Id.t -> unit tactic
38 val injHyp : Names.Id.t -> unit tactic
39 (* TODO: remove these, they are not used from within Rocq *)
40
41 val refine_tac : Tacinterp.interp_sign -> simple:bool -> with_classes:bool ->
42 closed_glob_constr -> unit tactic
43
44 val has_evar : EConstr.t -> unit tactic
45 val is_evar : EConstr.t -> unit tactic
46 val is_var : EConstr.t -> unit tactic
47 val is_fix : EConstr.t -> unit tactic
48 val is_cofix : EConstr.t -> unit tactic
49 val is_ind : EConstr.t -> unit tactic
50 val is_constructor : EConstr.t -> unit tactic
51 val is_proj : EConstr.t -> unit tactic
52 val is_const : EConstr.t -> unit tactic
53
54 val unshelve : Tacinterp.interp_sign -> Tacinterp.Value.t -> unit tactic
55
56 val decompose : EConstr.t list -> EConstr.t -> unit tactic
57
58 val tclOPTIMIZE_HEAP : unit tactic
59
60 val onSomeWithHoles : ('a option -> unit tactic) -> 'a Tactypes.delayed_open option -> unit tactic
61
62 val exact : Geninterp.interp_sign -> Ltac_pretype.closed_glob_constr -> unit Proofview.tactic
63
64 (** {5 Commands} *)
65
66 val declare_equivalent_keys : Constrexpr.constr_expr -> Constrexpr.constr_expr -> unit
67
68 val infoH : pstate:Declare.Proof.t -> Tacexpr.raw_tactic_expr -> unit
69 (** ProofGeneral command *)