What do you want to prove about your Solidity code?
Where proofs can attach
Toolchains that verify Solidity directly, and those that verify what it compiles to. A proof about compiled code also relies on the compiler that produced it.
- Your codeSolidity
- Intermediate code Proofs here are about the code the compiler produced
Verify Solidity directly
Ranked by stage, feature coverage and trust.
| Toolchain | Stage | Trust | Effort | Feature coverage |
|---|---|---|---|---|
| Kontrol Write properties as Foundry tests in Solidity; Kontrol checks them for all inputs by symbolically running the compiled EVM bytecode on KEVM. | Stage 2 · Production | 3/5 | Auto-active | 2/11full, 7 partial |
| Certora Prover Write rules and invariants in Certora's spec language (CVL); an SMT-based prover checks them against your contract's compiled EVM bytecode. | Stage 2 · Production | 2/5 | Auto-active | 2/11full, 3 partial |
| Solidity SMTChecker Turn on a Solidity compiler option and it tries to prove your assert statements and the absence of overflow, division by zero and out-of-bounds access. | Stage 1 · Usable | 1/5 | Push-button | 5/11full, 2 partial |
Feature coverage
Which language features each toolchain handles. Hover or focus a mark for the note and source. Toolchains on compiled code are shown for common features only.
| Feature | Kontrol | Certora Prover | Solidity SMTChecker |
|---|---|---|---|
| Common features | |||
| Machine integersFixed-width integer arithmetic, overflow and bit operations. | Kontrol, Machine integers: Supported.256-bit EVM words and their arithmetic are modeled exactly by KEVM. Source | Certora Prover, Machine integers: Supported.Bitwise operations are over-approximated by default (sound, but can give false counterexamples); the precise_bitwise_ops option models them exactly. Source | Solidity SMTChecker, Machine integers: Supported.Integers become mathematical integers with range checks. Bitwise operations need bit-vector reasoning, which solvers find hard: the SolCMC paper rewrote one '&' as '%' so that a proof of the Ethereum deposit contract went through. Source |
| Floating pointIEEE 754 floating-point arithmetic, including rounding and NaNs. | Kontrol, Floating point: Not applicable.Solidity has no floating point; fixed-point types can be declared but not assigned. Source | Certora Prover, Floating point: Not applicable.Solidity has no floating point; fixed-point types can be declared but not assigned. Source | Solidity SMTChecker, Floating point: Not applicable.Solidity has no floating point; fixed-point types can be declared but not assigned. Source |
| Heap and pointersDynamically allocated memory, pointers or references, and aliasing. | Kontrol, Heap and pointers: Partial.EVM memory is modeled byte by byte, but data whose size is symbolic is not supported; tests must choose concrete sizes. Source | Certora Prover, Heap and pointers: Unknown.How Solidity memory is modeled is not described in the docs we read. | Solidity SMTChecker, Heap and pointers: Unknown.How memory and storage references that point to the same data are handled is not described in the docs. |
| Arrays and buffersIndexed memory such as arrays, slices, vectors and byte buffers. | Kontrol, Arrays and buffers: Partial.Dynamic arrays and bytes need concrete lengths chosen in the test; the docs say symbolic lengths are not supported. Source | Certora Prover, Arrays and buffers: Unknown.Limits on arrays are not described in the docs we read; loops over arrays are bounded (see Loops). | Solidity SMTChecker, Arrays and buffers: Supported.Arrays, mappings, bytes and strings are SMT arrays with a length; push and pop are modeled precisely and out-of-bounds access is checked. Source |
| LoopsUnbounded loops, which need invariants or bounds to verify. | Kontrol, Loops: Partial.Loops are unrolled up to a bound (--bmc-depth), or need an invariant written by hand as a K claim over the bytecode, proved, and then added as a rule. Source | Certora Prover, Loops: Partial.Loops are unrolled a fixed number of times (loop_iter, default 1). By default a run that needs more iterations is reported as a violation, which is sound; optimistic_loop instead ignores such runs and is unsound. No loop invariants. Source | Solidity SMTChecker, Loops: Supported.The CHC engine handles loops by finding invariants automatically. If the solver gives up, the warning says the failure "might happen". The deprecated BMC engine ignores loops. Source |
| RecursionFunctions that call themselves, directly or through others. | Kontrol, Recursion: Unknown.Not documented. | Certora Prover, Recursion: Unknown.The docs describe limits for recursion through summaries and between linked contracts (default 0), but not for plain recursive Solidity functions. Source | Solidity SMTChecker, Recursion: Unknown.CHC uses function summaries for internal calls; the docs do not say how recursion is handled. BMC does not inline recursive calls. Source |
| Higher-order codeFunction pointers, closures and callbacks. | Kontrol, Higher-order code: Unknown.Calls through Solidity function-type values are not documented. | Certora Prover, Higher-order code: Unknown.Calls through Solidity function-type values are not described in the docs we read. | Solidity SMTChecker, Higher-order code: Unknown.Function types are not in the docs' list of supported types. Unsupported constructs are over-approximated (sound, but may give false alarms). Source |
| Threads and shared memoryConcurrent threads with locks, atomics or message passing. | Kontrol, Threads and shared memory: Not applicable.The EVM has no threads. | Certora Prover, Threads and shared memory: Not applicable.The EVM has no threads. | Solidity SMTChecker, Threads and shared memory: Not applicable.The EVM has no threads. |
| I/O and system callsFiles, network, system calls and foreign-function calls. | Kontrol, I/O and system calls: Not applicable.Contracts have no file or network I/O. Foundry's file, environment and FFI cheatcodes are listed as not yet implemented in Kontrol. Source | Certora Prover, I/O and system calls: Not applicable.Contracts have no file or network I/O. | Solidity SMTChecker, I/O and system calls: Not applicable.Contracts have no file or network I/O. |
| Standard librarySpecifications or models for the language's standard library. | Kontrol, Standard library: Partial.keccak256 results stay symbolic; Kontrol ships a set of keccak lemmas to reason about them. Library code such as OpenZeppelin is checked as ordinary bytecode. Source | Certora Prover, Standard library: Partial.keccak256 is modeled as an arbitrary injective function with large gaps, not the real hash. Library code such as OpenZeppelin is analyzed as ordinary bytecode. Source | Solidity SMTChecker, Standard library: Partial.keccak256, ecrecover, ripemd160, blockhash and the ABI encoding functions are uninterpreted functions, so their actual results are unknown to the checker. Source |
| EVM-specific features | |||
| GasGas accounting and out-of-gas behavior. | Kontrol, Gas: Partial.Gas is not computed by default; the --use-gas flag turns on KEVM's gas model. Source | Certora Prover, Gas: Unknown.The docs we read do not describe gas accounting. | Solidity SMTChecker, Gas: Not supported.Gas is not modeled; gasleft() is abstracted. Source |
| StoragePersistent contract storage. | Kontrol, Storage: Supported.Storage can be made fully symbolic with the symbolicStorage cheatcode. Source | Certora Prover, Storage: Supported.Specs can read storage and track writes with hooks and ghost variables. Source | Solidity SMTChecker, Storage: Supported.State variables and mappings are tracked across any number of transactions (CHC engine). Source |
| External callsCalls to other contracts, including reentrancy. | Kontrol, External calls: Partial.Calls into contracts deployed in the test run on KEVM, so reentrancy through known code is covered. We found no documented way to model arbitrary unknown callee code; the docs suggest mocking external calls (mockCall). Source | Certora Prover, External calls: Partial.Calls to contracts in the verification scene are resolved. Calls to unknown contracts are replaced by summaries; the default for ordinary calls (HAVOC_ECF) assumes the callee does not re-enter the caller, which the docs call unsound. HAVOC_ALL is sound but must be chosen. Source | Solidity SMTChecker, External calls: Supported.External calls are treated as unknown code that can do anything, including calling back into the contract. A trusted mode uses the known callee code instead; the docs warn it can be unsound if its assumptions are inconsistent. Source |
| PrecompilesBuilt-in contracts such as hashing and elliptic-curve operations. | Kontrol, Precompiles: Partial.KEVM computes precompiles only on concrete inputs, and Osaka's P256VERIFY precompile is missing. Source | Certora Prover, Precompiles: Unknown.Not described in the docs we read. | Solidity SMTChecker, Precompiles: Partial.ecrecover and ripemd160 are uninterpreted functions; precompile results are not computed. Source |
Supported Partial Not supported Unknown
Formal semantics of Solidity
Models that proofs about Solidity can be stated against. See formal semanticsFormal semantics. A precise, mathematical definition of what programs in a language do..
None in the index yet.
Compilers from Solidity
What each compilation step preserves, and whether it is proved.
| To | Via | Assurance | What does not carry over |
|---|---|---|---|
| EVM bytecode | solc | trusted | Source types and specifications Source-level control structure (the optimizer may rewrite it) |