0/5
--- ### Game Plan Overview In our upcoming lessons, we're going to tackle the following key areas: 1. **Practicing Formal Verification**: - We will start by using Molwat for formal verification. - Initially, we will apply it using Halmos, followed by demonstrations in Sirtora. 2. **Application to the Square Root Function**: - We'll then use our newly acquired skills to explore the square root function. - This will lead us into discovering a significant problem. - We will employ clever methods to solve this issue using both Halmos and Shatura. 3. **Identifying and Understanding Issues**: - I will reveal a clue that should hint at the underlying issue with the square root function. - Despite often passing tests, we'll discuss why these results aren't entirely correct. - We'll identify edge cases and delve into more complex problem-solving. 4. **Concluding Insights**: - Finally, we will discuss what should have tipped us off about inaccuracies in the square root function’s behavior. Through these steps, we'll deepen our understanding of formal verification and enhance our problem-solving skills.
A fun challenge in formal verification to Math Masters - This lesson will use Halmos and Certora to do formal verification of two Solidity functions: mulWadUp and sqrt. The lesson will also reveal the clue that should've tipped you off that there was an issue with the sqrt function and that it was not actually passing.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Assembly
Writing smart contracts using Huff and Yul
Ethereum Virtual Machine OPCodes
Formal verification testing
Smart contract invariant testing
Halmos, Certora, Kontrol
Security researcher
$49,999 - $120,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Guest lecturers:
Josselin Feist
Head of Blockchain at Trail of Bits
Last updated on January 17, 2025
Solidity Developer
Assembly and Formal VerificationDuration: 30min
Duration: 4h 38min
Duration: 3h 57min
Duration: 1h 56min
Course Overview
About the course
Assembly
Writing smart contracts using Huff and Yul
Ethereum Virtual Machine OPCodes
Formal verification testing
Smart contract invariant testing
Halmos, Certora, Kontrol
Security researcher
$49,999 - $120,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Guest lecturers:
Josselin Feist
Head of Blockchain at Trail of Bits
Last updated on January 17, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar