Automated Proof of Polynomial Inequalities via Reinforcement Learning

Banglong Liu, Niuniu Qi, Xia Zeng, Lydia Dehbi, Zhengfeng Yang

Abstract

Proving the non-negativity of polynomials is a fundamental challenge in mathematical optimization, robotics, and control theory. Traditional methods, such as Sums-of-Squares (SOS) and Lasserre’s hierarchy, often suffer from the "curse of dimensionality" due to their reliance on static, high-degree algebraic representations. This paper presents APPIRL (Automated Proof of Polynomial Inequalities via Reinforcement Learning), a novel framework that treats the search for a mathematical proof as a dynamic decision-making process. By employing a Deep Q-Network (DQN) to surgically select basis functions and leveraging Fast Fourier Transforms (FFT) for rapid polynomial multiplication, APPIRL generates compact, verifiable proofs more efficiently than traditional heuristic-based or random search methods.

1. Introduction

Verifying that a polynomial $f(x)$ remains non-negative over a specific domain—typically a hyperrectangle—is a computationally intensive task. In practical applications like robotics and control systems, these proofs ensure safety and stability. However, existing algorithmic approaches often rely on "static" proof systems where a human or a simple heuristic must pre-determine a truncation degree ($D$). If $D$ is too low, the solver fails; if $D$ is too high, the resulting Linear Programming (LP) or Semidefinite Programming (SDP) problems become too large to solve. APPIRL addresses this by moving toward a dynamic proof system where an AI agent learns to construct a proof incrementally.

2. Methodology

2.1 LP Transformation and the Krivine-basis

The core of the APPIRL approach is reformulating the inequality proof as a Linear Programming problem. The system seeks a set of non-negative weights for a Krivine-basis (expressions of the form $x^\alpha(1-x)^\beta$). A successful proof is achieved when the LP solver finds a valid set of weights that represent the target polynomial within the chosen basis.

2.2 Reinforcement Learning Framework

APPIRL utilizes a Deep Q-Network (DQN) to navigate the vast search space of potential basis functions:

  • State: Represented by the current progress of the proof, specifically the proximity value derived from the LP solver.
  • Action: The selection of a new basis function to be added to the current proof set.
  • Reward: The agent receives a positive reward if the selected basis function improves the proof's progress and a small penalty otherwise.

This "surgical" selection allows the agent to build a lightweight proof, avoiding the coefficient inflation and memory explosion typical of dense, fixed-degree methods.

2.3 Computational Optimization via FFT

To ensure the RL training loop remains performant, the authors implemented a novel method for multivariate polynomial multiplication. By mapping multivariate polynomials into univariate forms and applying Fast Fourier Transforms (FFT), the system significantly accelerates the algebraic expansion required to generate candidate basis functions. This cross-disciplinary optimization is critical for making the iterative RL search viable.

3. Experimental Evaluation

3.1 General Benchmarks

APPIRL was evaluated against 10 standard polynomial inequality benchmarks ($C_1$ through $C_{10}$), featuring dimensions ranging from 2 to 6 variables and degrees from 2 to 4. The results demonstrated that the RL-guided search is highly efficient, requiring an average of 6 times fewer steps to complete a proof compared to a random search strategy.

3.2 Maximum Stable Set Problem

The tool was also tested on the Maximum Stable Set problem, an NP-hard challenge in graph theory. Comparing APPIRL against specialized neural proof systems like LDPP and S2V-DQN on various graph instances ($G_1-G_3, R_1-R_5$):

  • APPIRL consistently matched or outperformed LDPP.
  • On the $G_3$ graph instance, APPIRL successfully found a proof in 37 steps, whereas LDPP required 42 steps.

4. Discussion and Insights

4.1 Dynamic vs. Static Proofs

Unlike Lasserre’s hierarchy, which uses a fixed-degree action space, APPIRL’s action space grows dynamically. This allows the system to start with simple representations and only increase complexity (degree) when necessary, effectively circumventing the limitations of static truncation.

4.2 Exactness and Verifiability

A key advantage of APPIRL is that the final proof step utilizes an LP solver (Gurobi). This ensures that the generated proofs are mathematically rigorous, using rational numbers that can be independently verified, rather than relying on the "black box" approximations often associated with pure neural network outputs.

5. Conclusion and Future Work

APPIRL demonstrates the potential of combining Reinforcement Learning with symbolic mathematics to solve complex inequality problems. While currently optimized for hyperrectangles, future work will focus on extending the framework to general semi-algebraic sets and managing the "action explosion" that occurs in extremely high-dimensional problems. By exploring more complex inference rules, the authors aim to broaden the class of mathematical theorems accessible to automated AI-guided discovery.

Summary updated

BibTeX
@inproceedings{liu2025automated,
  author = {Banglong Liu and Niuniu Qi and Xia Zeng and Lydia Dehbi and Zhengfeng Yang},
  title = {{Automated Proof of Polynomial Inequalities via Reinforcement Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00476},
}
Figure