{"refreshDue":false,"initiative":{"id":"01M5MAKDMCM05EYB6HWDWJFDNY","slug":"formally-verified-evm-for-ethereum","title":"Nethermind: Formally Verified EVM for Ethereum","summary":"Nethermind will extend LeanCIL to verify the Amsterdam EVM in its zkVM guest. The proof will link Ethereum's rules in Lean to compiled .NET CIL and optimised RISC-V. Nethermind will check EthLib definitions before reuse and publish proofs tied to the guest's exact build, identifying methods shared with the regular client. Adoption requires two independent operators publishing mainnet block proofs for 30 consecutive days and 20% of observed Ethereum execution nodes running a release with the shared methods.","details":"","discourseUrl":"","goalUsd":266000,"status":"approved","type":"grant","sortRank":null,"safeAddress":"0x166Ce9a5c29B7743A45e8D5e53198876a79Fe725","paidOutUsd":0,"proposer":"0xC874E7795BA38882459Cd6527f77865fCc57bcbe","durationMonths":9,"recipientTeam":"Nethermind","recipientUrl":"https://www.nethermind.io/","topup":false,"milestoneReviewer":"","categories":["formal-verification","infrastructure"],"sections":{"why":"A zkVM proves that a guest program ran. It cannot show whether the program implements Ethereum correctly. Wrong opcode results, gas charges or state updates can produce valid proofs of invalid Ethereum results. Bugs in EVM code shared with the regular client may also affect ordinary nodes.\n\nNethermind will prove its Amsterdam EVM against an independently reviewed Lean specification, through CIL and optimised RISC-V. The team will check EthLib definitions against Ethereum specifications and fixtures before reuse. A public manifest will identify proved methods that also appear unchanged in regular-client builds. The proof excludes production-only methods and JIT-generated code.\n\nLeanCIL could also help verify C# components of other Ethereum projects. Nethereum provides .NET libraries for transaction signing, wallets and EVM interaction, alongside tooling for Solidity development in VS Code. Applying LeanCIL to Nethereum would require separate work beyond this grant.","in_scope":"- Extend EVMYulLean to Amsterdam using reviewed EthLib definitions and lemmas. Check fork rules, gas charges and state changes against Ethereum specifications and fixtures.\n- Extend LeanCIL for the CIL instructions and .NET runtime behaviour reached by the EVM. Bind proofs to method bytes and metadata, automate checks and prove all reachable EVM-owned methods.\n- Extend `il2rv64` to prove that the optimised RISC-V code matches the compiled CIL, then compose the refinement proofs.\n- Prove precompile dispatch, gas charges, return data and failures under explicit contracts, excluding their algorithms.\n- Publish proofs, coverage, assumptions, build identities and comparisons of proved methods shared with the regular client.\n- Measure independent Ethereum nodes running a release containing those methods.","out_scope":"- Formal verification of the entire regular Nethermind EVM or its JIT-generated code. Production CIL that differs from the guest is excluded.\n- Precompile algorithms, the full stateless guest, witness and SSZ processing, tries, block orchestration and zkVM provers.\n- Completion of LeanCIL for arbitrary .NET programs, all EthLib modules, other clients, L2 plug-ins or native targets.","team":"- **Ben Adams, Principal Engineer (LeanCIL & Nethermind):** Nethermind EVM, state and zkVM contributor; co-author of 15 Core EIPs; .NET runtime and ASP.NET Core contributor; twelve-time Microsoft MVP. Leads compiled CIL proofs. [Contributions](https://github.com/NethermindEth/nethermind/pulls?q=is%3Apr+is%3Amerged+author%3Abenaadams) · [LeanCIL](https://github.com/NethermindEth/LeanCIL).\n- **Maxim Menshikov, Senior Engineer (il2rv64):** Security researcher and .NET Runtime contributor with completed doctoral studies focused on abstract interpretation and model checking of real-world applications. Developer of Nethermind’s [bflat-riscv64](https://github.com/NethermindEth/bflat-riscv64) compiler supporting ZisK, SP1 and OpenVM. Leads machine-code refinement proofs. [Google Scholar](https://scholar.google.com/citations?user=pSDXCfIAAAAJ&hl=en) · [GitHub](https://github.com/maximmenshikov).\n- **Julian Sutherland, PhD, Head of Formal Verification (EVMYulLean):** Imperial College London PhD, with publications at ECOOP, ESOP and ACM TOPLAS. Leads the Amsterdam semantics work. [Imperial profile](https://vtss.doc.ic.ac.uk/people/sutherland.html) · [EVMYulLean](https://github.com/NethermindEth/EVMYulLean).\n- **Łukasz Rozmej, Ethereum Core Developer:** Nethermind contributor and AllCoreDevs participant. Reviews Amsterdam requirements and shared EVM integration. [GitHub](https://github.com/LukaszRozmej) · [Contributions](https://github.com/NethermindEth/nethermind/pulls?q=is%3Apr+is%3Amerged+author%3ALukaszRozmej).\n\nPrevious Ethereum Foundation funding supported Cancun formalisation.","why_grant":"LeanCIL is being built to verify compiled .NET code, including Nethermind's EVM. It proves supported CIL methods and composes contracts. Its instruction model, runtime support and proof automation do not yet cover the full EVM. This grant funds the missing capabilities and the EVM proofs.\n\nEVMYulLean and `il2rv64` provide starting points for the other proof stages. EthLib defines and proves EVM rules in Lean, with some Amsterdam gaps. Nethermind will review these components before reuse, reducing duplicate work.","commitments":"- Publish all Nethermind-owned project code, specifications and proofs for LeanCIL, EVMYulLean and `il2rv64` under dual MIT OR Apache-2.0 licensing, at the user's choice. Record the pinned EthLib revision; reused upstream EthLib code retains its CC0-1.0 licence.\n- Nethermind will maintain LeanCIL and the EVM correctness proofs after the grant and update coverage for later Ethereum forks.\n- Prove the complete Amsterdam zkVM EVM, including precompile invocation, and publish trusted assumptions and external contracts.\n- Review reused EthLib components and report discrepancies, test results and proof assumptions separately from evidence of Ethereum conformance.\n- Describe regular-client benefits only for identical, proof-covered methods. Exclude duplicate node observations and known Nethermind-operated nodes from adoption counts."},"milestones":[{"name":"Reviewed Amsterdam specification and EthLib reuse","amount":40000,"adoption":false,"done":false,"link":"","month":"","criteria":["Publish Amsterdam EVM semantics in Lean with opcode, gas, call and state coverage. The reviewer checks fork rules, reused EthLib definitions, corrections and the EVMYulLean bridge.","Public CI runs pinned Ethereum fixtures and differential EthLib tests. The reviewer reproduces results, documented disagreements and proof-dependency checks."]},{"name":"Verified zkVM EVM CIL","amount":55000,"adoption":false,"done":false,"link":"","month":"","criteria":["Publish LeanCIL conformance tests for all CIL instructions and modelled runtime operations used by the EVM, with documented external-contract exclusions. The reviewer checks coverage.","LeanCIL proves every EVM-owned method reachable from the interpreter against compiled bytes and metadata. The reviewer reproduces CI checks rejecting unproved paths and altered builds."]},{"name":"Verified zkVM RISC-V refinement","amount":45000,"adoption":false,"done":false,"link":"","month":"","criteria":["`il2rv64` proves that the RISC-V code for all EVM-owned methods matches their CIL. Public CI ties certificates to CIL and machine-code hashes.","The reviewer reproduces checks and audits runtime, ABI, linker and precompile assumptions."]},{"name":"Composed EVM theorem and shared-code evidence","amount":36000,"adoption":false,"done":false,"link":"","month":"","criteria":["Publish a Lean-checked theorem connecting Amsterdam semantics to CIL and RISC-V. The reviewer reproduces the proof.","Publish a CIL comparison of the guest and regular client. The reviewer checks identical proved methods, excluded differences and production release mapping."]},{"name":"Independent Ethereum zkVM and node adoption","amount":90000,"adoption":true,"done":false,"link":"","month":"","criteria":["At least 2 operators independent of Nethermind publish Ethereum mainnet block proofs with the proof-covered Nethermind guest for 30 days. The reviewer checks independence, proof records and build identities.","At least 20% of independently observed, synced Ethereum mainnet execution nodes advertise a Nethermind release containing documented shared EVM methods. The reviewer checks crawler records, distinct identities and exclusion of Nethermind-operated nodes.","The reviewer matches counted builds to the shared-method manifests and zkVM proofs, identifying production code outside the proof."]}],"links":["https://github.com/NethermindEth/nethermind","https://github.com/NethermindEth/LeanCIL","https://github.com/NethermindEth/bflat-riscv64","https://github.com/NethermindEth/EVMYulLean","https://github.com/ethereum/EthLib","https://nethereum.com/","https://github.com/NethermindEth/nethermind/tree/master/src/Nethermind/Nethermind.Stateless.Guest","https://www.ethernodes.org/","https://ethproofs.org/learn"],"structured":true,"revision":4,"createdAt":1792757315.212,"approvedAt":1793177827.405},"revisions":[{"n":1,"author":"0xC874E7795BA38882459Cd6527f77865fCc57bcbe","source":"submit","archived":false,"state":"live","createdAt":1792757315.212},{"n":2,"author":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","source":"admin","archived":false,"state":"live","createdAt":1793016670.051},{"n":3,"author":"0x7767FB920338eED6Fe68A4d7C411f84a3F24f20c","source":"admin","archived":false,"state":"live","createdAt":1794558762.633},{"n":4,"author":"0xC874E7795BA38882459Cd6527f77865fCc57bcbe","source":"proposer","archived":false,"state":"live","reviewedBy":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","reviewedAt":1794884836.953,"createdAt":1794841697.888}],"summary":{"pledged":67000,"received":0,"donated":0,"total":67000,"live":true,"refreshDue":false,"ledger":0,"paidOut":0},"onBallot":true,"pct":25.2,"pledges":[{"id":"01M6DGF4Y9DB9R4J8PBVYZR4AY","company":"Nethermind","amountUsd":67000,"status":"pledged","note":"","url":"https://www.nethermind.io/","logoUrl":"https://ipfs.blossom.software/ipfs/bafkreihegxmc7zyafhupp6fgrupzpw7iwj4lte32uhzsasnnahim6emkfq","createdAt":1793602327.497}],"donations":[],"funded":false,"donationsEnabled":true,"ledger":{"checkedAt":1795847504.184,"ok":true,"intervalMinutes":10,"refreshDue":false,"updating":false}}