package lambdapi

All checked builds pass
  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-4.0.0.tbz
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1

doc/lambdapi.parsing/Parsing/LpParser/index.html

Module Parsing.LpParserSource

Sourceval log : 'a Lplib.Base.outfmt -> 'a
Sourceval tokens : string list -> string
Sourceval string_of_token : LpLexer.token -> string
Sourceval string_of_tokens : string -> LpLexer.token list -> string
Sourceval pp_token : Format.formatter -> LpLexer.token -> unit
Sourceval match_token : LpLexer.token -> LpLexer.token -> bool
Sourceval err_msg : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> string -> LpLexer.token list -> string
Sourceval expected : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> string -> LpLexer.token list -> 'a
Sourceval qid_of_path : (Lexing.position * Lexing.position) -> string list -> (string list * string) Common.Pos.loc
Sourceval opt : 'token -> 'token OneLookaheadCellLexbuf.lexbuf -> bool

UnfinishedProof is raised when a proof is syntactically broken. It takes as arguments: a located error message strloc, a p_symbol data structure containing the data of the declared symbol the proof is about, but with the field p_sym_prf containing only the prefix of the proof that is syntactically correct, and the position popt of the symbol command (until where the error occurred).

It is raised by the second function command (the one that is exported) in case a command is not terminated by a semicolon, or by the function proof_end when the current token is not a valid proof end token (this includes any syntax error in the middle of a proof script, e.g. an error in the name of a tactic keyword). In the second case, it is raised with popt=None and a p_symbol whose only meaningful field is p_sym_prf. The other fields are updated later as follows.

The function proof_term catches it and raises it again right away after updating p_symbol with the correct p_sym_trm in case a term has been given.

The function symbol catches it and raises it again right away after updating all the other fields of p_symbol.

The first function command catches it and raises it again right away after updating popt.

Sourceval unfinished_proof : Syntax.p_proof -> LpLexer.token OneLookaheadCellLexbuf.lexbuf -> string -> LpLexer.token list -> 'a
Sourceval list_with_sep_or_termin : LpLexer.token list -> ('a list ref -> LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a) -> LpLexer.token -> LpLexer.token OneLookaheadCellLexbuf.lexbuf -> 'a list
Sourceval consume_STRINGLIT : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> string
Sourceval qid_or_regexp : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> (string list * string) Common.Pos.loc
Sourceval qid_expl : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> (string list * string) Common.Pos.loc
Sourceval param_tks : LpLexer.token list
Sourceval path_tks : LpLexer.token list
Sourceval proof_end_tks : LpLexer.token list
Sourceval modifier_tks : LpLexer.token list
Sourceval rule_tks : unit -> LpLexer.token list
Sourceval equation_tks : unit -> LpLexer.token list
Sourceval equation : LpLexer.token OneLookaheadCellLexbuf.lexbuf -> Parsing__Syntax.p_term_aux Common.Pos.loc * Parsing__Syntax.p_term_aux Common.Pos.loc
Sourceval query_tks : unit -> LpLexer.token list
Sourceval subproof_tks : LpLexer.token list
Sourceval step_tks : unit -> LpLexer.token list
Sourceval tactic_tks : unit -> LpLexer.token list
Sourceval params_tks : LpLexer.token list
Sourceval term_tks : LpLexer.token list