package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
doc/coq-core.proofs/Refine/index.html
Module Refine
Source
The primitive refine tactic used to fill the holes in partial proofs. This is the recommended way to write tactics when the proof term is easy to write down. Note that this is not the user-level refine tactic defined in Ltac which is actually based on the one below.
The refine tactic
Refinement primitives
val refine :
typecheck:bool ->
(Evd.evar_map -> Evd.evar_map * EConstr.t) ->
unit Proofview.tactic
In refine ~typecheck t
, t
is a term with holes under some evar_map
context. The term t
is used as a partial solution for the current goal (refine is a goal-dependent tactic), the new holes created by t
become the new subgoals. Exceptions raised during the interpretation of t
are caught and result in tactic failures. If typecheck
is true
t
is type-checked beforehand. Shelved evars and goals are all marked as unresolvable for typeclasses.
val generic_refine :
typecheck:bool ->
('a * EConstr.t) Proofview.tactic ->
Proofview.Goal.t ->
'a Proofview.tactic
The general version of refine.
Unification constraint handling
Solve any remaining unification problems, applying heuristics.