Research map / Large language models / Agents, code and math
Curriculum proof repair with learned counterexamples
Yuechun Sun, Jun Yang, Kexin Pei
University of Science and Technology of China · University of Chicago
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes a curriculum-based approach to training language models for formal proof repair using learned counterexamples, evaluated on verifier-in-the-loop proof repair.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Proof development in formal verification is difficult because verifier errors are coarse and failed proof obligations must be repaired; existing LM-based verifier-in-the-loop repair relies on hand-engineered prompts, retrieved examples, or sparse pass/fail feedback.
Approach
Uses learned counterexamples arranged in a curriculum to provide richer repair signal than sparse pass/fail feedback, instead of hand-engineered prompts or retrieval. Details beyond the abstract are not available.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use counterexample output format instead of chain-of-thought diagnostics (SFT) (ablation) | QwQ-32B repairer · weighted avg of 7 Verus benchmarks | Safe-Pass@1 (%): 39.3 -> 50.5 | Improved |
| add binary-reward GRPO on top of CTX-Init (ablation) | QwQ-32B CTX-Init · weighted avg of 7 Verus benchmarks | Safe-Pass@1 (%): 50.5 -> 53.7 | Mixed |
| replace binary reward with topological graph reward in GRPO (ablation) | QwQ-32B CTX-Binary · weighted avg of 7 Verus benchmarks | Safe-Pass@1 (%): 53.7 -> 61.6 | Improved |
| replace binary reward with topological graph reward in GRPO (ablation) | QwQ-32B CTX-Binary · ObfsBench | Safe-Pass@1 (%): 58.6 -> 69.9 (+11.3) | Improved |
| replace binary reward with topological graph reward in GRPO (ablation) | QwQ-32B CTX-Binary · VerusBench | Safe-Pass@3 (%): 96.2 -> 88.5 | Hurt |
| replace binary reward with topological graph reward in GRPO (ablation) | QwQ-32B CTX-Binary · LeetCode | Safe-Pass@3 (%): 40.0 -> 20.0 | Hurt |
| use TopoVerus counterexamples instead of CoT-Init diagnostics for frozen repairer | Sonnet-4.5 · 118 hard failed states | repair success (%): 31.4 -> 39.0 (+24.3% relative) | Improved |
| use TopoVerus counterexamples instead of CoT-Init diagnostics for frozen repairer | DeepSeek-V4 · 118 hard failed states | repair success (%): 11.9 -> 19.5 (+64.3% relative) | Improved |
| use CTX-Init counterexamples instead of CoT-Init diagnostics for frozen repairer | Qwen3-Coder · 118 hard failed states | repair success (%): 13.6 -> 12.7 (-6.2% relative) | Hurt |
| use CTX-Dep counterexamples instead of CoT-Init diagnostics for frozen repairer | Qwen3-Coder · 118 hard failed states | repair success (%): 13.6 -> 15.3 (+12.5% relative) | Improved |
Open problems in retrieval-augmented formal theorem proving
Can retrieval-based provers move past easy and in-distribution theorems to IMO-level and research-level problems?
- IMO-level and novel-strategy problems are still unsolved. · 5 papers state it
- Contamination of pretraining data may inflate the reported scores. · 4 papers state it
- Methods are built for one proof assistant, mostly Lean or Isabelle. · 4 papers state it
Closest papers by meaning
- ExVerus: Verus Proof Repair via Counterexample Reasoning (ICML 2026 · similarity 0.92)
- Counterexample Generation via Per-Theorem Symbolic Verifiers: When Imitation Hurts and Reinforcement Repairs (EMNLP 2026 · similarity 0.89)
- APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoning (NeurIPS 2025 · similarity 0.88)
- Counterexample Guided Program Repair Using Zero-Shot Learning and MaxSAT-based Fault Localization (AAAI 2025 · similarity 0.87)
- FaithSieve: Fine-Grained Evaluation of Math Proofs with Faithful Formal Evidence (NeurIPS 2026 · similarity 0.86)
- Variation in Verification: Understanding Verification Dynamics in Large Language Models (ICLR 2026 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.