package lambdapi

  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-2.0.0.tbz
sha256=66d7d29f7a0d10493b8178c4c3aeb247971e24fab3eba1c54887e1b9a82fe005
sha512=69ecf2406e4c7225ab7f8ebe11624db5d2ab989c8f30f5b6e5d426fd8ef9102f142a2840af16fb9103bb712ebcf7d314635f8b413a05df66e7b7a38548867032

doc/lambdapi.handle/Handle/Proof/index.html

Module Handle.ProofSource

Proofs and tactics.

Sourcetype goal_typ = {
  1. goal_meta : Core.Term.meta;
  2. goal_hyps : Core.Env.t;
  3. goal_type : Core.Term.term;
}

Type of goals.

Sourcetype goal =
  1. | Typ of goal_typ
    (*

    Typing goal.

    *)
  2. | Unif of Core.Term.constr
    (*

    Unification goal.

    *)
Sourceval is_typ : goal -> bool
Sourceval is_unif : goal -> bool
Sourceval get_constr : goal -> Core.Term.constr
Sourcemodule Goal : sig ... end
Sourceval add_goals_of_problem : Core.Term.problem -> goal list -> goal list

add_goals_of_problem p gs extends the list of goals gs with the metavariables and constraints of p.

Sourcetype proof_state = {
  1. proof_name : Common.Pos.strloc;
    (*

    Name of the theorem.

    *)
  2. 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

    *)
  3. proof_goals : goal list;
    (*

    Open goals (focused goal is first).

    *)
}

Representation of the proof state of a theorem.

Sourceval finished : proof_state -> bool

finished ps tells whether there are unsolved goals in ps.

pp_goals ppf gl prints the goal list gl to channel ppf.

Sourceval remove_solved_goals : proof_state -> proof_state

remove_solved_goals ps removes from the proof state ps the typing goals that are solved.

Sourceval meta_of_key : proof_state -> int -> Core.Term.meta option

meta_of_key ps i returns Some m where m is a meta of ps whose key is i, or else it returns None.

Sourceval meta_of_name : proof_state -> string -> Core.Term.meta option

meta_of_name ps n returns Some m where m is a meta of ps whose name is n, or else it returns None.

Sourceval focus_env : proof_state option -> Core.Env.t

focus_env ps returns the scoping environment of the focused goal or the empty environment if there is none.