Smart-contract formal verification
Prove your contracts behave as specified.
A specification states what a function must do. CertiK Prover checks that statement against your Solidity code for every allowed input and starting state within a stated scope, which no set of test cases can show on its own.
Cases
//@ invariant \sum_of(balance) == totalSupply;//@ assignable balance[to], totalSupply;function mint(address to, uint amount) public {balance[to] += amount;totalSupply += amount;}
Property
mint() should preserve equality between total supply and the sum of all account balances.
- Spec crafting
- Source parsed
- Constraints generated
- Automated proverProven
Tests and proofs
A test checks the cases you wrote. A proof checks every case in scope.
- Example-based test
- Runs chosen inputs from a chosen starting state and checks the observed execution.Evidence for the cases that were executed.
- CertiK Prover obligation
- Reasons about the allowed inputs and starting states in the confirmed task, and checks whether the selected property follows from the code.A general claim within the stated scope, not a claim about unspecified behavior.
Capabilities
Claims range from one call to a whole scenario.
Each level below is a kind of claim CertiK Prover can check. Choose the smallest one that states your property; a verification task may combine several.
//@ ensures balance == \old(balance) - amount;//@ ensures \result == balance;//@ assignable balance;//@ reverts_when amount > balance;//@ reverts_only_when amount > balance;
Function
function withdraw(uint256 amount) public returns (uint256);
Industry standards
The highest assurance levels point to formal verification.
Security standards reserve their strongest assurance for mathematical proof. CertiK Prover brings that method to your Solidity code.
OWASP · SCSVS
Level 3, High Assurance
“Tailored for mission-critical smart contracts … covers advanced protections such as formal verification.”
Utilizing the SCSVS (opens in a new tab)EEA · EthTrust Security Levels v3
[GP] Use Formal Verification
“Formal verification can make guarantees that fuzzing and testing cannot provide.”
EthTrust v3, §5.4 (opens in a new tab)ISO/IEC 15408 · Common Criteria
EAL7, Formally verified design and tested
“Applicable … in extremely high-risk situations and/or where the high value of the assets justifies the higher costs.”
CC:2022 Part 5, §4.4.8 (opens in a new tab)ACPR · AMF (France)
Smart-contract certification working group, 2025
“Its purpose is to provide the highest possible level of assurance as to the validity of the code.”
Working-group report, Part 2 §1.2.3 (opens in a new tab)
User guide
Get started with CertiK Prover.
- 01Quick startInstall the command-line tools or sign in to the web app, and run a first check.
- 02BasicsWhere specifications live in your Solidity files and how CertiK Prover reads them.
- 03Your first specificationDescribe one function step by step and read the counterexamples CertiK Prover finds.
- 04Security propertiesProtect access, balances, and supply: a tour of what specifications can guarantee.
- 05Logic and quantifiersImplication, `\forall`, `\exists`, and arithmetic that never overflows.
- 06Contract-wide propertiesInvariants and constraints that hold across every transaction.
- 07Cases and modifiersSplit behavior into cases with `also`, and specify what modifiers do.
- 08LoopsLoop invariants, loop frames, and termination.
- 09Quick referenceEvery form in this guide: what it means, where it goes, and where it is taught.