All articles
CONTRIBUTOR

Nisarg Patel

Nisarg Patel is a Formal Verification Researcher at Certora who writes mathematical specifications and uses the Certora Prover to verify DeFi smart contracts. His projects have included work with the Solana Foundation, Kamino, and Fluid. He earned a PhD at New York University’s Courant Institute, where he studied the verification of concurrent key-value stores.

Articles & contributions

5 articles
Formal Verification

How Formally Verified Code Goes Wrong and How to Catch It

We examine four ways formally verified systems can fail: incorrect specifications, flawed assumptions, mismatches between verified models and deployed code, and bugs in verification tools themselves. Through real-world examples, we explain how to identify these risks and what to check before relying on a formal verification proof.

12 min readRead article
Formal Verification

Formal Verification vs. Testing vs. Auditing: What Each One Catches

Formal verification, testing, and smart contract audits address different questions about protocol security. This guide compares the risks each method can uncover, the limits of a clean result, and how to combine them throughout development, launch, and upgrades. Real protocol examples show why coverage depends on review scope, tested inputs, stated properties, and model assumptions.

12 min readRead article
Formal Verification

What Is Formal Verification?

Formal verification checks whether code satisfies precisely stated properties within a defined model and set of assumptions. This guide explains what that means for smart contracts, how it complements testing and human audits, and what a verification engagement involves. A flaw found in Solana’s SPL Stake Pool shows how a property can expose a consequential edge case before deployment.

11 min readRead article
STAY INFORMED

Security research, in your inbox.

Incident analysis, formal verification, and new tools from Certora.