package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=8d852367b54f095d9fbabd000304d450
sha512=46922d5f2eb6802a148a52fd3e7f0be8370c93e7bc33cee05cf4a2044290845b10ccddbaa306f29c808e7c5019700763e37e45ff6deb507b874a4348010fed50
doc/coq-core.engine/Proofview/Unsafe/index.html
Module Proofview.Unsafe
Source
The primitives in the Unsafe
module should be avoided as much as possible, since they can make the proof state inconsistent. They are nevertheless helpful, in particular when interfacing the pretyping and the proof engine.
tclEVARS sigma
replaces the current evar_map
by sigma
. If sigma
has new unresolved evar
-s they will not appear as goal. If goals have been solved in sigma
they will still appear as unsolved goals.
Like tclEVARS
but also checks whether goals have been solved.
Set the global environment of the tactic
tclNEWGOALS ~before gls
adds the goals gls
to the ones currently being proved. If before
is true, it prepends them to the list of focused goals, otherwise it appends them (default). If a goal is already solved, it is not added.
tclNEWSHELVED gls
adds the goals gls
to the shelf. If a goal is already solved, it is not added.
tclSETGOALS gls
sets goals gls
as the goals being under focus. If a goal is already solved, it is not set.
tclGETGOALS
returns the list of goals under focus.
Clears the future goals store in the proof view.
Give the evars the status of a goal (changes their source location and makes them unresolvable for type classes.
Make some evars unresolvable for type classes. We need two functions as some functions use the proofview and others directly manipulate the undelying evar_map.
advance sigma g
returns Some g'
if g'
is undefined and is the current avatar of g
(for instance g
was changed by clear
into g'
). It returns None
if g
has been (partially) solved.
val undefined :
Evd.evar_map ->
Proofview_monad.goal_with_state list ->
Proofview_monad.goal_with_state list
undefined sigma l
applies advance
to the goals of l
, then returns the subset of resulting goals which have not yet been defined