atroyn / math-llm

Grounding LLM mathematical reasoning with proof assistants.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Math LLM

This is a prototype project for grounding mathematical reasoning for large language models, using software proof assistants.

This repo is highly experimental, and anything might break at any time or not work for you.

Contributions are welcome.

Installation

You will need the coqtop command line application. This is a CLI for interacting with the Coq proof assistant software. I used the default installation path and it worked out of the box following the instructions in the included README.

You will need an OpenAI API Key set in the OPENAI_API_KEY environment variable.

Then run pip install -r requirements.txt

Run

python main.py

Roadmap

  • Interactively use Coq from Python
  • Use LLM to generate proofs in a readable format
  • Execute generated Coq
  • Use LLM to evaluate proofs for logical consistency
  • Store proof results in memory
  • Generate new conjectures
  • Break down proofs recursively into sub-goals
  • ...

About

Grounding LLM mathematical reasoning with proof assistants.

License:MIT License


Languages

Language:Python 100.0%