- Make a new codespace of this repository (you can skip this if you are on Linux already). Select "4 coures" instead of the default "2 cores" for smoother experience. Open the codespace in VSCode.
- Run
wget -q https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_debian.sh && bash install_debian.sh ; rm -f install_debian.sh && source ~/.profileto install elan, lake and Lean. - Add
laketo your path withecho "export PATH=\"$(dirname $(which lake)):\$PATH\"" >> ~/.bashrc. - Download mathlib cache with
lake exe cache get. - Run
poetry install --no-rootto install the dependencies (mainly PyPantograph). - Run
poetry run python scripts/pantograph_example.pyto test the installation.
- Add the
OPENAI_API_KEY = your-actual-keyto.env - Run
poetry run python src/evaluate.py. Solved theorems get saved indata/results/solved/. The number of solved theorems is saved indata/results/summary.csv. - If you get an error that server took too long to respond, you need to make sure minif2f imports are compiled. To do that run
lake exe cache getand then open fileAutoformalizationWithLlms/minif2f_imports.leanin VSCode and make sure it compiles.