(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* strategy val map_strategy : ('a -> 'b) -> ('c -> 'd) -> ('e -> 'f) -> ('a, 'c, 'e) strategy_ast -> ('b, 'd, 'f) strategy_ast val pr_strategy : ('a -> Pp.t) -> ('b -> Pp.t) -> ('c -> Pp.t) -> ('a, 'b, 'c) strategy_ast -> Pp.t (** Entry point for user-level "rewrite_strat" *) val cl_rewrite_clause_strat : strategy -> Id.t option -> unit Proofview.tactic (** Entry point for user-level "setoid_rewrite" *) val cl_rewrite_clause : EConstr.t with_bindings delayed_open -> bool -> Locus.occurrences -> Id.t option -> unit Proofview.tactic val is_applied_rewrite_relation : env -> evar_map -> rel_context -> constr -> types option val get_reflexive_proof : env -> evar_map -> constr -> constr -> evar_map * constr val get_symmetric_proof : env -> evar_map -> constr -> constr -> evar_map * constr val get_transitive_proof : env -> evar_map -> constr -> constr -> evar_map * constr val setoid_symmetry : unit Proofview.tactic val setoid_symmetry_in : Id.t -> unit Proofview.tactic val setoid_reflexivity : unit Proofview.tactic val setoid_transitivity : constr option -> unit Proofview.tactic val apply_strategy : strategy -> Environ.env -> Names.Id.Set.t -> constr -> bool * constr -> evars -> rewrite_result module Strategies : sig val fail : strategy val id : strategy val refl : strategy val progress : strategy -> strategy val seq : strategy -> strategy -> strategy val seqs : strategy list -> strategy val choice : strategy -> strategy -> strategy val choices : strategy list -> strategy val try_ : strategy -> strategy val fix_tac : (strategy -> strategy Proofview.tactic) -> strategy Proofview.tactic val fix : (strategy -> strategy) -> strategy val any : strategy -> strategy val repeat : strategy -> strategy val all_subterms : strategy -> strategy val one_subterm : strategy -> strategy val bottomup : strategy -> strategy val topdown : strategy -> strategy val innermost : strategy -> strategy val outermost : strategy -> strategy val one_lemma : delayed_open_constr -> bool -> Gentactic.glob_generic_tactic option -> Locus.occurrences -> strategy val lemmas : (delayed_open_constr * bool * Gentactic.glob_generic_tactic option) list -> strategy val old_hints : string -> strategy val hints : string -> strategy val reduce : Redexpr.red_expr -> strategy val fold : Evd.econstr -> strategy val fold_glob : Glob_term.glob_constr -> strategy end module Internal : sig val build_signature : Environ.env -> Evd.evar_map -> constr -> (types * types option) option list -> (types * types option) option -> Evd.evar_map * constr * (constr * t option) list val build_morphism_signature : Environ.env -> Evd.evar_map -> Constrexpr.constr_expr -> Evd.evar_map * t val default_morphism : Environ.env -> Evd.evar_map -> (types * types option) option list * (types * types option) option -> constr -> Evd.evar_map * constr * t end