Formal Verification with Lean
Solid Lean tutorial, but implementing insertion sort proofs is a standard exercise in the field.
Proving polynomial inequalities with sum-of-squares certificates
Beats Lean's `nlinarith` on nonlinear inequalities using Python-backed SOS decompositions.
Formal verification engineers, mathematicians using Lean 4
SOSTOOLS · YALMIP · Lean `nlinarith`
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 infeasible
The 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.
Solid Lean tutorial, but implementing insertion sort proofs is a standard exercise in the field.
Solid walkthrough of Lean basics, but just another 'insertion sort proof' in a sea of tutorials.
Formal verification via Python decorator—Lean proofs generated by LLMs on the fly.
403 error on the link, no code or demo to evaluate.
Compile-time SQL validation using Lean's type system moves database errors from runtime to build.
Clever satire flipping the contribution graph, but offers no actionable insights beyond status page data.