Sostactic, a Lean4 package providing tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend.
Raw Developer Origin & Technical Request
Hacker News
Apr 19, 2026
Current support for nonlinear inequalities in Lean is quite limited. This package attempts to solve this. It contains a collection of Lean4 tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend. You can use it via Python or Lean.These tactics are significantly more powerful than `nlinarith` and `positivity` -- i.e., they can prove inequalities they cannot. In theory, they can be used to prove any of the following types of statements- prove that a polynomial is nonnegative globally
- prove that a polynomial is nonnegative over a semialgebraic set (i.e., defined by a set of polynomial inequalities)
- prove that a semialgebraic set is empty, i.e., that a system of polynomial inequalities is infeasibleThe underlying theory is based on the following observation: if a polynomial can be written as a sum of squares of other polynomials, then it is nonnegative everywhere. Theorems proving the existence of such decompositions were one of the landmark achievements of real algebraic geometry in the 20th century, and its connection to semidefinite programming in the 21st century made it a practical computational tool, and is what this software does in the background.
Developer Debate & Comments
Frequently Asked Questions
Market intelligence mapped to Sostactic, a Lean4 package providing tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend..
What is the technical positioning of Sostactic, a Lean4 package providing tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend.?
How is the developer community reacting to Sostactic, a Lean4 package providing tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend.?
What architecture is tied to Sostactic, a Lean4 package providing tactics for proving polynomial inequalities via sum-of-squares (SOS) decompositions, powered by a Python backend.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like nonlinear inequalities and Lean by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics