Most of the software we rely on every day is built by humans who try their best to anticipate every error, but eventually, someone finds a bug. For decades, a small group of engineers has used a rigorous process called formal verification to essentially prove, using mathematical formulas, that a piece of software is impossible to break. It is the gold standard for security, but it is so grueling and expensive that it is usually reserved only for critical infrastructure like airplane flight systems or high-security encryption. Now, a new wave of startups is using AI to automate this math, turning a months-long task into something that can happen in hours.
WHAT'S HAPPENING
Researchers and tech companies are building AI tools that act as high-speed math assistants for software developers. Historically, to formally verify code, an engineer had to manually translate computer instructions into logic puzzles that a computer could solve. If the math held up, the code was proven to be bug-free. This required immense skill and time. Recently, researchers used AI to finish a complex engineering verification project in less than half a day that would have otherwise taken three experts five months to complete. Now, startups like &Truth, Harmonic, and Theorem are racing to commercialize this technology, hoping to make this level of security standard for everything from messaging apps to cloud servers.
Making software behave
HOW IT WORKS
Think of software as a very complex set of instructions, like a recipe. Normally, we test that recipe by following it over and over to see if it works. But there are too many variables to test every possible outcome. Formal verification flips this on its head. Instead of just testing the recipe, you write a mathematical proof that demonstrates exactly what the recipe should accomplish—for example, that a list of numbers must be sorted correctly every single time, no matter what numbers you put in. The AI acts as an apprentice, reading the code and automatically turning it into these strict mathematical proofs. Once the code is translated into math, the computer can check it against those requirements with total certainty. It is not just looking for bugs; it is mathematically confirming that no sequence of events could ever cause the program to fail in the way you have forbidden it to.
WHY IT MATTERS
If this technology scales, we could see a future where software is significantly more reliable and resistant to hacking. However, there is a catch. Mathematicians warn that formal verification is not a magic shield; it only works if your initial assumptions about what the software should do are correct. If you define the goals incorrectly, the math will prove your code is perfect, but it will be perfectly wrong. Furthermore, some experts worry that trusting AI to write these proofs could lead to a false sense of security. While these tools could significantly reduce the number of vulnerabilities in the apps we use daily, they are just one layer of a complex defense system. We are moving toward a world where our software is better scrutinized, but the human responsibility to ask the right questions about how that software behaves remains as important as ever.
Liked this one? The next lands at breakfast.
Every story in tomorrow's AI news, rebuilt in plain English — five minutes, sources linked, free forever.
By joining you agree to receive Article's daily newsletter — unsubscribe in one click. Privacy