Curriculum proof repair with learned counterexamples
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:39 UTC · cde88eb1e27b ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,23 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "0Np4tgb57w"- }- ],- "title": "Curriculum proof repair with learned counterexamples",- "authors": [- "Yuechun Sun",- "Jun Yang",- "Kexin Pei"- ],- "abstract": "Language models (LMs) have substantially lowered the barrier to applying formal verification for building reliable and secure software.\nExisting approaches commonly follow the verifier-in-the-loop paradigm, but the verifier often provides only coarse, binary pass/fail feedback, which offers little actionable signal on how the proof should be repaired.\nRecent work shows that counterexamples provide more actionable feedback by grounding proof failures in concrete program states, but generating useful ones at inference time requires costly iterative refinement.\nWe present TopoVerus, an LM-based framework for Verus proof repair that internalizes counterexample-guided diagnosis as a model capability, producing useful counterexamples in a single pass.\nOur key insight is to train counterexample generation not as a standalone validation task, but as a data-driven diagnostic objective: a counterexample is useful when conditioning on it helps the model produce a safe, verifier-passing proof. \nGiven a failed Verus proof and verifier error, TopoVerus generates a structured source-level counterexample, repair rationale, and repaired proof in one trajectory, optimized with reinforcement learning from Verus feedback and a proof-code safety gate. \nTo guide the order of invariant repairs and target counterexamples to specific invariants, TopoVerus introduces a curriculum with a topological graph reward based on invariant dependencies derived from inductiveness tests and encourages counterexample generation following the same topological order as these dependencies. \nAcross seven Verus benchmarks with 471 problems, TopoVerus achieves 61.6\\%/72.2\\% weighted-average Safe-Pass@1/Safe-Pass@3, outperforming the strongest baseline, Claude Sonnet 4.5, by 5.7/6.3 points.\nWe also show that TopoVerus's learned counterexamples can directly augment the reasoning of existing LM-based proof repair approaches, improving their success rate by 64.3\\% compared to chain-of-thought diagnostics. \nWe release the training and evaluation code at https://github.com/Etha-Sun/Topoverus and the TopoVerus-32B weights at https://huggingface.co/YuechunSun/TopoVerus-32B.",- "year": 2026,- "venue": "NeurIPS 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "cb7cd47f-2ea3-4956-94f9-b57126958d8d"}
paper.json added
+++ b/paper.json@@ -0,0 +1,13 @@+{+ "title": "Curriculum proof repair with learned counterexamples",+ "authors": [+ "Yuechun Sun",+ "Jun Yang",+ "Kexin Pei"+ ],+ "abstract": "Language models (LMs) have substantially lowered the barrier to applying formal verification for building reliable and secure software.\nExisting approaches commonly follow the verifier-in-the-loop paradigm, but the verifier often provides only coarse, binary pass/fail feedback, which offers little actionable signal on how the proof should be repaired.\nRecent work shows that counterexamples provide more actionable feedback by grounding proof failures in concrete program states, but generating useful ones at inference time requires costly iterative refinement.\nWe present TopoVerus, an LM-based framework for Verus proof repair that internalizes counterexample-guided diagnosis as a model capability, producing useful counterexamples in a single pass.\nOur key insight is to train counterexample generation not as a standalone validation task, but as a data-driven diagnostic objective: a counterexample is useful when conditioning on it helps the model produce a safe, verifier-passing proof. \nGiven a failed Verus proof and verifier error, TopoVerus generates a structured source-level counterexample, repair rationale, and repaired proof in one trajectory, optimized with reinforcement learning from Verus feedback and a proof-code safety gate. \nTo guide the order of invariant repairs and target counterexamples to specific invariants, TopoVerus introduces a curriculum with a topological graph reward based on invariant dependencies derived from inductiveness tests and encourages counterexample generation following the same topological order as these dependencies. \nAcross seven Verus benchmarks with 471 problems, TopoVerus achieves 61.6\\%/72.2\\% weighted-average Safe-Pass@1/Safe-Pass@3, outperforming the strongest baseline, Claude Sonnet 4.5, by 5.7/6.3 points.\nWe also show that TopoVerus's learned counterexamples can directly augment the reasoning of existing LM-based proof repair approaches, improving their success rate by 64.3\\% compared to chain-of-thought diagnostics. \nWe release the training and evaluation code at https://github.com/Etha-Sun/Topoverus and the TopoVerus-32B weights at https://huggingface.co/YuechunSun/TopoVerus-32B.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}