Blog Archives

Theorem Secures $6 Million Seed Funding Led by Khosla Ventures to Fix the Reliability Problem in AI Coding

YC-backed startup makes formal verification as simple as writing Python, enabling developers to build secure, bug-free code for critical infrastructure

Theorem, a company building technology to verify and correct AI-generated code, today announced $6M in seed funding. The round was led by Khosla Ventures with participation from YC, e14, SAIF, Halcyon, and angel investors including Blake Borgesson, co-founder of Recursion Pharmaceuticals, and Arthur Breitman, co-founder of Tezos. Funding will support hiring and product development, including compute resources on training and scaling test-time verification.

AI systems generate millions of lines of code that end up controlling financial markets, power grids, and medical devices, but we have no fast, reliable way to trust and verify that the code is correct without human code review. As AIs become capable of automating weeks, months, or even years of software engineering, we’re approaching a transition where the volume and complexity of generated code will eclipse human ability to oversee correctness. A scalable, reliable way to check that AI-written code works as intended is becoming necessary infrastructure.

Theorem addresses the code-review bottleneck by combining formal verification with AI to automatically check and prove the correctness of software.  Formal verification proves, with mathematical certainty, that software does exactly what it’s supposed to do. But it’s extremely expensive, often taking years of PhD-level labor to verify even small codebases, and has only been applied for the most important infrastructure such as aviation systems and nuclear reactors. With AI, it is becoming as cheap as writing simple Python code. Theorem’s technology has already been used to verify tasks with 100,000 lines of code, helping senior engineers do in one month what they would have done in two years.

“Scaling up anything brings challenges. If you try to automate programming, you can’t just do more of what works right now, you need to make a leap in methodology,” said Theorem co-founder, Rajashree Agrawal. “We’re working on formal program reasoning so that everyone can oversee not just the work of an average SWE-level AI, but really harness the capabilities of a Linus Torvalds-level AI.” 

Founded in 2025 by Jason Gross, a MIT PhD known for his work on verifying the cryptography code that powers the HTTPS lock icon you see in browsers, and Rajashree Agrawal, a ML research engineer,  Theorem operates as an applied programming languages lab. Theorem is geared at inventing software oversight that scales to a world with vastly more automation. They are working with early customers across AI labs, electronic design automation, and GPU-accelerated computing, with additional expansion planned for robotics, renewable energy, crypto, and drug synthesis.

“Theorem solves one of the most pressing challenges in AI: the need for process efficiency that does not sacrifice quality for businesses at all levels of growth,” said Kanu Gulati at Khosla Ventures. “We believe that Theorem’s approach goes beyond building another model, it shows that full automation requires that even responsibility is automated, and sets a new benchmark for the larger industry.”