The goal of this iteration is to convert batches of formal proofs ("formalProof") into main-statement Lean files that contain sorry
.
Typical workflow:
- Normalize the JSON files and convert them into corresponding Lean files (InitialJsonConvert).
- For batches of Lean files, use a local parallel Lean builder to check for compilation errors (LeanCheck). If the original formalProof has issues, fix them (Failed_Lean_to_Json).
- Use an LLM to process formalProof files in parallel and generate main-statement files, preserving file IDs. After processing, report which files failed to build. For files with compilation errors, roll back the LLM-produced main statement to the original one. The final outputs are: (a) a new set of main-statement Lean files in the
output
folder, and (b) the original JSON files augmented with amainStatement
unit (LLM_Agent and FinalJsonConvert). - In a visual environment, manually fix files with build errors and verify that the LLM outputs truly meet the task requirements (jsonDisplay).
How to use this repository: Ask copilot in VSCode for help.