BlueprintRepair: Typed Local Edits for Failed Lean Proof Blueprints

Ruslan Khrulev


Abstract
LLM-based Lean proving systems increasingly organize a proof as a blueprint: a dependency graph of formal statements. We introduce BlueprintRepair, a repair interface that lets a model change this graph through ten schema-checked local operations. An operation names the node it edits, so the target theorem cannot be changed. Lean checks every applied change, and an accepted repair must declare every blueprint lemma its proof uses. We also release BlueprintTrace, a benchmark of 142 controlled failures with complete accepted and rejected repair trajectories. We compare typed edits, exact source patches, and complete module rewrites under matched source, feedback, model, and budget, one episode per state and interface. With DeepSeek-V4-Flash, the three interfaces solve almost the same number of the benchmark’s localized failures. Typed repair is the cheapest per solved state (patching is 1.30× as expensive, rewriting 2.06×), and within 10000 completion tokens per task it reaches almost all of its final coverage, while both free-form interfaces are well behind. A second model, Qwen3.6-Flash, solves fewer states but keeps typed repair cheapest, puts it ahead on the proof-authoring states, and repeats the localized pattern. Code, benchmark, and trajectories are available at https://github.com/Karifannaa/BlueprintRepair.
Anthology ID:
2026.mathnlp-main.3
Volume:
The Proceedings of the 4th Workshop on Mathematical Natural Language Processing (MathNLP 2026)
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Marco Valentino, Deborah Ferreira, Mokanarangan Thayaparan, Leonardo Ranaldi, Jo-Ku Cheng, Andre Freitas
Venues:
MathNLP | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
30–41
Language:
URL:
https://aclanthology.org/2026.mathnlp-main.3/
DOI:
Bibkey:
Cite (ACL):
Ruslan Khrulev. 2026. BlueprintRepair: Typed Local Edits for Failed Lean Proof Blueprints. In The Proceedings of the 4th Workshop on Mathematical Natural Language Processing (MathNLP 2026), pages 30–41, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
BlueprintRepair: Typed Local Edits for Failed Lean Proof Blueprints (Khrulev, MathNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.mathnlp-main.3.pdf