IneqAgent: Agentic Inequality Proving in Lean with Symbolic Computation
Formal inequality proving in Lean needs both mathematical strategy and exact algebraic computation, including side conditions such as signs and domains. LLMs and symbolic certificate methods each cover part of this, but combining them is hard. Symbolic backends depend on the goal's algebraic form, and numerical certificates must be recovered exactly.
IneqAgent uses lemma-level Monte Carlo Tree Search to coordinate lemma construction, goal reformulation and symbolic backend selection. It has three backends that produce exact certificates turned into local Lean proofs. These are sum-of-squares with Putinar-type certificates and sequential recovery under constraints, Bernstein polynomials with linear programming and subdivision for box constraints, and successive difference substitution for nonnegative variables. The agent merges these local proofs with LLM-generated steps and uses Lean diagnostics to guide further attempts. The authors also build LitIneq, a benchmark of 74 Lean 4 tasks drawn from research papers and from Flyspeck proof obligations.
Using DeepSeek-V4-Flash, IneqAgent solves 175 of 186 problems (94.09%) across MO-INT-20, Ineq-Real, Evan Chen and LitIneq, the highest overall rate among evaluated methods. With each of four backbones, it beats a Direct Agent on success rate at low inference-cost thresholds. It also gives Lean-verified strengthenings of Dittert's conjecture in dimensions 4 and 5, and certifies the Holens–Djokovic (4,4) inequality, which implies Merris's conjecture in dimension 4.
| Backbone | Method | SR @5¢ | SR @10¢ | SR no cap | Cost no cap |
|---|---|---|---|---|---|
| DeepSeek-V4-Flash | Direct Agent | 66.67 | 79.03 | 90.32 | 4.6700 |
| DeepSeek-V4-Flash | IneqAgent | 88.17 | 92.47 | 94.09 | 1.3619 |
| Qwen3.8-Flash | Direct Agent | 68.28 | 84.41 | 93.55 | 4.7061 |
| Qwen3.8-Flash | IneqAgent | 83.87 | 89.25 | 92.47 | 1.5543 |
