TL;DR
RealCertify is a new Maple package designed to provide formal, rational "certificates" (mathematical proofs) that a given polynomial is non-negative. By combining fast numerical solvers (Semi-Definite Programming) with exact symbolic "rounding" techniques, it offers a way to verify global positivity much faster than traditional algebraic methods.
What Problem Does This Paper Address?
In fields like control theory, program verification, and robotics, we often need to prove that a mathematical function—specifically a polynomial—never drops below zero. This is the "non-negativity" problem.
Historically, researchers have faced a frustrating trade-off:
- Exact Symbolic Methods: Algorithms like Cylindrical Algebraic Decomposition (CAD) provide a definitive "yes/no" answer but are notoriously slow (doubly exponential complexity). They become unusable as the number of variables increases.
- Numerical Methods: Semi-Definite Programming (SDP) can find "Sum of Squares" (SOS) decompositions very quickly. If you can write a polynomial as $f = s_1^2 + s_2^2 \dots$, it is obviously non-negative. However, numerical solvers use floating-point math, meaning they provide approximations that aren't technically "proofs" due to potential rounding errors.
- Root-Finding: Tools like RAGLib look for a single point where the function is negative. If they find nothing, they say "it's probably positive," but they don't give you a "certificate" you can check later.
RealCertify bridges this gap by producing exact rational certificates—proofs using precise fractions rather than fuzzy decimals—while maintaining much of the speed of numerical solvers.
Methods
RealCertify implements a hybrid symbolic-numeric approach. The core workflow for multivariate polynomials (multivsos) involves:
- Newton Polytopes: The tool first analyzes the "geometry" of the polynomial's exponents (its Newton polytope) to prune the search space, identifying which monomials are actually needed for the SOS decomposition.
- Perturbation: It subtracts a small, controlled amount from the polynomial. This pushes the problem into the "interior" of the SOS cone, making it numerically "safer" to solve.
- Numerical SDP Solving: It uses external solvers (like SDPA or SDPA-GMP) to find an approximate SOS decomposition.
- Symbolic Recovery: This is the "secret sauce." It takes the approximate numerical result and applies a symbolic step to "round" it into an exact rational identity. If the precision is high enough, this yields a rigorous identity $f = \sum c_i s_i^2$ where $c_i$ and $s_i$ have rational coefficients.
For univariate cases, it offers two specialized algorithms (univsos1 and univsos2) that use root isolation to recursively break the polynomial down into squared components.
Datasets
The authors evaluated RealCertify using standard benchmarks from the polynomial optimization community. These include:
- Unconstrained problems: A suite of polynomials ($f_{12}$ to $r_{10}$) with varying degrees (up to 20) and variables (up to 10).
- Constrained problems: Real-world-inspired examples like the "butcher," "heart," and "magn" polynomials, where non-negativity is tested within specific geometric bounds.
Key Insights and Ideas
- The "Interior" Strategy: The most clever insight is that numerical solvers struggle near the "boundary" of truth. By slightly perturbing the polynomial, the authors ensure the numerical solver finds a solution with enough "room" to be successfully rounded to exact fractions without breaking the logic.
- Scaling via Geometry: By using Newton polytopes to restrict the monomials involved, the package avoids the "explosion" of terms that usually kills multivariate symbolic solvers.
- Rationality as a Standard: The package insists on rational certificates ($\mathbb{Q}$). This makes the output human-readable (or at least machine-verifiable by any basic computer algebra system) and independent of the specific hardware used to run the SDP solver.
Key Results
- Superior Scaling: On unconstrained problems, RealCertify scaled significantly better than CAD. For a 10-variable polynomial ($r_{10}$), RealCertify provided a certificate in 2.45 seconds, while CAD-based tools were unable to complete the task in a reasonable timeframe.
- Efficiency: In many constrained cases (like the "heart" or "butcher" benchmarks), RealCertify outperformed RAGLib, sometimes by orders of magnitude (e.g., 2.94s vs 0.54s for "heart," but significantly better on higher-dimensional "r" series).
- Hybrid Flexibility: The tool can utilize both double-precision (fast) and arbitrary-precision (accurate) SDP solvers depending on the difficulty of the problem.
Limitations and Future Work
- The SOS Gap: Not every non-negative polynomial can be written as a Sum of Squares. If a polynomial is non-negative but not an SOS, RealCertify will fail to find a certificate.
- Boundary Issues: If a polynomial is "barely" non-negative (i.e., it lies exactly on the boundary of the SOS cone), the rounding process becomes much harder and requires extremely high numerical precision.
- Coefficient Magnitude: Polynomials with massive coefficients can still slow down the symbolic recovery phase.
- Future Direction: The authors suggest RealCertify is best used as a "fast pre-processor." You try it first because it's fast; if it fails (because the polynomial isn't an SOS), you then fall back to the slower, more exhaustive algebraic tools.
Summary updated