TL;DR
Proving complex mathematical inequalities is notoriously difficult for AI, requiring a mix of creative intuition and flawless algebraic deduction. This paper introduces IneqSearch, a hybrid system that combines the creative exploration of Large Language Models (LLMs) with the rigorous deductive power of symbolic solvers. By iteratively learning and adding newly proven theorems to its database, IneqSearch achieves state-of-the-art results, including a 100% success rate on a highly challenging Olympiad inequality benchmark.
The Challenge of Automating Mathematical Proofs
Automating Olympiad-level mathematical proofs is a grand challenge for Artificial General Intelligence (AGI). Specifically, proving algebraic inequalities (e.g., showing that an expression $F \ge 0$ under certain conditions) is incredibly tricky because it requires navigating an infinite reasoning space.
Human mathematicians typically solve these by decomposing complex expressions into simpler, non-negative parts or by applying clever scaling tricks (like the Cauchy-Schwarz or AM-GM inequalities). Currently, AI struggles in this domain:
- Pure LLMs can guess creative transformations but frequently hallucinate or fail at the rigorous, multi-step algebraic manipulation required to finish the proof.
- Symbolic Solvers are perfectly rigorous but lack the "intuition" to know which creative transformations or auxiliary lemmas to apply when a brute-force approach fails.
IneqSearch tackles this gap by combining the intuitive leaps of LLMs with the ironclad logic of symbolic solvers to automate inequality proofs.
Methods: A Hybrid Search Pipeline
IneqSearch treats inequality proving as a structured search problem using a hybrid pipeline.
- The Symbolic Solver (Deductive Core): The system first tries to prove the inequality using pure math. It uses techniques like ECPD (Elementary Cyclic Polynomial Decomposition) and SOS (Sum of Squares) to break the expression down. It searches a database of known theorems, using linear programming to see if the new problem can be constructed as a combination of already-proven facts.
- The Inductive Agent (LLM Exploration): If the solver gets stuck, an LLM (like OpenAI's o3-mini) steps in. The LLM acts as a creative agent, analyzing the structure of the math and suggesting clever transformations—like applying a specific scaling lemma or shifting targets to make the equation easier to handle. The symbolic solver then takes these suggestions and rigorously verifies them.
- Iterative Learning (Self-Improvement): Every time the system successfully proves a new inequality, it extracts the intermediate conclusions and adds them to its theorem database. Just like a human math student, it builds a cumulative toolkit, using yesterday's solved problems to crack today's harder ones.
Key Insights and Ideas
- Math is cumulative, and AI should be too: The iterative learning mechanism proved highly effective. The authors observed that theorems discovered in early rounds of testing directly unlocked the solutions to previously unsolvable problems in later rounds.
- LLMs are great brainstormers, but terrible calculators: The paper notes that even state-of-the-art models (like Gemini 2.0 or o3-mini) make subtle, contradictory errors in calculus or logic when left to their own devices. By restricting the LLM to suggesting transformations and forcing the symbolic solver to execute them, IneqSearch neutralizes the LLM hallucination problem.
- Decomposition is a powerful framing: By framing the proof as "can we express this new problem as a linear combination of things we already know are greater than zero?", the authors successfully turned an infinite, open-ended reasoning task into a bounded, computable search problem.
Datasets and Key Results
The system was evaluated on two primary datasets:
- INEQ-437 (New): A benchmark compiled by the authors containing 437 Olympiad-level inequalities drawn from authoritative math competition sources.
- MO-INT-20: An existing, highly challenging dataset of 20 real Olympiad inequalities (from competitions like IMO and USAMO) that require complex, multi-step scaling.
Performance Highlights: * State-of-the-Art Accuracy: On the new INEQ-437 benchmark, IneqSearch (using o3-mini) successfully proved 342 out of 437 problems (78.3%). For context, o3-mini on its own only solved 35.2%. * Perfect Score on Hard Mode: On the notoriously difficult MO-INT-20 dataset, IneqSearch achieved a 100% success rate, outperforming previous hybrid systems like LIPS (90%) and AIPS (50%). * Massive Efficiency Gains: Because the symbolic solver does the heavy lifting, the system requires far fewer expensive LLM calls. It averages just 24 seconds per successful proof, representing a >100x speedup compared to LLM-heavy hybrid methods like LIPS (which averages over 5,000 seconds).
Limitations and Future Work
Limitations: The system's theorem search relies heavily on "equality conditions" (the specific variable values where an inequality equals exactly zero). If a highly complex problem has a rare or unique equality condition, IneqSearch cannot easily reuse its database of past theorems, which bottlenecks the search process.
Future Work: The authors suggest extending this hybrid, self-improving framework to other domains of mathematics. They also highlight a promising direction: using LLMs to recognize patterns across multiple specific problems to formulate and prove broader, generalized mathematical conjectures.
Summary updated