Learning to Disprove: Formal Counterexample Generation with Large Language Models
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Mathematical reasoning demands two critical, complementary skills: constructing rigorous proofs for true statements and discovering counterexamples that disprove false ones. However, current AI efforts in mathematics focus almost exclusively on proof construction, often neglecting the equally important task of finding counterexamples. In this paper, we address this gap by fine-tuning large language models (LLMs) to reason about and generate counterexamples. We formalize this task as formal counterexample generation, which requires LLMs not only to propose candidate counterexamples but also to produce formal proofs that can be automatically verified in the Lean 4 theorem prover. To enable effective learning, we introduce a symbolic mutation strategy that constructs candidate counterexample-generation tasks by systematically extracting theorems and removing selected hypotheses. Together with curated datasets, this strategy enables a multi-reward expert iteration framework that substantially enhances both the effectiveness and efficiency of training LLMs for counterexample generation and theorem proving. Experiments on three newly collected benchmarks validate the advantages of our approach, showing that the mutation strategy and training framework yield substantial performance gains.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 55 of its 81 references that are in the map. First posted on arXiv 19 Mar 2026.
Builds on
55 of 81 references.
Closest ancestors · 17
Same direction, newest first
- 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs21 Aug
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs1 Aug
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving31 Jul
- 2025Leanabell-Prover-V2: Verifier-integrated Reasoning for Formal Theorem Proving via Reinforcement Learning11 Jul
- 2025Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models13 Jun
- 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models5 May
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition30 Apr
- 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learning15 Apr
- 2025MathConstruct: Challenging LLM Reasoning with Constructive Proofs14 Feb
- 2025One Example Shown, Many Concepts Known! Counterexample-Driven Conceptual Reasoning in Mathematical LLMs12 Feb
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Proving31 Jan
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec
5 more
- 2024Skywork-Math: Data Scaling Laws for Mathematical Reasoning in Large Language Models -- The Story Goes On11 Jul
- 2024LeanReasoner: Boosting Complex Logical Reasoning with Lean20 Mar
- 2024MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data14 Feb
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challenges31 Jan
Other references · 38
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2025s1: Simple test-time scalingcited by 1,341
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 391
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
26 more
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 291
- 2022Autoformalization with Large Language Modelscited by 263
- 2017Thinking Fast and Slow with Deep Learning and Tree Searchcited by 252
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 197
- 2025A Survey of Reinforcement Learning for Large Reasoning Modelscited by 180
- 2018Learning by Playing - Solving Sparse Reward Tasks from Scratchcited by 167
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 165
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 154
- 2022Formal Mathematics Statement Curriculum Learningcited by 142
- 2019The Lean mathematical librarycited by 134
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 133
- 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 109
- 2024A Survey on Deep Learning for Theorem Provingcited by 57
- 2021Constructions in combinatorics via neural networkscited by 48
- 2024Learning Formal Mathematics From Intrinsic Motivationcited by 45
- 2020Learning to Prove Theorems by Learning to Generate Theoremscited by 43
- 2019Dealing with Sparse Rewards in Reinforcement Learningcited by 42
- 2024A Survey on Data Synthesis and Augmentation for Large Language Modelscited by 41
- 2024PatternBoost: Constructions in Mathematics with a Little Help from AIcited by 34
- 2024Proving Olympiad Algebraic Inequalities without Human Demonstrationscited by 20
- 2022Refutation of Spectral Graph Theory Conjectures with Monte Carlo Searchcited by 4
- 2024Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutationcited by 4
- 2025Generating Millions Of Lean Theorems With Proofs By Exploring State Transition Graphscited by 3
- 2023Adaptive Monte Carlo Search for Conjecture Refutation in Graph Theorycited by 1
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 3
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generationcited by 2
- 2026DualityCert: Verifier-Gated Language-Model Repair of Broken Duality Claims in Quantum Field Theorycited by 0
- 2026INSPIRE: An Internalize-Then-Improve Approach for Example-Driven Mathematical Reasoningcited by 0
- 2026Counterexample Generation via Per-Theorem Symbolic Verifiers: When Imitation Hurts and Reinforcement Repairscited by 0
- 2026Counterexample Generation via Per-Theorem Symbolic Verifiers: When Imitation Hurts and Reinforcement Repairs1 Oct 2026
- 2026INSPIRE: An Internalize-Then-Improve Approach for Example-Driven Mathematical Reasoning27 Aug 2026
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation10 Aug 2026
- 2026DualityCert: Verifier-Gated Language-Model Repair of Broken Duality Claims in Quantum Field Theory26 Jul 2026
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoning26 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2024Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically
- 2026AdvancedMathBench: A Benchmark Suite for Advanced Mathematical Proof Generation and Verification
- 2025Spark-Prover-X1: Formal Theorem Proving Through Diverse Data Training
- 2025Scaling Generative Verifiers For Natural Language Mathematical Proof Verification And Selection
- 2026LiveMathematicianBench: A Live Benchmark for Research-Level Mathematical Reasoning with Proof Sketches
- 2025ProofCompass: Enhancing Specialized Provers with LLM Guidance
- 2025DeepTheorem: Advancing LLM Reasoning for Theorem Proving Through Natural Language and Reinforcement Learning
- 2023math-PVS: A Large Language Model Framework to Map Scientific Publications to PVS Theories