Module Proofview.Unsafe
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.
val tclEVARS : Evd.evar_map -> unit tactictclEVARS sigmareplaces the currentevar_mapbysigma. Ifsigmahas new unresolvedevar-s they will not appear as goal. If goals have been solved insigmathey will still appear as unsolved goals.
val tclEVARSADVANCE : Evd.evar_map -> unit tacticLike
tclEVARSbut also checks whether goals have been solved.
val tclSETENV : Environ.env -> unit tacticSet the global environment of the tactic
val tclNEWGOALS : Proofview_monad.goal_with_state list -> unit tactictclNEWGOALS glsadds the goalsglsto the ones currently being proved, appending them to the list of focused goals. If a goal is already solved, it is not added.
val tclSETGOALS : Proofview_monad.goal_with_state list -> unit tactictclSETGOALS glssets goalsglsas the goals being under focus. If a goal is already solved, it is not set.
val tclGETGOALS : Proofview_monad.goal_with_state list tactictclGETGOALSreturns the list of goals under focus.
val mark_as_goals : Evd.evar_map -> Evar.t list -> Evd.evar_mapGive the evars the status of a goal (changes their source location and makes them unresolvable for type classes.
val mark_unresolvables : Evd.evar_map -> Evar.t list -> Evd.evar_mapMake some evars unresolvable for type classes. We need two functions as some functions use the proofview and others directly manipulate the undelying evar_map.
val mark_as_unresolvables : proofview -> Evar.t list -> proofviewval advance : Evd.evar_map -> Evar.t -> Evar.t optionadvance sigma greturnsSome g'ifg'is undefined and is the current avatar ofg(for instancegwas changed byclearintog'). It returnsNoneifghas been (partially) solved.
val undefined : Evd.evar_map -> Proofview_monad.goal_with_state list -> Proofview_monad.goal_with_state listundefined sigma lappliesadvanceto the goals ofl, then returns the subset of resulting goals which have not yet been defined