Debian Codegraph @

plugins/ltac2/tac2tactics.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 Names
12 open Tac2expr
13 open EConstr
14 open Genredexpr
15 open Tac2types
16 open Proofview
17
18 (** Local reimplementations of tactics variants from Rocq *)
19
20 val intros_patterns : evars_flag -> intro_pattern list -> unit tactic
21
22 val apply : advanced_flag -> evars_flag ->
23 constr_with_bindings thunk list ->
24 (Id.t * intro_pattern option) option -> unit tactic
25
26 val induction_destruct : rec_flag -> evars_flag ->
27 induction_clause list -> constr_with_bindings option -> unit tactic
28
29 val elim : evars_flag -> constr_with_bindings -> constr_with_bindings option ->
30 unit tactic
31
32 val general_case_analysis : evars_flag -> constr_with_bindings -> unit tactic
33
34 val generalize : (constr * occurrences * Name.t) list -> unit tactic
35
36 val constructor_tac : evars_flag -> int option -> int -> bindings -> unit tactic
37
38 val left_with_bindings : evars_flag -> bindings -> unit tactic
39 val right_with_bindings : evars_flag -> bindings -> unit tactic
40 val split_with_bindings : evars_flag -> bindings -> unit tactic
41
42 val specialize : constr_with_bindings -> intro_pattern option -> unit tactic
43
44 val change : Pattern.constr_pattern option -> (constr array, constr) Tac2ffi.fun1 -> clause -> unit tactic
45
46 val rewrite :
47 evars_flag -> rewriting list -> clause -> unit thunk option -> unit tactic
48
49 val setoid_rewrite :
50 orientation -> constr_with_bindings tactic -> occurrences -> Id.t option -> unit tactic
51
52 val rewrite_strat : Rewrite.strategy -> Id.t option -> unit tactic
53
54 module RewriteStrats :
55 sig
56 val fix : Tac2val.closure -> Rewrite.strategy tactic
57
58 val hints : Id.t -> Rewrite.strategy
59
60 val old_hints : Id.t -> Rewrite.strategy
61
62 val one_lemma : Ltac_pretype.closed_glob_constr -> bool -> Rewrite.strategy
63
64 val lemmas : Ltac_pretype.closed_glob_constr list -> Rewrite.strategy
65 end
66
67 val symmetry : clause -> unit tactic
68
69 val forward : bool -> unit tactic option option ->
70 intro_pattern option -> constr -> unit tactic
71
72 val assert_ : assertion -> unit tactic
73
74 val letin_pat_tac : evars_flag -> (bool * intro_pattern_naming) option ->
75 Name.t -> (Evd.evar_map option * constr) -> clause -> unit tactic
76
77 val reduce_in : Redexpr.red_expr -> clause -> unit tactic
78
79 val reduce_constr : Redexpr.red_expr -> constr -> constr tactic
80
81 val simpl : Tac2types.red_flag -> Tac2types.red_context -> Redexpr.red_expr tactic
82
83 val cbv : Tac2types.red_flag -> Redexpr.red_expr tactic
84
85 val cbn : GlobRef.t glob_red_flag -> Redexpr.red_expr tactic
86
87 val lazy_ : GlobRef.t glob_red_flag -> Redexpr.red_expr tactic
88
89 val unfold : (GlobRef.t * occurrences) list -> Redexpr.red_expr tactic
90
91 val pattern : (constr * occurrences) list -> Redexpr.red_expr
92
93 val vm : Tac2types.red_context -> Redexpr.red_expr
94
95 val native : Tac2types.red_context -> Redexpr.red_expr
96
97 val discriminate : evars_flag -> destruction_arg option -> unit tactic
98
99 val injection : evars_flag -> intro_pattern list option -> destruction_arg option -> unit tactic
100
101 val autorewrite : all:bool -> unit thunk option -> Id.t list -> clause -> unit tactic
102
103 val trivial : Hints.debug -> GlobRef.t list -> Id.t list option ->
104 unit Proofview.tactic
105
106 val auto : Hints.debug -> int option -> GlobRef.t list ->
107 Id.t list option -> unit Proofview.tactic
108
109 val eauto : Hints.debug -> int option -> GlobRef.t list ->
110 Id.t list option -> unit Proofview.tactic
111
112 val typeclasses_eauto : Class_tactics.search_strategy option -> int option ->
113 Id.t list option -> unit Proofview.tactic
114
115 val unify : constr -> constr -> unit tactic
116
117 val inversion : Inv.inversion_kind -> destruction_arg -> intro_pattern option -> Id.t list option -> unit tactic
118
119 val contradiction : constr_with_bindings option -> unit tactic
120
121 val current_transparent_state : unit -> TransparentState.t tactic
122
123 val evarconv_unify : TransparentState.t -> constr -> constr -> unit tactic
124
125 (** Internal *)
126
127 val mk_intro_pattern : intro_pattern -> Tactypes.intro_pattern
128
129 val congruence : int option -> constr list option -> unit Proofview.tactic
130
131 val simple_congruence : int option -> constr list option -> unit Proofview.tactic
132
133 val f_equal : unit Proofview.tactic