Dahoas / EAI4Math

5 stars 1 forks source link

Pull lean server from COPRA #6

Closed justinchiu-cohere closed 6 days ago

justinchiu-cohere commented 1 week ago

COPRA built a python wrapper for lean/repl.

this commit does the minimal changes to get it running.

setup lean (elan, lean 4.8.0, repl) with

bash scripts/setup_lean.sh

test with

python src/tools/lean4_sync_executor.py

note: i heard some students at stanford built a really nice python wrapper for lean. going to see if we can use that instead.

update: the pypantograph library looks pretty nice: https://github.com/lenianiva/PyPantograph/pull/10