Solving Inequality Proofs with Large Language Models

Jiayi Sheng, Luna Lyu, Jikai Jin, Tony Xia, Alex Gu, James Zou, Pan Lu · DOI

Introduction

Proving mathematical inequalities represents a significant challenge for artificial intelligence. Unlike arithmetic or basic algebra, inequality proofs require a combination of creative intuition—such as discovering tight bounds—and the strategic application of classical theorems like the Arithmetic Mean-Geometric Mean (AM-GM) inequality or the Cauchy-Schwarz inequality. While current Large Language Models (LLMs) often exhibit a strong grasp of mathematical "vibes," they frequently fall short when subjected to rigorous logical scrutiny.

This paper introduces IneqMath, a benchmark designed for Olympiad-level inequality proving. It reveals a massive "rigor gap" in state-of-the-art models: while they can often guess the correct final answer, their step-by-step reasoning is frequently flawed or incomplete.

The IneqMath Benchmark and Dataset

To address the limitations of existing benchmarks—which are often too small, purely synthetic, or locked behind the complex syntax of formal proof assistants like Lean—the authors created IneqMath. This dataset is designed to be informal enough for LLMs to process in natural language, yet structured enough for automated verification.

Distribution of mathematical theorems and concepts within the IneqMath dataset.

The dataset includes 200 high-difficulty test problems designed by IMO-level medalists to ensure they were not present in model training data. Additionally, 1,252 training problems were sourced from advanced textbooks and annotated with step-wise solutions involving 83 distinct named theorems, as shown in the distribution above.

Methodology: Automated Rigor Assessment

The researchers reformulated inequality proving into two verifiable subtasks: Bound Estimation (finding the optimal constant $C$) and Relation Prediction (determining the correct inequality symbol). To evaluate these, they developed a novel LLM-as-judge framework utilizing five specialized judges:

  • Final Answer Judge: Verifies mathematical equivalence.
  • Toy Case Judge: Detects "cheating" via simple numerical testing.
  • Logical Gap Judge: Identifies missing steps or unjustified claims.
  • Numerical Approximation Judge: Flags the use of decimal approximations to bypass symbolic reasoning.
  • Numerical Computation Judge: Uses a SymPy backend to verify arithmetic accuracy.

Results: The Rigor Gap

The evaluation of 29 leading LLMs produced sobering results. There is a staggering discrepancy between a model's ability to provide the correct answer and its ability to provide a sound proof.

Comparison of Answer Accuracy versus Overall Accuracy (rigorous proof) across proprietary and open-source LLMs.

As illustrated in the performance charts, even top-tier reasoning models like OpenAI o1 saw their accuracy plummet from 62.5% (answer only) to just 8.0% when logical rigor was enforced. Grok 3 mini experienced an even more dramatic decline, falling from 71.5% to a mere 6.0% overall accuracy. The most frequent failure modes were logical gaps (85% failure rate) and unjustified generalizations from toy cases (59.7%).

Key Insights and Future Work

The study concludes that scaling model size and test-time compute, while beneficial for finding answers, shows diminishing returns for logical rigor. Scaling alone does not eliminate the tendency of models to skip steps or rely on flawed heuristics.

Future research will focus on scaling the IneqMath dataset, developing more sophisticated symbolic judges, and exploring better integration of theorem-retrieval systems to guide LLMs through the complex search space of mathematical proofs.

Summary updated

BibTeX
@misc{sheng2025solving,
  author = {Jiayi Sheng and Luna Lyu and Jikai Jin and Tony Xia and Alex Gu and James Zou and Pan Lu},
  title = {{Solving Inequality Proofs with Large Language Models}},
  year = {2025},
  eprint = {2506.07927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07927},
}
Figure