API reference¶
Auto-generated from the package docstrings. The tables below link to the full signature and documentation of each public entry point; use the search box or the Index for anything not listed here.
Parsing & the AST¶
Unified parser supporting FOL, MSFOL, MSFL, FL, modal, and second-order modes. |
|
Base class for all AST nodes. |
|
Substitute target with replacement in term, with full capture avoidance. |
|
Return the set of free Variable and LambdaVar occurrences in node. |
|
Reduce an MSFL (or plain FOL) node to a purely classical FOL node. |
Normal forms, lambda calculus & unification¶
Return the negation normal form of node (after reducing to classical FOL). |
|
Return the prenex normal form: quantifier prefix over a quantifier-free NNF matrix, with all bound variables standardised apart. |
|
Return prenex form whose matrix is a conjunction of clauses. |
|
Return prenex form whose matrix is a disjunction of conjunctive clauses. |
|
Return an EQUISATISFIABLE CNF via the Tseitin/definitional encoding. |
|
Return prenex NNF with existentials replaced by Skolem terms. |
|
Return True iff node's clausal form consists of Horn clauses. |
|
Return a lambda-free node ready for the FOL export / normal-form pipeline. |
|
Reduce node to beta-eta normal form by alternating beta_reduce and eta_reduce. |
|
Return the leftmost-outermost reduction trace from node to beta-normal form. |
|
Most-general unifier of t1 and t2, or None if they do not unify. |
|
Apply substitution subst to node, returning a new node. |
Import / export¶
Parse a whole TPTP problem into a list of |
|
Parse a single bare TPTP FOF/CNF formula (no |
|
Read a TPTP problem file and |
|
Parse a single Prover9-syntax formula into a toolkit |
|
Parse a whole Prover9 / LADR input file into a list of |
|
Read a Prover9 / LADR input file and |
|
Convert a Z3 expression ( |
|
Parse an SMT-LIB2 string and return its assertions as toolkit |
|
Read an SMT-LIB2 ( |
|
Return |
|
Sanitize a sequence of formulas with one shared, consistent |
|
Parse a LaTeX math-mode formula into an AST node. |
|
Translate a LaTeX math-mode formula into the toolkit's Unicode surface syntax. |
|
Return an English paraphrase of |
Classical reasoning¶
Return True iff |
|
Return True iff |
|
Return True if the formula is valid, i.e. its negation is unsatisfiable. |
|
Return True if the formula has a model (Z3 reports sat). |
|
Return a satisfying assignment as a dict, or None if unsat/unknown. |
|
Return True iff |
|
Return True iff |
|
Return True iff |
|
Checks if a conclusion entails from the defined premises by using prover9. |
|
Return whether |
|
Return a finite |
|
Return a finite structure satisfying |
|
True iff |
|
True iff no finite countermodel of |
Proof systems¶
Return True iff |
|
Search for a Fitch proof of |
|
Return True iff |
|
Render |
|
Return True iff |
|
Return True iff |
|
Return True iff |
|
Return True iff |
|
Return a satisfying literal assignment if |
|
Search for a cut-free ILL derivation of |
|
Return True iff |
|
Return True iff |
|
Decide |
|
Return True iff |
|
Return True iff |
Modal, temporal, epistemic & deontic logic¶
Return whether |
|
Translate a propositional modal |
|
Return True iff |
|
Decide |
|
Return a Kripke model falsifying |
|
Return True iff |
|
Return True iff |
|
Return True iff two modal formulas are QML-equivalent under |
|
Return True iff the hybrid-modal |
|
Emit a Benzmüller-style TPTP THF shallow embedding of |
|
Emit a complete, loadable Isabelle/HOL theory shallow-embedding |
|
Decide a modal formula's validity by running a local Isabelle. |
|
Decide a classical FOL (or MSFOL) formula's validity by running Isabelle. |
|
Emit the self-contained modal deep/maximal/minimal + faithfulness theory. |
|
Emit the self-contained intuitionistic deep/maximal/minimal + faithfulness theory. |
|
Emit the self-contained Lewis-conditional deep/maximal/minimal + faithfulness theory. |
|
Emit the self-contained relevant-B deep/maximal/minimal + faithfulness theory. |
Many-valued, fuzzy, intuitionistic & second-order¶
Compute the |
|
Strong-Kleene three-valued truth value of a classical formula. |
|
True iff |
|
True iff every assignment designating all |
|
Compute the fuzzy truth degree in [0, 1] of an FL/MSFL formula. |
|
Return True iff the formula has degree 1 under every atom-valuation. |
|
Return the |
|
Return True iff no intuitionistic counter-model to |
|
Return |
|
Return whether |
|
True iff no finite counter-model of the SO |
|
Return a finite structure in which the SO |
|
Return whether |
|
Convenience: |
|
Return |
|
Return whether |
|
Return True iff no B-countermodel to |
|
Return |
|
Return whether |
|
Return whether |
|
Return whether the structure makes the SENTENCE true: |
Subpackage modules¶
The |
|
Finite-valued logical matrices: a generalisation of the K3 / LP three-valued layer. |
|
Continuous t-norms for the fuzzy (BL / Hájek basic-logic) family. |
|
Free logic — first-order logic without the existence assumption. |
|
Counterfactual conditionals — Lewis / Stalnaker sphere semantics. |
|
Public announcement logic (PAL) — dynamic epistemic model update. |
|
Non-monotonic reasoning — minimal-model entailment (predicate circumscription). |
|
Labelled analytic tableaux for the propositional modal family. |
|
Run a local Isabelle to actually discharge the emitted shallow-embedding theories — turning the |