Skip to content

Logic ProverLogic Documentation Portal & Theorem Prover

High-performance automated reasoning engine, formula generator, and proof reconstructor in Python.

Architecture Overview ​

  • logic_prover.core: AST definitions, sort systems, signatures, parser, substitution, rewriting.
  • logic_prover.prover: Resolution theorem prover engine, clause generation, proof DAG reconstruction.
  • logic_prover.explorer: Novel formula generation, heuristic ranking, and diversity filters.
  • logic_prover.deducer: Network dependency analysis and hypothesis minimal subset detection.
  • logic_prover.exporters: Translation to Lean 4 formal code and interactive HTML DAG graph rendering.
  • logic_prover.axioms: Axiomatic mathematical theories, signatures, and formal Theory definitions.
  • logic_prover.sol: Second-Order Logic (SOL) extensions.
  • utils: Developer utilities and automated documentation generator.

Submodule API Reference ​

Module GroupDocumentation LinkDocumented ClassesDocumented Functions
axiomsaxioms →136
constructiveconstructive →3114
corecore →1220
deducerdeducer →04
explorerexplorer →10
logginglogging →12
proverprover →02

Examples ​

Ready-to-run scripts are collected on the Examples page. Each file is self-contained, commented, and can be executed directly:

ExampleDescription
01_formula_construction.pyExample 01: Build, parse, and inspect logic formulas.
02_theorem_proving.pyExample 02: Prove theorems with the resolution prover.
03_knowledge_base.pyExample 03: Store and query formulas in the SQLite knowledge base.
04_formula_explorer.pyExample 04: Generate and rank novel formulas with the FormulaExplorer.
05_dependency_deducer.pyExample 05: Analyze dependencies and deduce minimal hypotheses.
06_exporters.pyExample 06: Export theorems to Lean 4 and interactive HTML graphs.
07_second_order_logic.pyExample 07: Second-order logic — predicate variables and schemas.
08_cli_usage.pyExample 08: Drive the full pipeline through the CLI entry point.

Released under the CC BY-NC 4.0 License.