Blog
The technical content top engineers rely on to level up.
10 min read
Constraining Ghosts in Invariants
In the previous chapter, we saw how unconstrained ghost variables can lead to false positives.
14 min read
Formally Verify an ERC-20 Token
In this chapter, we formally verify Solmate’s ERC-20 implementation. Note that while Solmate’s ERC-20 implementation includes a permit() function, we…
8 min read
Transfer and Approval Rules for ERC-721
This chapter continues as the third part (3/5) of our code walkthrough of OpenZeppelin’s ERC-721 CVL specification and focuses on token transfer and…
9 min read
SafeMint and SafeTransfer Rules in ERC-721
This chapter is the fourth part (4/5) of our code walkthrough of OpenZeppelin’s ERC-721 CVL specification and focuses on formally verifying safe mint and…
12 min read
Partially Parametric Rules for ERC-721
This chapter is the final part (5/5) of the code walkthrough of OpenZeppelin’s ERC-721 CVL specification which formally verifies the following rules.
7 min read
Using Sstore Hooks with Storage Mappings
In the chapter “Introduction to Storage Hooks And Ghosts”, we covered storage hooks and ghosts with simple storage variables.
8 min read
Constraining the Ghost Values in Rules
In the previous chapter, we learned how ghost variables allow information to flow from hooks into rules.
17 min read
Loops in CVL: Path Explosion and Loop Unrolling
Loops are one of the most common programming constructs, but they remain challenging to reason about in formal verification.
17 min read
Preserved Block and Its Role in Invariant Verification
An invariant is a property that must always hold true after a smart contract is deployed and throughout its execution.
9 min read
Persistent Ghosts
In previous chapters, we used ghost variables (via Sstore hooks) to record storage values and quantities that were not explicitly tracked in smart…
7 min read
Testing Revert Call In Certora
In this chapter, we will learn how to use method tags (@withrevert and @norevert) and the special variable lastReverted in CVL to verify expected reverts…
8 min read
Introduction to Parametric Rules
Until now, in previous chapters, we have written rules to verify the behavior of specific methods and their impact on a contract’s state.