Manuscript Offprint
arXiv:2610.20681IneqAgent: Agentic Inequality Proving in Lean with Symbolic Computation
ABSTRACT
Formal inequality proving requires mathematical reasoning and exact computation, often connected through intermediate lemmas and goal reformulations. We introduce IneqAgent, an agentic framework combining LLM reasoning with symbolic computation for inequality proving in Lean 4. Lemma-level Monte Carlo Tree Search coordinates lemma construction, goal reformulation, and symbolic backend selection. Complementary sum-of-squares, Bernstein, and successive difference-substitution backends produce exact certificates for local Lean proof generation. The agent integrates these proofs with LLM-generated steps and uses Lean feedback to construct complete proofs checked against the original theorem statements. On four benchmarks, IneqAgent with DeepSeek-V4-Flash solves 175 of 186 problems (94.09%), achieving the highest overall success rate among the evaluated methods. Across four backbones, it achieves higher success rates at low LLM inference cost thresholds than Direct Agent using the same backbone, with lower mean inference costs over each method's successful runs. We also obtain Lean-verified strengthenings of Dittert's conjecture in dimensions four and five, and certify the Holens–Djokovic (4, 4) inequality, implying Merris's conjecture in dimension four. Code is available at https://github.com/gaolei-he/IneqAgent.
1 INTRODUCTION
Inequality proving is an important task in automated mathematical reasoning (Wei et al., 2024; Li et al., 2025a). Even concise inequalities can require carefully chosen substitutions, auxiliary bounds, and substantial algebraic computation. Proving them in Lean (de Moura & Ullrich, 2021) requires suitable mathematical strategies and explicit justification of each step, including sign and domain conditions.
Large language models (LLMs) support formal proof construction through learned proof generation and interaction with tools and verifiers (Lin et al., 2025; Ren et al., 2025; Wang et al., 2025; Varambally et al., 2026; Requena et al., 2026). Symbolic methods complement these capabilities by constructing checkable algebraic certificates (Peyrl & Parrilo, 2008; Kaltofen et al., 2012; Magron & Safey El Din, 2018). Combining them presents two challenges. First, symbolic backends depend on the goal's algebraic form and assumptions: a rational inequality, for example, may require denominator positivity before polynomial reformulation. Second, exact certificate construction can be computationally demanding. When numerical solvers are used, floating-point candidates typically satisfy certificate identities only approximately and require exact recovery and verification.
We introduce IneqAgent, an agentic framework combining LLM reasoning, symbolic computation, and Lean verification. The agent uses lemma-level MCTS to explore proof paths, choosing backend calls, goal reformulations, and intermediate lemmas according to the goal's structure and backend requirements. It integrates certificate-derived local proofs with LLM-generated steps, rewrites, and proofs of side conditions. Lean checks the complete proof against the original theorem statement.
The symbolic module provides three complementary backends. Using Putinar-type certificates (Putinar, 1993), the sum-of-squares (SOS) backend extends the numerical–symbolic certification procedure of Kaltofen et al. (2012) from unconstrained problems to problems with equality and inequality constraints through sequential recovery. The Bernstein backend combines numerical and exact linear programming with subdivision for box-constrained goals. Successive difference substitution uses exact substitutions and coefficient nonnegativity checks for polynomial goals over nonnegative variables. The module supports applicable original goals and intermediate lemmas.
We apply IneqAgent to conjectures on matrix permanents, obtaining Lean-verified proofs of strengthened inequalities for Dittert's conjecture in dimensions four and five that establish quantitative stability and unique maximizers. We also verify an exact SOS certificate for the Holens–Djokovic (4, 4) inequality in Lean and derive Merris's conjecture in dimension four. On four inequality benchmarks, IneqAgent with DeepSeek-V4-Flash solves 175 of 186 problems (94.09%), achieving the highest overall success rate among the evaluated methods. It also records lower mean solving times than the evaluated LLM-based provers. Across four backbones, it achieves lower mean LLM inference costs and higher success rates at low cost thresholds than Direct Agent using the same backbone. Both means are computed over each method's own successful runs. Ablations further support combining MCTS with symbolic computation.
Our main contributions are as follows:
• We introduce IneqAgent, which uses lemma-level MCTS to coordinate LLM reasoning, goal reformulation, and symbolic computation, producing complete proofs checked by Lean against the original theorem statements.
• We develop a symbolic proving module with complementary SOS, Bernstein, and difference-substitution backends. We extend the recovery procedure of Kaltofen et al. (2012) to constrained SOS certificates through sequential recovery, and translate certificates from all three backends into local Lean proofs.
• We demonstrate applications to matrix-permanent conjectures and introduce LitIneq, a benchmark of 74 formalized inequality tasks from research papers and formal-verification projects. We evaluate IneqAgent through benchmark comparisons, inference-cost analysis, and ablation studies.
LLMs for Formal Theorem Proving. Neural provers generate tactics from formal proof states and search over their continuations (Polu & Sutskever, 2020; Lample et al., 2022), with retrieval supplying relevant library lemmas (Yang et al., 2023). More recent models incorporate proof data synthesis, self-correction, and subgoal decomposition (Lin et al., 2025; Ren et al., 2025). Agentic systems combine these capabilities with tool use and verifier feedback. Hilbert recursively combines informal reasoning with formal subgoal proving (Varambally et al., 2026), while AxProverBase uses a modular loop of proof proposals, review, memory, and tool use (Requena et al., 2026).
LLMs with Symbolic Reasoning for Inequality Proving. Existing systems assign different roles to learned reasoning and symbolic computation. LIPS combines symbolic generation and pruning of scaling steps with LLM-generated rewrites and goal ranking, checking the resulting proofs in Lean (Li et al., 2025a). IneqSearch combines symbolic decomposition with an LLM agent that proposes transformations, and expands its theorem database with newly proved inequalities (Li et al.,
2025b). For unconstrained polynomial inequalities, NSPI uses an LLM to conjecture approximate SOS decompositions, followed by numerical refinement, rational recovery, and Lean proof generation (Zuo et al., 2026). IneqAgent uses lemma-level MCTS to coordinate intermediate lemma construction, goal reformulation, and symbolic backend selection according to the current assumptions and algebraic structure. Its complementary backends produce exact certificates that are translated into local Lean proofs and combined with agent-generated steps to prove the original theorem.
3 METHODOLOGY
Problem formulation. We study the problem of proving inequalities in real variables. The expressions involved are constructed from real variables and constants using arithmetic operations and elementary functions, such as square roots, exponentials, logarithms, and trigonometric functions. For , a typical inequality-proving problem is to establish
where the domain D is specified by the theorem to be proved, as follows:
Here, , , and are real-valued expressions of the form described above. When , we have , corresponding to an unconstrained problem. Strict inequalities are also allowed in both the constraints and the target. The input is a theorem statement formalized in Lean 4, and the task is to construct a complete proof accepted by the Lean kernel. For notational simplicity, we denote the Lean theorem-proving representation of problem (1) as .
To address problem (1), we propose IneqAgent, an agentic framework for automated inequality proving in Lean 4. The agent combines mathematical reasoning with symbolic computation to reformulate goals, construct intermediate lemmas, and assemble formal proofs. IneqAgent uses computational feedback from the symbolic computation module and diagnostics from the Lean proof module to guide and advance its subsequent proving steps. The overall design is illustrated in Fig. 1. We describe the framework in Section 3.1 and the symbolic computation module in Section 3.2.

Figure 1: Overview of IneqAgent. The agent normalizes the formal statement and assesses each goal for symbolic computation. It develops intermediate lemmas when further reasoning is needed, coordinates tool calls, and integrates local proofs into the current proof context. Symbolic feedback and Lean diagnostics guide subsequent attempts until the original theorem is proved.
3.1 AGENTIC FRAMEWORK FOR INEQUALITY PROVING
Assume that the inequality constraint problem to be proved is represented in Lean as . IneqAgent first normalizes the input problem into the standard form in (1). To facilitate more effective proof search, IneqAgent incorporates a dedicated symbolic computation module, sym.com.Module (see Section 3.2), while its core proof reasoning module is an LLM prover based on the lemma-level MCTS with symbolic awareness framework. Based on the current proof state, IneqAgent determines whether to invoke sym.com.Module. When applicable, the module exploits algebraic computation to accelerate proof search and reduce the number of direct LLM reasoning calls, thereby improving computational efficiency. In addition, after each lemma introduction, reasoning step, or problem decomposition during the proof process, IneqAgent invokes Lean to formally verify the resulting proof state and ensure the correctness of the reasoning.
Lemma-Level MCTS with Symbol Awareness. The symbol-aware LLM prover adopts a lemma-level MCTS based proof search strategy, where each proof advancement can be viewed as an MCTS generation step consisting of selection, action, and evaluation. Specifically, a proof state consists of a set of premises , a target proposition , and a context recording the current node state and its score, as detailed below. Starting from the initial proof state as the root node, IneqAgent constructs an MCTS tree. It first selects the root node for expansion. The action begins with a symbolic-awareness check (described below). If the current form is not supported by the symbolic module, IneqAgent invokes the LLM to generate an appropriate lemma from the current proof state, and then invokes Lean to verify the lemma and derive a new proof state as a child node. Lean classifies the resulting state as open, fail, or solved; if the node is verified as solved, the proof terminates. A state is solved only when all proof obligations of the original theorem are discharged and Lean accepts the complete proof without sorry or admit; proving an intermediate lemma or resolving one subgoal leaves the state open when other obligations remain. IneqAgent then evaluates the new child node using Lean checking results and LLM-based assessment of proof progress, and assigns a score to the node as described below. The scores of all nodes along the selected path are subsequently updated.
IneqAgent then performs another selection from the root node v and continues with lemma introduction and node evaluation. To improve exploration of potentially promising proof paths, the root node is expanded whenever its number of accepted child nodes is below the current threshold k, according to a root-priority rule (see below). The current expansion threshold is given by , where the design of is described in Appendix A. If the proof has not yet been completed, a node u is selected for the next expansion by descending through the highest-scoring open child at each level, as described below. IneqAgent performs symbolic awareness or lemma introduction on u and evaluates the resulting node. This MCTS generation process is repeated until a node successfully passes Lean proof checking and is marked as solved. When a solved node is found, IneqAgent traverses the path from the root node to that node and extracts all intermediate proof steps to construct a complete Lean proof of the original problem.
Selection: Root-Priority Rule. During lemma-level MCTS based proof search, IneqAgent initializes a new root node and repeatedly expands it until it has child nodes. Each subsequent exploration begins at the root and selects the child with the highest score. If the selected node has fewer than children, it is expanded to generate an additional child node; otherwise, the selection operation identifies its highest-scoring child for the next exploration step.
Action: Symbol-Aware Actions. When an open node is selected for the first time, IneqAgent first performs symbolic awareness by checking whether the current theorem has an algebraic form supported by sym.com.Module. If the form is supported, IneqAgent directly invokes sym.com.Module to attempt an algebraic proof. If the form is unsupported or the symbolic computation fails, IneqAgent invokes the LLM to generate an appropriate lemma from the current proof state and adds it to the premise set. Lean is then invoked to verify the lemma and use it for subsequent reasoning. The resulting state can be fail or solved, or it can produce an open subgoal, which is recorded as an open state. This process completes the expansion of a new node.
Evaluation: Lean Feedback and Proof-Evolution Scoring. The score of a newly expanded node u follows the standard MCTS formulation (see Appendix A). A key component is the mean reward , where denotes the number of visits to node u, and denotes its cumulative reward, updated as . The reward is determined by the Lean-verified proof state of u:
Here, is a heuristic progress score based on Lean checking results and proof-text features, including changes in unfinished markers and newly added structured proof steps, as detailed in Appendix A. In contrast, is obtained by comparing the parent and candidate proofs, using the candidate's Lean checking result to assess progress toward completing the original theorem. It rewards resolved proof obligations and useful intermediate results. IneqAgent then backpropagates the updated reward and updates the scores of all nodes along the selected path.
3.2 LEAN-VERIFIED SYMBOLIC PROVING
The symbolic module addresses polynomial nonnegativity goals within the general problem formulation above. These goals are prepared by the agent and may coincide with the input theorem or arise from reformulations and intermediate lemmas during proof search. Specifically, the module seeks to establish
where
and are polynomials. The unconstrained case corresponds to . On success, the module returns an exact certificate for subsequent Lean proof generation and verification. If no certificate is obtained, it returns feedback to the agent for further proof search.
SOS-based proving under polynomial constraints. Motivated by Putinar's Positivstellensatz (Putinar, 1993), the SOS backend searches for a certificate of the form
where are sums of squares and are polynomial multipliers unrestricted in sign. Such an identity is sufficient to establish the nonnegativity of on . Imposing degree bounds on the SOS polynomials and equality multipliers yields a finite-dimensional SOS relaxation. Each SOS polynomial is represented as , where is a monomial vector and is a Gram matrix. Matching coefficients in the certificate identity gives linear equality constraints on the Gram-matrix entries and the coefficients of the equality multipliers. Together with the positive semidefiniteness constraints, these define an SDP feasibility problem, which we solve numerically using MOSEK.
For exact certification, we extend the hybrid symbolic-numeric recovery procedure of Kaltofen et al. (2012), developed for unconstrained problems, to the constrained SOS identity above. Recovery proceeds sequentially: we first recover rational positive semidefinite Gram matrices for the inequality SOS multipliers and keep these multipliers fixed. The remaining task is to recover and the equality multipliers from . Gauss–Newton iterations refine the main SOS factorization and the equality multipliers to reduce the residual in this remaining identity. Rational recovery and exact coefficient correction then seek a rational main Gram matrix and rational equality multipliers satisfying the identity exactly. The complete polynomial identity and the positive semidefiniteness of all recovered Gram matrices are checked using exact arithmetic. Only certificates passing these checks are returned for subsequent Lean proof generation. Details are provided in Appendix B.1.
Bernstein-based proving under box constraints. For box-constrained goals, we use Bernstein representations and recursive subdivision, following Ray & Nataraj (2009). For a box
the affine substitution maps the problem to the unit box . We denote the transformed target polynomial by . Choose a multidegree bound such that for each . The Bernstein basis polynomials are
We seek a representation with , where the sum ranges over the indices in Eq. 4. Let have the monomial coefficient vectors of these Bernstein polynomials as its columns, and let be the coefficient vector of in the same monomial basis. Matching coefficients yields the LP feasibility problem
Any feasible solution certifies on , since every Bernstein basis polynomial is nonnegative on this domain. We first solve this feasibility problem in floating-point arithmetic to obtain a numerical candidate.
If the numerical solve does not yield a suitable candidate certificate, we select a variable and split its interval into two subintervals, leaving the intervals of all other variables unchanged, and recursively apply the procedure to both resulting subboxes. When a candidate is obtained, we treat its near-zero entries as tentative zeros. Fixing the corresponding coefficients to zero yields a reduced LP, which we solve in exact arithmetic. If exact re-solving succeeds, we check the complete coefficient-matching identity and the nonnegativity of all recovered coefficients against the original problem on the current box. A local certificate is accepted only after these checks pass. The original box is certified once every leaf box has an accepted certificate. The local certificates and the subdivision tree are recorded for subsequent Lean proof generation, including verification that the subboxes cover the original domain.
Successive difference substitution. For polynomial nonnegativity on the nonnegative orthant , DiffSub applies the successive difference substitution method described by Xia & Yang (2016, Chapter 10). For each permutation of , consider the ordering and introduce nonnegative difference variables through
Here, for , and . If the polynomial obtained by substituting into has only nonnegative coefficients, its nonnegativity follows from , certifying the current ordering branch. Considering all variable orderings covers the entire domain .
For every unresolved branch, the procedure repeats the ordering and substitution on the new nonnegative variables; certified branches require no further expansion. A complete certificate is obtained when every leaf branch is certified. All substitutions and coefficient checks use exact arithmetic, so no numerical recovery is required. The certificate records the ordering cases, substitution identities, and polynomial expansions at the leaves. If the search budget is exhausted while some branches remain unresolved, the backend returns an unsolved result.
The Translator converts each exact certificate into a local Lean proof. The agent integrates this proof into the surrounding context and justifies any reformulation connecting the polynomial statement to the original goal. A proof is accepted only after Lean verifies the original theorem statement.
4 EXPERIMENTS
We evaluate IneqAgent on four inequality benchmarks, compare its proving performance with existing systems, and examine LLM inference cost across four backbones. We further present three case studies on conjectures concerning matrix permanents. These case studies are evaluated separately from the benchmark suite.
4.1 EXPERIMENTAL SETUP
Benchmarks. The benchmark evaluation comprises 186 problems from three existing collections and our newly constructed LitIneq benchmark. MO-INT-20 is the 20-problem benchmark introduced with AIPS, comprising algebraic inequalities from the IMO, IMO shortlists, and national mathematical olympiads (Wei et al., 2024). Ineq-Real is the 50-problem subset of Ineq-Comp drawn from mathematics competitions, training materials, and Chinese Gaokao exams, with the problems manually formalized in Lean 4 (Zhao et al., 2025). The Evan Chen benchmark consists of 42 problems selected from A Brief Introduction to Olympiad Inequalities, Evan Chen's 2014 notes (Chen, 2014).
To extend the evaluation beyond competition-oriented inequalities, we construct LitIneq, a benchmark comprising 74 inequality-proving tasks based on examples from research papers on inequality proving and polynomial optimization, as well as selected inequality proof obligations from the Flyspeck formalization of the Kepler conjecture. For polynomial optimization examples, we formulate tasks that establish bounds on the objective functions under the original constraints. We formalize each task as a self-contained Lean 4 theorem statement. Appendix C documents the source, original theorem or example identifier, and formalization details for each problem. Results are reported separately for each benchmark. The conjecture case studies in Section 4.5 are evaluated separately and are excluded from the 186-problem aggregate.
Baselines and backbones. We compare with symbolic systems, formal provers, and proving agents. The symbolic baselines are Z3 (de Moura & Bjørner, 2008), Maple (Heck, 1993), and Isabelle/HOL's sos method (Chaieb & Meyer, 2025). The formal provers and agents are Goedel-Prover-V2-8B (Lin et al., 2025), DeepSeek-Prover-V2-7B (Ren et al., 2025), AxProverBase (Requena et al., 2026), LIPS (Li et al., 2025a), and Hilbert (Varambally et al., 2026).
IneqAgent uses DeepSeek-V4-Flash for the main benchmark comparison in Table 1. For the inference-cost comparison in Table 2, we evaluate IneqAgent and Direct Agent with four backbones: DeepSeek-V4-Flash, Qwen3.8-Flash, Kimi-K3, and GPT-5.5. Each pairwise comparison uses the same backbone. Direct Agent denotes Codex running with its default agent configuration and access to Lean.
Evaluation protocol. All benchmark methods are evaluated with a two-hour time limit per problem. Success rates are computed over all problems in each benchmark, counting unsolved and timed-out problems as failures. Mean solving times are computed over the problems successfully solved by each method. For Z3 and Maple, success is assessed from solver outputs, and these runs do not produce proofs checked by a proof assistant. For IneqAgent, a problem is counted as solved only after Lean accepts the generated proof. Detailed evaluation settings and method-specific success criteria are provided in Appendix D.
4.2 MAIN RESULTS ON INEQUALITY BENCHMARKS
Table 1 reports success rates and mean solving times. IneqAgent achieves the highest success rate on each of the four benchmarks, solving 19/20 problems in MO-INT-20, 46/50 in Ineq-Real, 42/42 in Evan Chen, and 68/74 in LitIneq. Overall, it solves 175/186 problems (94.09%), compared with 141/186 (75.81%) for Hilbert, the strongest baseline in overall success rate, yielding an improvement of 18.28 percentage points.
On LitIneq, IneqAgent solves 68 problems, compared with 55 for AxProverBase, the strongest baseline on this benchmark. This corresponds to a success-rate improvement of 17.57 percentage points, extending the observed advantage beyond competition-oriented inequalities to tasks drawn from research papers and Flyspeck.
4.3 PROOF SUCCESS UNDER COST THRESHOLDS
We examine whether IneqAgent enables more problems to be proved at low LLM inference cost. Table 2 compares IneqAgent with Direct Agent on all 186 problems using four backbones. Each pairwise comparison uses the same backbone and pricing.
Table 1: Success rate (SR, %) and mean solving time over problems successfully solved by each method (Time, seconds). Overall aggregates all 186 problems; its mean time is weighted by the number of successful problems in each benchmark. Bold indicates the highest success rate in each benchmark and overall. A dash indicates that no problem was solved.
| Method | MO-INT-20 | Ineq-Real | Evan Chen | LitIneq | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SR | Time | SR | Time | SR | Time | SR | Time | SR | Time | |
| Symbolic computation | ||||||||||
| Z3 | 25.00 | 234.20 | 30.00 | 20.04 | 42.86 | 0.15 | 55.41 | 1.80 | 42.47 | 19.59 |
| Maple | 0.00 | - | 10.00 | 1.69 | 26.19 | 1.28 | 41.89 | 152.60 | 25.27 | 101.132 |
| Isabelle sos | 0.00 | - | 4.00 | 21.69 | 9.52 | 21.69 | 21.62 | 18.90 | 11.83 | 19.66 |
| LLM provers | ||||||||||
| Goedel-Prover-V2-8B | 10.00 | 1323.86 | 28.00 | 779.01 | 30.95 | 842.92 | 59.46 | 856.65 | 39.25 | 852.11 |
| DeepSeek-Prover-V2-7B | 10.00 | 503.94 | 18.00 | 492.84 | 28.57 | 422.14 | 44.59 | 525.31 | 30.11 | 497.22 |
| LLM-based proving frameworks | ||||||||||
| AxProverBase | 75.00 | 1907.93 | 70.00 | 1381.69 | 73.81 | 1314.94 | 74.32 | 565.49 | 73.12 | 1094.43 |
| Hilbert | 75.00 | 1945.00 | 86.00 | 2461.94 | 76.19 | 1848.77 | 68.92 | 875.19 | 75.81 | 1693.86 |
| LIPS | 35.00 | 2479.74 | 36.00 | 2496.18 | 54.76 | 2165.82 | 41.89 | 109.207 | 42.47 | 1461.88 |
| IneqAgent (ours) | 95.00 | 333.87 | 92.00 | 180.66 | 100.00 | 147.92 | 91.89 | 96.56 | 94.09 | 156.76 |
Cost accounting and thresholds. All costs are reported in US cents and measure LLM inference expenditure only, excluding the computational costs of symbolic solving and Lean verification. The cost of a run accumulates across its LLM calls, including unsuccessful attempts within that run. For each threshold , we count the problems successfully solved with cumulative LLM inference cost at most b. Success rate uses all 186 problems as its denominator, while mean cost is computed separately over each method's qualifying successful runs. Unsolved and timed-out problems contribute to the success-rate denominator but are excluded from the mean cost. The No cap setting includes all successful runs. These thresholds are applied post hoc rather than used as stopping budgets and every run remains subject to the two-hour time limit.
Table 2: Proof success and LLM inference cost on 186 problems. Both methods use the backbone specified in the first column. All thresholds and mean costs are in US cents. SR (%) is the percentage of all 186 problems solved with cumulative LLM inference cost at or below the specified threshold; Cost is the mean cost over those successful runs. Thresholds are applied post hoc. No cap includes all successful runs and the two-hour per-problem limit still applies. Within each backbone and threshold, the highest SR is bold; the lower Cost is bold when both means are defined.
| Backbone | Method | LLM inference cost threshold (US cents) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 10 | 50 | 100 | No cap | |||||||
| SR | Cost | SR | Cost | SR | Cost | SR | Cost | SR | Cost | ||
| DeepSeek-V4-Flash | Direct Agent | 66.67 | 1.9499 | 79.03 | 2.7609 | 90.32 | 4.6700 | 90.32 | 4.6700 | 90.32 | 4.6700 |
| IneqAgent (ours) | 88.17 | 0.6773 | 92.47 | 0.9485 | 94.09 | 1.3619 | 94.09 | 1.3619 | 94.09 | 1.3619 | |
| Qwen3.8-Flash | Direct Agent | 68.28 | 1.7882 | 84.41 | 2.7370 | 92.47 | 4.0352 | 93.55 | 4.7061 | 93.55 | 4.7061 |
| IneqAgent (ours) | 83.87 | 0.8219 | 89.25 | 1.1747 | 92.47 | 1.5543 | 92.47 | 1.5543 | 92.47 | 1.5543 | |
| Kimi-K3 | Direct Agent | 6.99 | 3.6009 | 25.27 | 6.3289 | 62.90 | 16.9118 | 76.34 | 25.8828 | 93.01 | 58.1366 |
| IneqAgent (ours) | 50.54 | 0.1310 | 54.84 | 0.6915 | 76.34 | 8.0921 | 82.26 | 12.1085 | 86.56 | 19.3747 | |
| GPT-5.5 | Direct Agent | 0.00 | - | 2.15 | 8.7023 | 57.53 | 31.1488 | 77.42 | 41.3875 | 90.86 | 72.3548 |
| IneqAgent (ours) | 48.92 | 0.1153 | 50.54 | 0.3824 | 67.74 | 7.0074 | 75.27 | 13.2915 | 90.86 | 63.7723 | |
IneqAgent achieves higher success rates at the 5- and 10-cent thresholds across all four backbones. At 5 cents, the improvements range from 15.59 to 48.92 percentage points. For instance, DeepSeek-V4-Flash improves from 66.67% to 88.17%, while GPT-5.5 improves from 0.00% to 48.92%. At 50 cents, IneqAgent has higher success rates for three backbones and ties Direct Agent with Qwen3.8-Flash. These results show that more problems can be solved at low LLM inference cost with IneqAgent.
The relative success rates vary at higher thresholds. At 100 cents, Direct Agent achieves higher success rates with Qwen3.8-Flash and GPT-5.5. Without a cost cap, IneqAgent achieves a higher success rate with DeepSeek-V4-Flash, matches Direct Agent with GPT-5.5, and has lower success rates with Qwen3.8-Flash and Kimi-K3. Mean inference costs over each method's successful runs are lower for IneqAgent across all four backbones. For Qwen3.8-Flash, the mean decreases from 4.7061 to 1.5543 cents, and for GPT-5.5, it decreases from 72.3548 to 63.7723 cents. These means describe each method's own successful runs and do not constitute comparisons on an identical set of problems.
4.4 ABLATION STUDY
We ablate lemma-level MCTS and symbolic computation using DeepSeek-V4-Flash on the same 186 problems, with a two-hour time limit per problem. The Base agent generates and revises proofs with Lean feedback, using neither component. Base + MCTS adds lemma-level tree search, while Base + Symbolic enables symbolic proving of the original goal and intermediate lemmas. IneqAgent (full) combines both components.
Table 3: Ablation results with DeepSeek-V4-Flash on all 186 benchmark problems under a two-hour time limit per problem. Mean LLM inference cost and wall-clock time are computed over each variant's successful problems. Bold indicates the highest success rate or the lowest reported mean.
| Variant | SR (%) ↑ | Avg. LLM cost (US cents) ↓ | Avg. time (s) ↓ |
|---|---|---|---|
| Base agent | 90.32 | 4.6700 | 329.88 |
| Base + MCTS | 91.40 | 2.2251 | 191.64 |
| Base + Symbolic | 91.40 | 2.8514 | 200.56 |
| IneqAgent (full) | 94.09 | 1.3619 | 156.76 |
Table 3 shows that both components improve performance when added individually. MCTS increases the number of solved problems from 168 to 170, while symbolic computation also increases it to 170. Combining both components solves 175 problems, five more than either component alone. These results support the benefits of combining tree search with symbolic computation in IneqAgent.
The full configuration also achieves the lowest mean LLM inference cost and mean wall-clock time among the four variants. Relative to the base agent, these means are lower by and , respectively. Both measures are averaged over each variant's own successful problems.
4.5 APPLICATIONS TO CONJECTURES ON MATRIX PERMANENTS
We evaluate IneqAgent on three polynomial proof tasks arising from conjectures on matrix permanents: strengthened forms of Dittert's conjecture (Minc, 1983) in dimensions four and five, and the Holens–Djokovic (4, 4) inequality (Holens, 1964; Djoković, 1967), which implies the four-dimensional case of Merris's conjecture (Merris, 1973). These case studies examine the framework's ability to combine agentic reasoning with exact symbolic certification on research-level mathematical problems. They are evaluated separately from the 186-problem benchmark suite and are not subject to its two-hour time limit. Task sizes and costs are reported in Table 9 in Appendix E.
Dittert's conjecture. For a nonnegative matrix with , let and denote its row and column sums. Writing , define . Dittert's conjecture asserts that , with equality if and only if , where every entry of equals . For , IneqAgent produces Lean-verified proofs of the strengthened polynomial inequalities
under the same constraints, where , , and denotes the Frobenius norm. These bounds establish quantitative stability and the unique maximizer in both dimensions. For certificate search, we use the scaled target in dimension four and a homogeneous reformulation in dimension five, defined in Appendix E.
Holens–Djokovic (4, 4) and Merris’s conjecture. Let denote the set of nonnegative matrices whose row and column sums equal one. The Holens–Djokovic (4, 4) inequality is the polynomial nonnegativity statement
Expressing the remaining entries in terms of the upper-left block eliminates the row- and column-sum equalities, yielding a degree-four polynomial problem in nine variables while retaining the nonnegativity constraints on all entries. IneqAgent constructs an exact rational SOS certificate for the reduced problem. The argument for the contrary claim in Udayan & Somasundaram (2021, Theorem 6) contains an endpoint error(see Remark 1).
This result implies Merris’s conjecture in dimension four. Let , where is obtained by deleting row and column . For ,
The SOS certificate and the case in which is minimal are verified in Lean; column relabeling gives the conclusion for any minimizing column.
5 CONCLUSION
We introduced IneqAgent, an agentic framework for formal inequality proving in Lean 4. Through lemma-level MCTS, it coordinates LLM reasoning, goal reformulation, and symbolic computation, integrating certificate-derived local proofs into complete proofs checked against the original theorem statements. Evaluation on four benchmarks and three polynomial proof tasks arising from matrix-permanent conjectures demonstrates its proving capability. Across four backbones, IneqAgent achieves higher success rates at low LLM inference cost thresholds than Direct Agent using the same backbone, with lower mean inference costs over each method's successful runs.
AI USE STATEMENT
We used generative AI tools to polish the writing, assist in finding relevant literature and reference materials, and carry out experiments according to author-specified instructions, including which tests to run and how to run them. We reviewed the AI-assisted text, consulted the cited sources, and checked the experimental outputs. We take full responsibility for the content and results of this work.
ACKNOWLEDGEMENTS
This work was supported in part by the National Key Research and Development Program of China under Grant 2023YFA1009402, the Strategic Priority Research Program of Chinese Academy of Sciences under Grant XDA0480501.
REFERENCES
Amine Chaieb and Philipp Meyer. Sum of Squares: A decision procedure for universal multivariate real arithmetic using semidefinite programming. Isabelle/HOL Library, theory Sum_of_Squares, 2025. URL https://isabelle.in.tum.de/website-Isabelle2025-2/dist/library/HOL/HOL-Library/Sum_of_Squares.html.
Evan Chen. A brief introduction to olympiad inequalities. https://web.evanchen.cc/handouts/Ineq/en.pdf, 2014.
Gi-Sang Cheon and Ian M. Wanless. An update on Minc's survey of open problems involving permanents. Linear Algebra and its Applications, 403:314–342, 2005. doi: 10.1016/j.laa.2005.02.030.
Gi-Sang Cheon and Ian M. Wanless. Some results towards the Dittert conjecture on permanents. Linear Algebra and its Applications, 436(4):791–801, 2012. doi: 10.1016/j.laa.2010.08.041.
Leonardo de Moura and Nikolaj Bjørner. Z3: An efficient SMT solver. In Tools and Algorithms for the Construction and Analysis of Systems, pp. 337–340. Springer, 2008.
Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction—CADE 28, pp. 625–635. Springer, 2021.
D. Ž. Djoković. On a conjecture by van der Waerden. Matematički Vesnik, 4(19)(4):272–276, 1967.
Ioannis Z. Emiris. A general solver based on sparse resultants: Numerical issues and kinematic applications. Research Report 3110, INRIA, 1997.
Ioannis Zacharias Emiris. Sparse Elimination and Applications in kinematics. PhD thesis, University of California, Berkeley, 1994.
Jean-Charles Faugère. A new efficient algorithm for computing Gröbner bases (F4). Journal of Pure and Applied Algebra, 139(1–3):61–88, 1999. doi: 10.1016/S0022-4049(99)00005-5. URL https://doi.org/10.1016/S0022-4049(99)00005-5.
André Heck. Introduction to MAPLE. Springer, 1993. doi: 10.1007/978-1-4684-0519-4.
F. Holens. Two aspects of doubly stochastic matrices: Permutation matrices and the minimum of the permanent function. Master's thesis, University of Manitoba, 1964.
Suk Geun Hwang. A note on a conjecture on permanents. Linear Algebra and its Applications, 76: 31–44, 1986. doi: 10.1016/0024-3795(86)90212-0.
Suk Geun Hwang. On a conjecture of E. Dittert. Linear Algebra and its Applications, 95:161–169, 1987. doi: 10.1016/0024-3795(87)90032-2.
Arieh Iserles. Personal communication at the occasion of the AMS–SIAM summer seminar in applied mathematics. Park City, Utah, 1995.
Erich L. Kaltofen, Bin Li, Zhengfeng Yang, and Lihong Zhi. Exact certification in global polynomial optimization via sums-of-squares of rational functions with rational coefficients. Journal of Symbolic Computation, 47(1):1–15, 2012.
Guillaume Lample, Timothée Lacroix, Marie-Anne Lachaux, Aurélien Rodriguez, Amaury Hayat, Thibaut Lavril, Gabriel Ebner, and Xavier Martinet. Hypertree proof search for neural theorem proving. Advances in Neural Information Processing Systems, 35:26337–26349, 2022.
Zenan Li, Zhaoyu Li, Wen Tang, Xian Zhang, Yuan Yao, Xujie Si, Fan Yang, Kaiyu Yang, and Xiaoxing Ma. Proving olympiad inequalities by synergizing LLMs and symbolic reasoning. In International Conference on Learning Representations, pp. 2304–2329, 2025a.
Zhaoqun Li, Beishui Liao, and Qiwei Ye. IneqSearch: Hybrid reasoning for olympiad inequality proofs. In Advances in Neural Information Processing Systems, volume 38, 2025b. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/6c92839f0f9cddc96c694712a7143b09-Abstract-Conference.html.
Yong Lin, Shange Tang, Bohan Lyu, Ziran Yang, Jui-Hui Chung, Haoyu Zhao, Lai Jiang, Yihan Geng, Jiawei Ge, Jingruo Sun, et al. Goedel-prover-v2: Scaling formal theorem proving with scaffolded data synthesis and self-correction. arXiv preprint arXiv:2508.03613, 2025.
Banglong Liu, Niuniu Qi, Xia Zeng, Lydia Dehbi, and Zhengfeng Yang. Automated proof of polynomial inequalities via reinforcement learning. arXiv preprint arXiv:2503.06592, 2025. URL https://arxiv.org/abs/2503.06592.
Victor Magron and Mohab Safey El Din. RealCertify: A Maple package for certifying non-negativity. ACM Communications in Computer Algebra, 52(2):34–37, 2018.
Marvin Marcus and Russell Merris. A relation between the permanental and determinantal adjoints. Journal of the Australian Mathematical Society, 15(3):270–271, 1973. doi: 10.1017/S1446788700013173.
Russell Merris. The permanent of a doubly stochastic matrix. The American Mathematical Monthly, 80(7):791–793, 1973. doi: 10.1080/00029890.1973.11993372.
Henryk Minc. Theory of permanents 1978–1981. Linear and Multilinear Algebra, 12:227–263, 1983.
César Muñoz and Anthony Narkawicz. Formalization of Bernstein polynomials and applications to global optimization. Journal of Automated Reasoning, 51(2):151–196, 2013. doi: 10.1007/s10817-012-9256-3. URL https://doi.org/10.1007/s10817-012-9256-3.
V. W. Noonburg. A neural network modeled by an adaptive Lotka–Volterra system. SIAM Journal on Applied Mathematics, 49(6):1779–1792, 1989. doi: 10.1137/0149109. URL https://doi.org/10.1137/0149109.
Zhekai Pang. Proof of Dittert's conjecture for dimensions . arXiv preprint arXiv:2606.01531, 2026. URL https://arxiv.org/abs/2606.01531.
Helfried Peyrl and Pablo A. Parrilo. Computing sum of squares decompositions with rational coefficients. Theoretical Computer Science, 409(2):269–281, 2008.
Stanislas Polu and Ilya Sutskever. Generative language modeling for automated theorem proving. arXiv preprint arXiv:2009.03393, 2020.
M. Putinar. Positive polynomials on compact semi-algebraic sets. Indiana University Mathematics Journal, 42(3):969–984, 1993.
Shashwati Ray and P. S. V. Nataraj. An efficient algorithm for range computation of polynomials using the Bernstein form. Journal of Global Optimization, 45(3):403–426, 2009. doi: 10.1007/s10898-008-9382-y. URL https://doi.org/10.1007/s10898-008-9382-y.
Z. Z. Ren, Zhihong Shao, Junxiao Song, Huajian Xin, Haocheng Wang, Wanjia Zhao, Liyue Zhang, Zhe Fu, Qihao Zhu, Dejian Yang, et al. Deepseek-prover-v2: Advancing formal mathematical reasoning via reinforcement learning for subgoal decomposition. arXiv preprint arXiv:2504.21801, 2025.
Borja Requena, Austin Letson, Krystian Nowakowski, Izan Beltran-Ferreiro, and Leopoldo Sarra. A minimal agent for automated theorem proving. arXiv preprint arXiv:2602.24273, 2026.
Richard Sinkhorn. A problem related to the van der Waerden permanent theorem. Linear and Multilinear Algebra, 16(1–4):167–173, 1984. doi: 10.1080/03081088408817620.
Divya K. Udayan and Kanagasabapathi Somasundaram. The inequalities of Merris and Foregger for permanents. Symmetry, 13(10):1782, 2021. doi: 10.3390/sym13101782.
Divya K. Udayan and Kanagasabapathi Somasundaram. Lih Wang's and Dittert's conjectures on permanents. Special Matrices, 12(1):20240006, 2024. doi: 10.1515/spma-2024-0006.
Sumanth Varambally, Thomas Voice, Yanchao Sun, Zhifeng Chen, Rose Yu, and Ke Ye. Hilbert: Recursively building formal proofs with informal reasoning. In The Fourteenth International Conference on Learning Representations, 2026.
Jan Verschelde. Polynomial homotopy continuation: A portable Ada software package, 1996. URL ftp://ftp.cs.kuleuven.ac.be/pub/NumAnal-ApplMath/PHC. Computer program documentation.
Jan Verschelde. The PHC pack, the database of polynomial systems. Technical report, University of Illinois, Mathematics Department, Chicago, USA, 2001.
Haiming Wang, Mert Unsal, Xiaohan Lin, Mantas Baksys, Junqi Liu, Marco Dos Santos, Flood Sung, Marina Vinyes, Zhenzhe Ying, Zekai Zhu, Jianqiao Lu, Hugues de Saxcé, Bolton Bailey, Chendong Song, Chenjun Xiao, Dehao Zhang, Ebony Zhang, Frederick Pu, Han Zhu, Jiawei Liu, Jonas Bayer, Julien Michel, Longhui Yu, Léo Dreyfus-Schmidt, Lewis Tunstall, Luigi Pagani, Moreira Machado, Pauline Bourigault, Ran Wang, Stanislas Polu, Thibaut Barroyer, Wen-Ding Li, Yazhe Niu, Yann Fleureau, Yangyang Hu, Zhouliang Yu, Zihan Wang, Zhilin Yang, Zhengying Liu, and Jia Li. Kimina-prover preview: Towards large formal reasoning models with reinforcement learning, 2025. URL https://arxiv.org/abs/2504.11354.
Chenrui Wei, Mengzhou Sun, and Wei Wang. Proving olympiad algebraic inequalities without human demonstrations. Advances in Neural Information Processing Systems, 37, 2024.
Alden H. Wright. Finding all solutions to a system of polynomial equations. Mathematics of Computation, 44(169):125–133, 1985. doi: 10.1090/S0025-5718-1985-0771035-4. URL https://doi.org/10.1090/S0025-5718-1985-0771035-4.
Bican Xia and Lu Yang. Automated Inequality Proving and Discovering. World Scientific, 2016.
Kaiyu Yang, Aidan M. Swope, Alex Gu, Rahul Chalamala, Peiyang Song, Shixing Yu, Saad Godil, Ryan Prenger, and Anima Anandkumar. LeanDojo: Theorem proving with retrieval-augmented language models. In Advances in Neural Information Processing Systems, 2023.
Haoyu Zhao, Yihan Geng, Shange Tang, Yong Lin, Bohan Lyu, Hongzhou Lin, Chi Jin, and Sanjeev Arora. Ineq-Comp: Benchmarking human-intuitive compositional reasoning in automated theorem proving on inequalities. In Advances in Neural Information Processing Systems, 2025. URL https://arxiv.org/abs/2505.12680. Datasets and Benchmarks Track.
Ruobing Zuo, Hanrui Zhao, Gaolei He, Zhengfeng Yang, and Jianlin Wang. From LLM-generated conjectures to Lean formalizations: Automated polynomial inequality proving via sum-of-squares certificates. OpenReview: https://openreview.net/forum?id=Lz8rHDmmKt, 2026. URL https://arxiv.org/abs/2605.15445. Accepted to ICML 2026.
A LEMMA-LEVEL SEARCH DETAILS
This appendix gives the search rules used to allocate proving attempts in Section 3.1. The root node is denoted by . For a selected node, we use , and denotes a newly generated child or attempted child. Each node represents a partial proof state , comprising the local context, established facts, and remaining goals. The initial root state is , corresponding to the initial state . An accepted edge records a proof extension with one or more fully proved local lemmas. Paths represent successive extensions, while sibling nodes retain alternative ways to advance the same state.
Selection and progressive widening. MCTS allocates proving attempts across alternative proof paths. For each node , we maintain a visit count and accumulated reward from attempts backed up through that node. Their ratio is the mean reward, initialized to zero for unvisited nodes. A stagnation count tracks consecutive attempts to expand without useful progress. An open node is a valid proof state with remaining goals. At each iteration, selection starts at the root and either expands the current node or descends to an open child. Progressive widening sets the threshold for adding children:
where sets the branching scale, controls its growth, and allows up to two additional children when progress stalls. Only accepted proof states count toward this child limit; failed attempts are recorded separately. If has fewer than children, the agent generates a new extension from . Otherwise, it descends to the open child maximizing the selection score
Here favors branches with higher observed rewards, the exploration term weighted by encourages less-visited branches, and the bounded penalty discourages repeatedly unproductive ones, with strength and maximum value . Selection continues until a node can be expanded. If no open child is available, the agent attempts a new extension at the current node , even if the widening threshold has been reached.
Search parameters. Table 4 gives the default search configuration. We use for the stagnation penalty and reserve for the Lean–LLM reward weight. New nodes initialize . Selection scores are rounded to three decimal places.
Table 4: Default parameters for lemma-level search.
| Parameter | Meaning | Value |
|---|---|---|
| Progressive-widening scale | 1.0 | |
| Progressive-widening exponent | 0.5 | |
| Exploration coefficient | 1.414 | |
| Weight of the Lean-based reward | 0.5 | |
| Stagnation penalty per attempt | 0.06 | |
| Maximum stagnation penalty | 0.30 |
Reward and backpropagation. After expansion, Lean verification determines the candidate's status: solved if it completes the theorem without sorry or admit, open if its intermediate lemmas are verified but goals remain, or failed if verification fails. Failed attempts provide diagnostics for repair; only valid open states can be selected for further search. For an open candidate , we combine a Lean-based heuristic score with an LLM score . The former uses Lean checking results and proof-text features defined below. The latter compares the parent and candidate goals to estimate whether the new state is simpler and closer to completing the theorem. The LLM score guides search; correctness is determined by Lean. The reward is
r (u ^ {\prime}) = \{ \begin{array}{l l} 1, & \text { if } u ^ {\prime} \text { is solved }, \\ 0, & \text { if } u ^ {\prime} \text { fails Lean verification }, \\ \lambda r _ {u ^ {\prime}} ^ {\text { Lean }} + (1 - \lambda) r _ {u ^ {\prime}} ^ {\text { LLM }}, & \text { if } u ^ {\prime} \text { is open }, \end{array} \right. \tag {11}where gives equal weight to the two progress signals for an open candidate. The terminal rules take precedence: solved candidates receive one and failed candidates receive zero, regardless of the heuristic components. This final reward, rather than either component alone, updates the search statistics.
A valid extension creates a child, and its reward is backed up from that child to the root. A failed extension creates no accepted child; its diagnostics are retained, and its zero reward is backed up from the expanded parent to the root. Thus, failed attempts increase visit counts without adding reward or occupying a child slot. For a failed extension, denotes the attempted child and . Let denote the th node on the corresponding backpropagation path. Each node is updated once:
Thus, summarizes rewards from attempts through the branch rooted at , rather than assigning a fixed score to its current goals. Search returns a complete Lean-verified proof when one is found and otherwise terminates when the budget is exhausted or no open state remains.
Lean-based heuristic score. Each candidate undergoes a compilation check allowing unfinished sorry/admit markers and a completion check requiring a Lean-accepted proof without these markers. For the heuristic, let indicate whether the proof text differs from its parent's, let count occurrences of the unfinished markers in the two texts, and let . Let indicate successful compilation. These marker counts are textual features, rather than counts of Lean's remaining goals.
Let count newly added lines beginning with have, suffices, a typed let, lemma, or theorem. Added lines are candidate lines absent from the parent text. These features measure proof structure; local proof validity is determined separately by Lean. Starting from , we add the applicable terms in Table 5 and set
The structured-step bonus and the compilable-edit bonus are mutually exclusive. The agent timeout and execution-error penalties are also mutually exclusive; other applicable terms accumulate. The heuristic table includes failed-candidate features, but the failed branch of equation 11 overrides their sum with zero.
Table 5: Additive terms in the Lean-based heuristic. Agent execution refers to the proving-agent invocation for the current expansion.
| Condition | Contribution to |
|---|---|
| Candidate compiles () | |
| Proof text changed () | |
| Proof text unchanged () | |
| Change in unfinished-marker count | |
| unfinished markers remain | |
| new structured steps | |
| Candidate status is failed | |
| Agent times out, with / without a text change | |
| Agent execution errors without a timeout | |
| Either Lean check times out (charged once) | |
| Proof text changed but does not compile |
LLM progress score. For an open candidate, the evaluator receives the target theorem, the parent and candidate proofs, and the candidate's Lean checking result. It assesses the change in the proof rather than the absolute quality of the candidate. The prompt is given below; the placeholders are filled with the corresponding theorem, proof texts, and checking output. The numeric score is parsed and checked to lie in before combining it with . The heuristic's numeric value is not included in the prompt.
Prompt Template for LLM Progress Evaluation
Task:
You are evaluating one step in a Lean proof search. Compare the child proof with the parent proof for the target theorem. Score the substantive progress made in this step, not the child's absolute quality.
Instructions:
Give credit for resolving proof obligations or adding useful intermediate results. Do not reward longer text, cosmetic edits, unsupported claims, or removing sorry without a valid proof. Use the Lean result to check whether claimed progress is credible.
Scoring:
Score from 0 to 1:
0 no progress or regression;
0.25 small credible step;
0.5 substantial step;
0.75 most remaining work resolved;
1 theorem completely proved.
When evidence is unclear, score conservatively.
Input:
Target theorem: {theorem_statement}
Parent proof: {parent_content}
Child proof: {child_content}
Child Lean result: {lean_result}
Output format:
Return only JSON:
{"score": 0.0, "reason": "one concise sentence"}
Stagnation updates. Only a direct attempt to expand updates ; reward backpropagation does not change the stagnation counts of its ancestors. Let be true if the candidate solves the theorem, or if its text changes and at least one of the following holds: ; it compiles and adds a structured step; or it compiles and has status open. Thus, the marker-reduction condition does not require compilation, while a changed, compilable open candidate satisfies this progress test even without reducing markers or adding structured steps. Using the final reward and the parent's mean before backpropagation, we update
This local count determines both the widening slack and the bounded selection penalty. The next search iteration uses the updated counts and backed-up rewards.
B DETAILS OF SYMBOLIC PROVING
This appendix details the three symbolic proving backends introduced in Section 3.2. We consider polynomial nonnegativity goals of the form in Eq. 2, with and variables ranging over . For box-constrained goals, the interval endpoints are also rational. Each backend searches for an exact certificate for a polynomial goal supplied by the agent, either directly from the input theorem or through an intermediate lemma or reformulation. Successful certificates are translated into local Lean proofs, and unsuccessful attempts return feedback for further agentic reasoning.
B.1 SOS-BASED PROVING UNDER POLYNOMIAL CONSTRAINTS
Degree-bounded SDP formulation. We use the polynomial goal and domain K from Section 3.2. The backend seeks a constrained SOS identity
where each is a sum of squares and each is a polynomial multiplier unrestricted in sign. This certificate format is motivated by Putinar's Positivstellensatz (Putinar, 1993). The theorem's existence guarantee requires strict positivity and an Archimedean quadratic module, modulo the equality ideal when equalities are present. Our use of the certificate relies on its sufficiency: any exact identity of this form proves on .
Set and omit identically zero constraint polynomials. Choose a relaxation order such that , , , and define
Let contain all monomials of total degree at most in a fixed order. We represent with and impose . The resulting identity is
Every summand has degree at most 2d. Let extract coefficients in the monomial basis of total degree at most 2d, and let be the coefficient vector of the right-hand side. Coefficient matching gives the SDP feasibility problem
Here the decision variables are the independent Gram-matrix entries and the coefficients of the . MOSEK supplies numerical candidates , where indexes the main SOS block and indexes the SOS multipliers of the inequality constraints.
Rational recovery of SOS multipliers. We extend the numerical–symbolic certification procedure of Kaltofen et al. (2012), developed for unconstrained problems, to the constrained SOS identity in Eq. 15. We recover the certificate sequentially, first fixing the SOS multipliers and then recovering the main SOS block together with the equality multipliers. For a candidate denominator , numerical matrix entries are rounded to multiples of and symmetrized in exact arithmetic. Each rational candidate is checked by an exact decomposition for positive semidefiniteness. The denominator is adjusted if a candidate fails this check.
For singular blocks with an available exact rational kernel subspace, recovery can be performed in reduced coordinates. Let the columns of form a rational basis for the orthogonal complement of that subspace, and define
Rational recovery and the exact positivity check are then applied to . An accepted gives , preserving the prescribed kernel subspace. This reduction is used only when the required exact kernel information is available.
After recovering the inequality-multiplier blocks, set
These rational SOS multipliers remain fixed throughout the subsequent recovery. The remaining task is
Thus only one SOS block remains to be recovered; the equality multipliers are still to be determined. With no equality constraints, the task reduces to an SOS decomposition of .
Main-block recovery and exact verification. For the remaining main block, we use Gauss–Newton refinement followed by rational recovery. Write without reduction, or when using reduced coordinates. Factor , or in reduced coordinates, approximately as . If collects the entries of and the coefficients of the equality multipliers, define
At iteration k, the Gauss–Newton update solves the linearized least-squares problem
(23)
where is the residual Jacobian. The previously recovered SOS multipliers enter only through the fixed polynomial .
From the refined matrix , rational reconstruction and exact coefficient correction seek a main Gram matrix and rational equality multipliers satisfying
In reduced coordinates, the recovered matrix is and . Recovery targets the Gram matrix; the numerical factor need not itself have rational entries. The coefficient correction enforces the identity in Eq. 24, and positive semidefiniteness is checked again after correction. For a single affine equality , the equality multiplier can instead be obtained by exact division of by , with zero remainder required. If recovery or verification fails, recovery parameters are adjusted and the main block is refined or recomputed, while the accepted SOS multipliers remain fixed. Exhausting the available budget returns an unsolved result.
Finally, the complete identity in Eq. 15 is verified coefficientwise over Q. Exact decompositions supply weighted-square representations
Together with the rational equality multipliers, these representations form the certificate returned for Lean proof generation. On , all SOS terms and their products with are nonnegative, while every vanishes, establishing .
B.2 BERNSTEIN-BASED PROVING UNDER BOX CONSTRAINTS
This backend uses Bernstein representations and recursive subdivision to certify polynomial nonnegativity on a box, following Ray & Nataraj (2009). The numerical candidate search and exact recovery procedure are described below.
Coefficient matching on a box. Let , with rational endpoints . The affine map maps onto . Write , and choose a multidegree with . Define . The Bernstein basis polynomials in Eq. 4 are nonnegative on . Thus an expansion
certifies on .
Write , including zero coefficients where necessary. Let contain the monomial coefficient vectors of the Bernstein polynomials as its columns. Its entries are
where multi-index inequalities are componentwise and both indices range over . Matching coefficients gives the LP feasibility problem
For a fixed multidegree, the Bernstein coefficients are unique, so this LP tests whether the unique coefficient vector is nonnegative.
Numerical candidates and exact recovery. We first solve Eq. 28 in floating-point arithmetic. Given a numerical candidate and a zero threshold , we form the tentative support . Fixing the remaining coefficients to zero gives the reduced problem
which we solve in exact arithmetic. Here contains the columns indexed by . We reconstruct the full vector by assigning the recovered coefficients to and zero to its complement, then verify
exactly. Only a candidate passing both checks certifies the current box. The numerical threshold proposes a support; it does not establish that the discarded coefficients are exactly zero. If exact recovery or verification fails, the attempt returns an unresolved result to the search controller.
Binary subdivision and certificate construction. If no suitable numerical candidate is obtained and the subdivision budget permits, we choose a coordinate and a rational split point , and form
This replaces by and , leaving all other coordinate intervals unchanged. Each child box is normalized separately, and the same certificate search is applied recursively to the original polynomial on that box. Since , certificates for both children certify the parent; the shared boundary is included in both closed boxes.
A successful certificate consists of the binary subdivision tree and an exact nonnegative Bernstein expansion for every leaf box. The Translator uses these data to verify the affine substitutions, local polynomial identities, coefficient nonnegativity, and coverage of the original box in Lean. If the search budget is exhausted while any leaf remains unresolved, the backend returns an unsolved result.
B.3 SUCCESSIVE DIFFERENCE SUBSTITUTION
DiffSub searches for a finite certificate of polynomial nonnegativity on using successive difference substitution (Xia & Yang, 2016, Chapter 10). The procedure combines variable ordering with linear substitutions and certifies branches whose transformed polynomials have nonnegative coefficients.
Ordering domains and substitutions. Let denote the permutations of . For each , define
Every nonnegative tuple admits such an ordering, so . On each ordering domain, introduce nonnegative difference variables through the linear map
This map is a bijection from onto , with inverse
Consequently, a polynomial is nonnegative on if and only if is nonnegative on . The ordering domains may overlap when coordinates are equal, and their union still covers the entire domain.
Recursive certificate construction. The root contains the input polynomial . At a node with polynomial , we expand it exactly and test whether
Since every monomial is nonnegative for , this condition certifies the node as a leaf. If the test fails and the search budget permits, we enumerate all orderings of the current variables and form the child polynomials . Each child passing the coefficient test is closed; unresolved children are processed recursively by ordering and substituting their own nonnegative variables. An internal node is certified only when every ordering branch has been certified.
A successful certificate is a finite tree recording the ordering cases and substitution identities at internal nodes, together with the exact polynomial expansions and nonnegative coefficients at the leaves. The substitutions establish nonnegativity on each ordering domain, and coverage of these domains establishes nonnegativity at the parent. Applying this argument recursively proves on . All substitutions, expansions, and coefficient checks use exact arithmetic. If the shared search budget is exhausted while any branch remains unresolved, the backend returns an unsolved result.
B.4 LEAN PROOF GENERATION AND VERIFICATION
The Translator converts exact certificates from the three backends into local Lean proofs of the supplied polynomial statements. For SOS, it instantiates the recovered rational weighted-square identity, proves nonnegativity of the weights and squared terms, and applies the inequality and equality assumptions to the multiplier terms. For Bernstein certificates, it formalizes the affine substitutions, derives the unit-box bounds, and verifies the nonnegative basis expansion on each leaf box. It then combines these local results using the subdivision tree and coverage of the parent boxes. For DiffSub, it constructs the ordering cases, proves nonnegativity of the difference variables, and verifies the substitution identities and coefficient nonnegativity at the leaves. Polynomial identities and rational arithmetic are verified within Lean. A local goal is discharged only after the generated proof is accepted by the Lean kernel.
The agent incorporates the verified local result into the surrounding proof context and establishes any conditions connecting it to the original goal. These include the assumptions required by the local certificate and the side conditions of any reformulation, such as denominator positivity or variable-substitution identities. The resulting complete proof is checked against the original theorem statement, with its original assumptions, by the Lean kernel.
C SOURCES AND CONSTRUCTION OF LITINEQ
We construct LitIneq by collecting 74 examples from research papers and formal-verification projects and formulating them as inequality-proving tasks in Lean 4. The benchmark combines polynomial bound-verification problems from global optimization with nonlinear inequalities from geometric and program verification.
Source collection. Table 6 summarizes the composition. We collect 41 polynomial instances from studies on Bernstein polynomials, global optimization, and inequality verification (Muñoz & Narkawicz, 2013; Liu et al., 2025; Ray & Nataraj, 2009), together with examples from the Flyspeck nonlinear-verification documentation. For C1–C10, we retain the APPIRL benchmark formulations and identifiers. Table 6 lists their original sources as attributed in APPIRL.
A Tool for Formal Verification of Nonlinear Inequalities, Alexey Solovyev, Flyspeck project documentation.
Table 6: Collection sources and source attributions for the 74 LitIneq instances. C1–C10 attributions follow APPIRL.
| Source group | Count | Instances and source attributions |
|---|---|---|
| Bernstein examples | 2 | Coefficient and subdivision examples |
| APPIRL benchmark | 2 | C1-C2: Verschelde (1996), Polynomial homotopy continuation: A portable Ada software package (Verschelde, 1996) |
| APPIRL benchmark | 1 | C3: Iserles (1995), personal communication at the AMS-SIAM summer seminar (Iserles, 1995) |
| APPIRL benchmark | 2 | C4, C6: Noonburg (1989), A neural network modeled by an adaptive Lotka-Volterra system (Noonburg, 1989) |
| APPIRL benchmark | 1 | C5: Verschelde (2001), The PHC Pack, the database of polynomial systems (Verschelde, 2001) |
| APPIRL benchmark | 1 | C7: Faugère (1999), A new efficient algorithm for computing Gröbner bases (F4) (Faugère, 1999) |
| APPIRL benchmark | 1 | C8: Wright (1985), Finding all solutions to a system of polynomial equations (Wright, 1985) |
| APPIRL benchmark | 1 | C9: Emiris (1994), Sparse elimination and applications in kinematics (Emiris, 1994) |
| APPIRL benchmark | 1 | C10: Emiris (1997), A general solver based on sparse resultants: Numerical issues and kinematic applications (Emiris, 1997) |
| Polynomial bounds from verification examples | 8 | Reaction Diffusion, Schwefel, Lotka-Volterra, Magnetism, Caprasse, Flyspeck Delta, Butcher, and Heart Dipole |
| Bernstein range-computation benchmark | 21 | A02, A04-A07, A09, A11-A18, and B01-B07 |
| Flyspeck (HOL Light) | 11 | Original example identifiers |
| NASALib (PVS) | 22 | Original lemma names |
| Total | 74 |
The remaining 33 instances come from Flyspeck's HOL Light development and NASA's PVS library, NASALib.
Task construction and Lean formalization. For the 41 polynomial instances, we formulate bound-verification problems over explicit box domains. A selected lower bound is expressed as , with upper bounds handled analogously. Finite decimal coefficients and bounds are represented as exact rational numbers. For the HOL Light and PVS examples, we translate the selected statements and required definitions into Lean 4, making domain restrictions and positivity assumptions explicit. Each instance is packaged as a separate theorem with its own assumptions and target, retaining the strict or non-strict relation of the selected statement. Source identifiers and statement transformations are recorded for each instance.
Some instances involve explicit choices of domain or target. For A14 (Magnetism), we specify the box to resolve the ambiguous domain specification in the source. For B02 (Six-hump camel), we construct the target by subtracting a decimal approximation of the reported minimum from the objective polynomial. For B05 (Quadratic), we take as the nonnegative target. For Flyspeck's Delta bound, the 41-instance bound-verification collection contains a non-strict version, while the HOL Light collection retains the strict version.
Polynomial instances. Of the 74 instances, 49 have targets and assumptions consisting of polynomial comparisons with rational coefficients. These comprise the 41 polynomial instances described above, five Flyspeck instances, and three NASALib instances. Table 7 summarizes their distribution by the number of quantified real variables and the total degree of the target polynomial. Forty-six instances have box constraints, with two bound inequalities per variable and no explicit equality constraints. Among the remaining three, simple is unconstrained, quadratic has two polynomial inequality assumptions, and ajn has two alternative branches, each containing one equality and eleven inequalities.
Table 7: Distribution of the 49 polynomial instances by the number of variables and target total degree . Entries are instance counts. We count all quantified real variables, including parameters, without eliminating fixed variables. The degree is computed after expanding auxiliary definitions, simplifying rational constants, and moving the target to one side.
| Variables n | Target total degree dp | Total | ||
|---|---|---|---|---|
| 0–2 | 3–4 | 5–8 | ||
| 1–2 | 6 | 2 | 2 | 10 |
| 3–4 | 4 | 9 | 0 | 13 |
| 5–6 | 7 | 7 | 3 | 17 |
| 7–8 | 4 | 2 | 2 | 8 |
| 11 | 0 | 1 | 0 | 1 |
| Total | 21 | 21 | 7 | 49 |
Instances involving non-polynomial expressions. The remaining 25 instances comprise six Flyspeck instances and nineteen NASALib instances. They involve rational expressions with variable-dependent denominators, absolute values, square roots, logarithms, exponentials, and trigonometric or inverse trigonometric functions, including sine, tangent, and arctangent. Among them, 21 statements contain between one and eight quantified real variables, counting parameters as variables, while four are closed numerical inequalities. Non-polynomial expressions may occur in the target, the assumptions, or the constants defining the domain. The classification follows the input expressions before proof-oriented reformulations.
https://github.com/flyspeck/flyspeck
https://github.com/nasa/pvslib
D EVALUATION PROTOCOL
All methods are evaluated with a two-hour time limit per problem. We use Lean and Mathlib v4.30.0 for all Lean-based methods. Each task retains its original assumptions and target statement; a successful Lean proof must establish that statement without sorry or admit.
Hardware and agent runtime. The local evaluation platform uses an Intel Core i9-10900K CPU at 3.70 GHz with 64 GB of DDR4 memory. IneqAgent and Direct Agent use codex-cli version 0.149.0 as the underlying LLM coding agent. API-based LLM inference is served externally; the locally deployed prover models use the GPUs specified below.
Symbolic computation. For Z3, we encode the assumptions together with the negated target as an SMT satisfiability query. An unsat result establishes the inequality, whereas sat indicates a counterexample; an unknown result or timeout is not counted as a success. For Maple, we use PolynomialRing from the RegularChains package to specify the polynomial ring and invoke SamplePoints to determine whether the corresponding counterexample constraints have real solutions. A problem is counted as solved when the computation establishes that no such solution exists. For Isabelle/HOL, we apply the sos method and count a success when Isabelle completes the formal proof.
LLM provers. We evaluate Goedel-Prover-V2-8B and DeepSeek-Prover-V2-7B at pass@32. A problem is solved if at least one of up to 32 proof attempts produces a Lean-verified proof within the two-hour limit. Both models are deployed for inference on NVIDIA L40S GPUs.
Agentic frameworks. For the published agentic baselines, we use the configurations associated with the best reported results in their respective papers, subject to the common two-hour limit. Our framework uses DeepSeek-V4-Flash for the main comparison in Table 1. Agentic methods have no additional caps on proof attempts, LLM calls, or token usage, and API inference is provided by external services. In the cost comparison in Table 2, our framework and Direct Agent use the same backbone in each pair. Direct Agent runs with its default configuration and access to Lean.
We report the percentage of problems solved and the mean time in seconds over successful problems. We compute overall success rate over all 186 problems and overall mean time over all problems successfully solved by each method across the four datasets.
LLM inference pricing. Table 8 lists the token rates used for the four backbones. Uncached input, cached input, and output tokens are charged at their respective rates, and inference cost is accumulated over all LLM calls in a run. Each IneqAgent–Direct Agent pair uses the same backbone and rates. Rates are reported in USD per million tokens and the cost comparisons in Section 4.3 are reported in US cents.
Table 8: LLM inference rates in USD per million tokens. Input denotes uncached input tokens.
| Backbone | Input | Cached input | Output |
|---|---|---|---|
| DeepSeek-V4-Flash | 0.2206 | 0.0074 | 0.6618 |
| Qwen3.8-Flash | 0.1176 | 0.0147 | 0.3971 |
| Kimi-K3 | 2.9412 | 0.2941 | 14.7059 |
| GPT-5.5 | 5.0000 | 0.5000 | 30.0000 |
E DETAILS OF THE DITTERT, HOLENS–DJOKOVIC, AND MERRIS CONJECTURES
We give the historical context of the conjectures in Section 4.5, the Dittert certificate constructions, and the proof of our four-dimensional Merris result. Throughout, denotes the matrix whose entries are , is the set of doubly stochastic matrices, and is obtained by deleting row and column . We use for entrywise nonnegativity and for positive semidefiniteness of a symmetric matrix.
Table 9 shows that Dittert has the largest expanded target, while HD (4, 4) incurs the highest time and cost.
Table 9: Conjecture task sizes and costs. Dittert sizes refer to and before constraint elimination. For HD (4, 4), sizes refer to the reduced Holens–Djokovic polynomial , using the upper-left entries as nine independent variables. Time is wall-clock time and Cost is total LLM inference cost.
| Task | Variables | Total degree | Monomials | Time (s) | Cost (US cents) |
|---|---|---|---|---|---|
| Dittert, n = 4 | 16 | 4 | 521 | 5,292 | 84.6728 |
| Dittert, n = 5 | 25 | 5 | 118,755 | 6,704 | 100.1654 |
| HD (4, 4) | 9 | 4 | 222 | 42,731 | 521.9610 |
E.1 DITTERT'S CONJECTURE
Let , and let and be the row and column sums of . Dittert's conjecture, recorded in Minc's 1983 survey and restated as Conjecture 28 in the survey of Cheon and Wanless (Minc, 1983; Cheon & Wanless, 2005), asserts
with equality exactly at . On , both products of sums equal one, so the inequality reduces to the van der Waerden lower bound . The additional difficulty is to control matrices in the larger simplex , where neither the row sums nor the column sums are fixed individually.
Sinkhorn proved the case and showed that a maximizing matrix has positive permanent (Sinkhorn, 1984). Hwang established that any entrywise positive maximizer must be and that is a strict local maximum (Hwang, 1986); he subsequently proved the case (Hwang, 1987). These results leave the exclusion of nonuniform boundary maximizers as a central obstacle. Cheon and Wanless excluded partly decomposable matrices and matrices whose entire zero set forms a single block, and derived quantitative restrictions on the row and column sums of a possible counterexample (Cheon & Wanless, 2012). Udayan and Somasundaram also established full indecomposability of a maximizer in dimension four (Udayan & Somasundaram, 2024). These structural conditions alone do not identify the maximizer in that dimension. More recently, a 2026 preprint of Pang reports a proof for all using refined scaling estimates (Pang, 2026). Our constructions below address dimensions four and five by explicit rational nonnegativity certificates. Both results include quantitative stability and uniqueness of the maximizer.
E.1.1 DIMENSION FOUR: A QUANTITATIVE STABILITY CERTIFICATE
Polynomial target and certificate template. Flatten the entries of into , and set
It suffices to prove under and for one rational . We search for a degree-four constrained SOS identity of the form
where is SOS of degree at most four, and are SOS of degree at most two, and . Every term except is nonnegative on the domain, and vanishes there. The initial template using only does not yield a positive stability parameter in the numerical search. Adding the pairwise generators yields a numerical value near 0.6153852, which motivates the rational candidate . This value is accepted only after exact certification; we do not claim that it is the optimal stability parameter.
The resulting template has 136 small Gram blocks, corresponding to generators, and one main block. The small blocks use and have size , and the main block uses all monomials of degree at most two and has size . A numerical semidefinite solve supplies candidate matrices. Turning them into exact certificates requires handling both singularity and the coupling between blocks.
Removing the forced singular direction. Write . Since and every generator is positive at , each SOS block must vanish at . Thus, for a block with , we have . Ordering with its constant monomial first, write and define
This parameterization enforces the known kernel exactly. The numerical reduced matrices are positive definite, making rational recovery possible without perturbing the forced zero direction.
Sequential rational recovery. We recover and fix the 136 small reduced blocks first. Their entries are rounded to rational values with a common candidate denominator, and each block is accepted only when an exact factorization has positive diagonal entries. The successful common denominator in the construction is 1331. Once these blocks are fixed, let
The main block is rationalized and corrected to satisfy two conditions: its reduced matrix remains positive definite, and its residual vanishes identically after imposing the simplex equality. Explicitly, with , where denotes the matrix for the main block, we check
The successful denominator parameter for the main-block recovery is 32767. Exact polynomial division then yields with zero remainder, establishing Eq. 38 coefficientwise over .
Scaling and the exact code target. The normalized target above and the integer-scaled certificate represent the same inequality. Define
With our convention , the centered distance satisfies . Consequently,
(42)
The exported SOS identity for has the same block structure as Eq. 38, with the weights scaled by 13. If its equality multiplier is , the identity for uses and the same SOS blocks. The Lean definition compactTarget is , dividing its nonnegativity statement by 416 gives the stability constant 1/52. The coefficient 8/13 belongs to the 32-fold scaled gap in ; it must be divided by 32 exactly once to obtain 1/52.
Conclusion and formal verification. The final certificate contains 152 positively weighted rational squares in the main SOS and 16 in each of the 136 small SOS blocks. The Lean formalization checks the rational weights, the nonnegativity of the constraint factors, and the polynomial identity, and relates the flattened polynomial to the matrix statement. Therefore
If , the squared norm must vanish, so . Conversely, direct evaluation at gives equality. This establishes both the conjectured upper bound and the unique equality case. The updated proof record identifies DH4_one_div_52_sos as the coordinate-level stability theorem and lists matrix theorems for quantitative stability and the full four-dimensional conjecture in DH4DittertOneDiv52Fast.lean.
E.1.2 DIMENSION FIVE: SYMMETRY REDUCTION AND EXACT RECOVERY
Homogenization, distance term, and symmetry. For an arbitrary nonnegative matrix, put and define
(44)
The strengthened certificate matches , rather than alone. It is a homogeneous degree-five polynomial in 25 variables with 118,755 monomials after expansion and collection. The factor makes the squared-distance term homogeneous of degree five as well. Independent row and column permutations, together with transposition, form a symmetry group of order . Its action partitions the degree-five monomials into 54 orbits. Let list the degree-two monomials in the entries. We seek a rational symmetric matrix such that
where acts by permuting matrix-entry variables. The factor raises the degree from four to five and is nonnegative on the domain. Since both sides are invariant, coefficient matching requires only one equation per monomial orbit, giving 54 linear equations for Q.
Enforcing the equality-point kernel. A numerical semidefinite feasibility solve gives an approximate Gram matrix. At the all-ones matrix, and , and positive semidefiniteness therefore forces . To preserve this condition throughout rational recovery, write and parameterize
Here is a symmetric matrix. This parameterization enforces symmetry and the zero direction identically, and if and only if .
Exact coefficient correction. Vectorize the upper triangle of into . The orbit equations become a rational linear system , where contains the orbit coefficients of . Strengthening the target changes this right-hand side; the symmetry operator and kernel parametrization are unchanged. After rounding the numerical reduced matrix to a rational candidate , the residual is . The completed matrix always has the zero direction, so evaluation at the all-ones matrix gives one dependency among the 54 equations. The construction identifies 53 independent rows and verifies their independence by exact elimination. Writing the selected system as , an exact correction is
This is the minimum Euclidean-norm correction in the chosen upper-triangle coordinates. It limits the perturbation of the numerical candidate but does not itself prove positive semidefiniteness. All 54 original equations are checked again in exact arithmetic after the correction.
Exact positivity and quantitative stability. Positive semidefiniteness must be checked in exact arithmetic after coefficient correction. An exact decomposition of the reduced matrix with nonnegative diagonal weights suffices: by Eq. 46, it gives a rationally weighted sum-of-squares representation of . The strengthened certificate is accepted only after checking symmetry, the exact kernel equation, positive semidefiniteness, and all coefficient identities for . Each summand in Eq. 45 is consequently nonnegative, proving for every , without a normalization assumption. At , let . Then
Thus the normalized matrix conclusion is
If , the positive stability coefficient forces , hence . Direct substitution gives equality at . This establishes the conjectured upper bound and uniqueness, including on the boundary of . Uniqueness follows from the distance estimate; it does not require the strengthened remainder itself to have only one zero.
Lean verification and the matrix theorem. The updated proof record identifies h5Poly with , uniquenessGapPoly with , and compactTargetPoly with . The theorem eval_compactTargetPoly_nonnegative checks the strengthened target on the nonnegative orthant; DH5_strengthened then states . The matrix-level file DH5Main.lean applies and Eq. 48 to obtain the 1/2500 stability bound and the unique equality case. These are the quantitative-stability and dimension-five conjecture theorems listed in the updated record.
E.2 HOLENS–DJOKOVIC (4,4) AND MERRIS'S CONJECTURE
Merris proposed in 1973 that every satisfies
(Merris, 1973). The permanent has the weighted column expansion . The conjecture asks for at least one column whose corresponding unweighted sum of minors is at most times the permanent; this does not follow from the expansion alone.
A related result of Marcus and Merris gives for positive semidefinite Hermitian , where . For positive semidefinite doubly stochastic matrices, their averaged minor inequality implies Eq. 50 (Marcus & Merris, 1973). General doubly stochastic matrices need not be symmetric or positive semidefinite, so this argument does not cover the conjecture in full. Udayan and Somasundaram's 2021 paper records the general problem as open for and proves it for additional classes, including matrices constant within each column whose largest entry is at least (Udayan & Somasundaram, 2021).
E.2.1 DIMENSION FOUR: AN SOS PROOF VIA HOLENS–DJOKOVIC
Merris target and the certified polynomial. For , write
The desired conclusion is
The SOS certificate directly proves the instance of the Holens–Djokovic conjecture (Holens, 1964; Djoković, 1967) in the polynomial form
As shown below, this implies a bound on the average of the four , which in turn gives Eq. equation 52. Thus is a sufficient polynomial target for the Merris result, and we do not identify it with any individual .
Remark 1 (On a previous claim concerning the case). Udayan & Somasundaram (2021, Theorem 6) claim that the Holens–Djokovic inequality fails for . Their proof defines
and subsequently uses . However, this definition gives
which is generally nonzero. For example, gives . Consequently, the subsequent derivative argument, which relies on a zero at , does not establish the claimed disproof. The exact rational SOS certificate presented below independently establishes equation 8 for every .
Nine-variable parametrization. Let contain the upper-left entries. Define by
(54)
All row and column sums are then one. Every matrix in has this representation, and its feasible domain is exactly the sixteen linear inequalities . Consequently, the parametrization eliminates the equality constraints without relaxing nonnegativity. The polynomial has nine variables, total degree four, and 222 nonzero monomials after expansion and collection. These are the sizes reported for the Merris experiment in Section 4.5; 222 counts the terms of this single SOS target.
Symmetrized rational SOS certificate. Let consist of the row permutations, column permutations, and transposition, with . These transformations preserve and . The certificate uses four representative multipliers,
and has the form
Here each has rational coefficients; when expressed in nine coordinates, its argument is the upper-left block of . The four blocks have weighted squares before summing over transformations. The implementation partitions the blocks into slices, respectively, for a total of 72 slices. This partition permits parallel checking of the same algebraic identity. For every feasible , all transformed matrix entries, multipliers, weights, and squares are nonnegative. Hence the certificate establishes Eq. 53, including matrices with zero entries.
The certificate is discovered by semidefinite programming on the nine-variable model. Known equality cases, including the uniform matrix, impose vanishing conditions that reduce the Gram-block dimensions. Numerical Gram data are recovered over the rationals and factored into weighted squares. The exported weights, polynomials, symmetry mappings, and target coefficients are then checked by exact polynomial expansion. The numerical search supplies a candidate; acceptance depends on the rational identity and nonnegativity checks.
From Holens-Djokovic to Merris. For doubly stochastic matrices, the proof uses the identity
After substitution of Eq. 54, both sides are polynomials in u, and the identity is checked by exact expansion. Combining it with the SOS certificate gives
Choose a column minimizing . Then
which proves Eq. 52. This argument applies directly to every and does not require a limiting argument.
Formal verification and the public theorem's scope. The supplied proof record describes the HolensDjokovic44Fast project using Lean and Mathlib version v4.30.0-rc1. Its sparse-polynomial modules establish evaluation semantics, while the symmetry and multiplier lemmas justify nonnegativity of each orbit certificate. Each slice checks rational weight nonnegativity and an exact polynomial identity. The certificate module combines all four blocks and identifies their sum with . The final matrix theorem connects the parametrization to Mathlib's Matrix.permanent for arbitrary .
The public theorem holens_djokovic_4_4 states Eq. 53. The public theorem merris_n4 assumes, in addition to , that
and concludes . For the mathematical existential statement, any minimizing column can be moved to position four by a column permutation. Such a permutation preserves double stochasticity and the permanent, and permutes the values . Applying the stated theorem to the permuted matrix and relabeling the column yields Eq. 52. The supplied record documents the fixed-minimum-column Lean theorem; it does not list a separate public theorem with the existential conclusion.
The record reports no sorry, admit, or project-defined axioms. Large finite equalities are checked with native_decide, whose trusted base includes Lean's native code generator and runtime.