(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* name:string -> unit (** To add rewriting rules to a base *) val add_rew_rules : locality:Hints.hint_locality -> string -> raw_rew_rule list -> unit val add_rewrite_hint : locality:Libobject.locality -> poly:PolyFlags.t -> string list -> bool -> Gentactic.raw_generic_tactic option -> Constrexpr.constr_expr list -> unit (** The AutoRewrite tactic. The optional conditions tell rewrite how to handle matching and side-condition solving. Default is Naive: first match in the clause, don't look at the side-conditions to tell if the rewrite succeeded. *) val autorewrite : ?conds:conditions -> unit Proofview.tactic -> string list -> unit Proofview.tactic val autorewrite_in : ?conds:conditions -> Names.Id.t -> unit Proofview.tactic -> string list -> unit Proofview.tactic (** Rewriting rules *) module RewRule : sig type t val rew_lemma : t -> UnivGen.sort_context_set * constr val rew_l2r : t -> bool val rew_tac : t -> Gentactic.glob_generic_tactic option end val find_rewrites : string -> RewRule.t list val find_matches : Environ.env -> string -> constr -> RewRule.t list val auto_multi_rewrite : ?conds:conditions -> string list -> Locus.clause -> unit Proofview.tactic val auto_multi_rewrite_with : ?conds:conditions -> unit Proofview.tactic -> string list -> Locus.clause -> unit Proofview.tactic val print_rewrite_hintdb : string -> Pp.t