Use theorem provers to ensure the correctness of your LLM's reasoning
17 hours ago
- #Z3 theorem proving
- #Python API
- #LLM
- LLM-based reasoning using Z3 theorem proving is demonstrated.
- The system includes a high-level API (`z3dsl.reasoning`) for simple Python interface tasks and a low-level DSL (`z3dsl`) for JSON-based Z3 theorem prover interface.
- Example usage includes querying with `ProofOfThought` and evaluating results with `EvaluationPipeline`.
- Installation requires `z3-solver`, `openai`, `scikit-learn`, and `numpy`.
- Most users are recommended to use the high-level API.
- Complete examples, including Azure OpenAI support, are available in the `examples/` directory.