← Latest papers
🤖 AI

From LLM-Generated Conjectures to Lean Formalizations: Automated Polynomial Inequality Proving via Sum-of-Squares Certificates

This paper introduces NSPI, a neuro-symbolic framework that leverages large language models to propose approximate Sum-of-Squares conjectures and symbolic computation to refine them into exact, machine-checked Lean proofs, thereby achieving scalable automated proving of polynomial inequalities with up to 10 variables.

Original authors: Ruobing Zuo, Hanrui Zhao, Gaolei He, Zhengfeng Yang, Jianlin Wang

Published 2026-05-18
📖 4 min read☕ Coffee break read

Original authors: Ruobing Zuo, Hanrui Zhao, Gaolei He, Zhengfeng Yang, Jianlin Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to prove that a complex, multi-layered cake is always "sweet enough" (mathematically, non-negative) no matter how you slice it or change the ingredients. In the world of mathematics, this is called proving a polynomial inequality.

For a long time, mathematicians have had two main ways to do this, but both have had major flaws:

  1. The "Pure Logic" Method (Symbolic): This is like trying to solve the cake problem by writing out every single chemical reaction of the ingredients on a chalkboard. It's perfectly accurate, but if the cake has too many ingredients (variables), the chalkboard fills up instantly, and the method crashes. It's too slow and messy for big problems.
  2. The "AI Guessing" Method (LLMs): This is like asking a very smart, creative chef to guess the recipe. The chef is fast and good at small cakes, but when the cake gets huge and complicated, the chef starts hallucinating ingredients that don't exist or making math errors. They can't prove their answer is 100% true.

This paper introduces a new team called NSPI (Neuro-Symbolic Polynomial Inequality proving). Think of NSPI as a perfect partnership between a creative chef and a rigorous quality inspector.

Here is how their "assembly line" works, step-by-step:

Step 1: The Creative Chef (The LLM)

First, the team asks a Large Language Model (the "Chef") to look at a difficult math problem. The Chef doesn't try to do the hard math immediately. Instead, it uses its creativity to guess a structure.

  • The Analogy: Imagine the Chef says, "I bet this cake is made of three specific layers of sugar cubes stacked together."
  • In math terms, the LLM guesses a Sum-of-Squares (SOS) decomposition. It suggests, "This complicated expression is probably just the sum of a few simpler things squared."
  • Crucial Point: The Chef's guess is usually an approximation. It's close, but it might have tiny decimal errors (like saying a sugar cube weighs 1.0000001 grams instead of exactly 1).

Step 2: The Quality Inspector (Symbolic Correction)

The Chef's guess is passed to the "Quality Inspector," which is a powerful computer algebra system.

  • The Analogy: The Inspector takes the Chef's rough sketch and uses a microscope to fix the tiny errors. It uses a technique called Newton's Method (a mathematical way to zoom in on the exact answer) and Rational Recovery (turning messy decimals into clean, exact fractions).
  • If the Chef guessed the layers were "roughly" 1.5, 2.3, and 0.7, the Inspector calculates the exact numbers: 3/2, 23/10, and 7/10.
  • Now, the guess has been turned into a perfect, exact mathematical certificate.

Step 3: The Courtroom Judge (Lean Verification)

Finally, the team takes this exact certificate to a "Judge" named Lean.

  • The Analogy: Lean is a strict, unblinking judge who checks every single step of the Inspector's work. It doesn't care about "feeling" or "guessing." It only accepts proofs that are logically airtight.
  • Because the Inspector provided an exact certificate, the Judge can easily verify: "Yes, if you square these exact numbers and add them up, you get the original cake. And since squares are always positive, the cake is always sweet."
  • The Judge then issues a machine-checked proof that is 100% guaranteed to be correct.

Why is this a big deal?

The paper tested this team on 522 very hard math problems, some with up to 10 different variables (ingredients).

  • The Old Logic Methods gave up when the problems got too big (too many ingredients).
  • The Old AI Methods got confused and made mistakes on the big problems.
  • The NSPI Team succeeded where others failed. They could solve problems with 10 variables that no other method could touch.

The Bottom Line

The paper claims that by letting an AI guess the shape of the solution and then using math tools to fix the details and a computer to verify the truth, they have built a system that can solve complex inequality problems faster and more reliably than ever before. They didn't just guess; they built a bridge from a "good guess" to a "proven fact."

What they did NOT claim:

  • They did not say this will cure diseases or predict the stock market.
  • They did not claim this works for every type of math problem, only for proving that certain polynomial expressions are always positive.
  • They did not claim this replaces human mathematicians entirely, but rather automates a very specific, difficult type of reasoning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →