package coq-waterproof
Install
Dune Dependency
Authors
Maintainers
Sources
md5=246900c584d34deb5a4ed74e74c3aeab
sha512=f5242890a140c6966bd76e1d487a8ca139c14874eb0c1a589f28b72773be24f11f07bb1b163153c5811330a28a91a94d508233dc19849baa671fada857f05a3b
doc/coq-waterproof.plugin/Waterproof/Proofutils/index.html
Module Waterproof.Proofutils
Source
Returns the index of the first element x
of l
such that `f x` is true
Returns the index of the last element x
of l
such that `f x` is true
Returns the queue of the given list after the n
th element included
Maps the given function to the list then applies every returned tactic
Generalization of tactics defined in coq-core for Mergeable
-typed tactics
val tclLOG :
(Environ.env -> Evd.evar_map -> Pp.t * Pp.t) ->
Backtracking.trace Proofview.tactic ->
Pp.t list ->
Backtracking.trace Proofview.tactic
Rewrite of Auto.tclLOG
Updates the trace contained in the given tactic.
Fails if the hint's name is forbidden, or if the proof will be complete without using all must-use lemmas.
Arguments:
pp: Environ.env -> Evd.evar_map -> Pp.t * Pp.t
: function to obtain the printable version of(hint_name, source_hint_database)
tac: trace tactic
: tactic that will be triedmust_use: : Pp.t list
: list of tactics that must be used during the automationforbidden: : Pp.t list
: list of tactics that mustn't be used during the automation
Checks if every hint in must_use
is contained in tac
and returns an exception if not
val tclOrElse0 :
Backtracking.trace Proofview.tactic ->
(Backtracking.trace -> Backtracking.trace Proofview.tactic) ->
Backtracking.trace Proofview.tactic
Rewrite of Tacticals.tclORELSE0
to give the trace of the failed tactic instead of the exception
val tclTraceOrElse :
Backtracking.trace Proofview.tactic ->
Backtracking.trace Proofview.tactic ->
Backtracking.trace Proofview.tactic
Wrapper around tclOrElse0
with merge of trace contained in the failed trace tactic
into the second one
val tclTraceFirst :
Backtracking.trace Proofview.tactic list ->
Backtracking.trace Proofview.tactic
Rewrite of Tacticals.tclTraceFirst
with trace tactic
with a merge of traces of failed tactics
Rewrite of Coq's hint printer to keep only the necessary parts