You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ~/.profile to install elan, lake and Lean.
Add lake to your path with echo "export PATH=\"$(dirname $(which lake)):\$PATH\"" >> ~/.bashrc.
Download mathlib cache with lake exe cache get.
Run poetry install --no-root to install the dependencies (mainly PyPantograph).
Run poetry run python scripts/pantograph_example.py to test the installation.
Eval on minif2f
Add the OPENAI_API_KEY = your-actual-key to .env
Run poetry run python src/evaluate.py. Solved theorems get saved in data/results/solved/. The number of solved theorems is saved in data/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 get and then open file AutoformalizationWithLlms/minif2f_imports.lean in VSCode and make sure it compiles.