Solving Inequality Proofs with Large Language Models

Pan Lu, Jiayi Sheng, Luna Lyu, Jikai Jin, Tony Xia +2 more
6/9/2025
cs.AIcs.CLcs.LG

No official code found. Best implementation: lupantech/ineqmath (61 stars, MIT, last commit 2025-12-15).

Abstract

Inequality proving, crucial across diverse scientific and mathematical fields, tests advanced reasoning skills such as discovering tight bounds and strategic theorem application. This makes it a distinct, demanding frontier for large language models (LLMs), offering insights beyond general mathematical problem-solving. Progress in this area is hampered by existing datasets that are often scarce, synthetic, or rigidly formal. We address this by proposing an informal yet verifiable task formulation, recasting inequality proving into two automatically checkable subtasks: bound estimation and relation prediction. Building on this, we release IneqMath, an expert-curated dataset of Olympiad-level inequalities, including a test set and training corpus enriched with step-wise solutions and theorem annotations. We also develop a novel LLM-as-judge evaluation framework, combining a final-answer judge with four step-wise judges designed to detect common reasoning flaws. A systematic evaluation of 29 leading LLMs on IneqMath reveals a surprising reality: even top models like o1 achieve less than 10% overall accuracy under step-wise scrutiny; this is a drop of up to 65.5% from their accuracy considering only final answer equivalence. This discrepancy exposes fragile deductive chains and a critical gap for current LLMs between merely finding an answer and constructing a rigorous proof. Scaling model size and increasing test-time computation yield limited gains in overall proof correctness. Instead, our findings highlight promising research directions such as theorem-guided reasoning and self-refinement. Code and data are available at https://ineqmath.github.io/.

View on arXivView PDF

Code Implementations(1)

lupantech/ineqmathCommunity100%
MIT

Solving Inequality Proofs with Large Language Models.

6110Shell, PythonMay 15, 202510 months agoMIT
inequalityllm-as-a-judgellmsmath-reasoningolympiad+1 more

Similar Papers

Cite this paper

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

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07927.svg)](https://codeofpaper.com/paper/2506.07927)

Discussion