package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=d01e5f13db2eaba6e4fe330667149e0059d4886c651ff9d6b672db2dfc9765ed
sha512=33b68c972aca37985ed73c527076198e7d4961c7e27c89cdabfe4d1cff97cd41ccfb85ae9499eb98ad9a0aefd920bc55555df6393fc441ac2429e4d99cddafa8
doc/lambdapi.handle/Handle/Proof/index.html
Module Handle.Proof
Source
Proofs and tactics.
type goal_typ = {
goal_meta : Core.Term.meta;
(*Goal metavariable.
*)goal_hyps : Core.Env.t;
(*Precomputed scoping environment.
*)goal_type : Core.Term.term;
(*Precomputed type.
*)
}
Type of goals.
add_goals_of_problem p gs
extends the list of goals gs
with the metavariables and constraints of p
.
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 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
.
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.