package lambdapi
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1
doc/lambdapi.handle/Handle/Proof/index.html
Module Handle.ProofSource
Proof state.
type proof_state = {proof_name : Common.Pos.strloc;(*Name of the theorem.
*)proof_term : Core.Term.meta option;(*Optional metavariable holding the goal associated to a symbol used as a theorem/definition and not just a simple declaration
*)proof_goals : Goal.goal list;(*Open goals (focused goal is first).
*)
}Representation of the proof state of a theorem.
finished ps tells whether there are unsolved goals in ps.
goals ppf gl prints the goal list gl to channel ppf.
state_on_error controls whether the failure of a tactic attaches the current proof state to the error, as the err_desc argument of the Fatal exception, printed after the error message. It is enabled by default, and disabled by the LSP server, which has its own means of displaying the proof state. Errors that always reported the proof state (subproof-count mismatches, unfinished proofs) keep doing so regardless of this setting.
error_state ?after ps renders, for attachment to an error report, the proof state ps a failing tactic was applied to, followed, when the failure was only detected after the tactic was applied (a subproof-count mismatch), by the proof state after its application.
remove_solved_goals ps removes from the proof state ps the typing goals that are solved.
meta_of_key ps i returns Some m where m is a meta of ps whose key is i, or else it returns None.
focus_env ps returns the scoping environment of the focused goal or the empty environment if there is none.