LiveEthereum from genesis to the tip, and Arc — re-executed as blocks land →
Formal methods · Execution layer

EVM blockchains in Lean.

Why replay blockchains?

Blockchain technology assumes that anyone can verify every fact cryptographically by replaying the ledger. But we are dependent on a few handcrafted implementations. Can we trust them? What if we recalculate all state by code derived from a formal model?

How is Eita built?

Eita is built using formal specifications of the EVM in Lean 4. Both the specs and proofs are AI-generated. The process is pragmatic, iterative and controlled: we make as many components correct by construction as is practical, for a production implementation that is correct, robust, hackable and malleable.

Free build notes: the vericoding journey, building a formally specified EVM with AI agents.

Hosted on Substack: a note now and then; unsubscribe from any mail. PrivacyRead past notes →

What’s proved, and what’s checked
  • Ethereum mainnet from genesis to the chain tip, replayed bit-exact — and following it live. every block’s gas, logs bloom, receipts and transactions roots match · the full state root checked on a schedule, every 10,000 blocks at the tip · over 170M accounts and 690M storage slots checked, every block
  • Every fork from Frontier to Osaka, with Amsterdam staged — one Lean specification. EELS-tracked, clause by clause · the executable is generated from the spec · opcode-level proofs: 202 of 203 (crypto inside the precompiles is a declared oracle: blst, OpenSSL) specified · proofs in progress
  • The state transition itself — calls, creates, storage, transactions, blocks — derived from Lean. ten effect-layer proofs · gas formulas emitted from the spec · native ARM64 and x86-64 backends verified ∎
  • A parallel transaction schedule, proven to produce exactly the state of running the block in order. Block-STM refinement theorem · validation proven necessary · executor derived next verified ∎

What is proved, what is checked as it runs, and what is trusted: how it’s verified →

Architecture

One specification. One streaming engine.

The Lean specification is the only place the EVM’s rules are written. Everything that executes is generated from it, and everything the engine produces is checked against the chain as it runs.

Specification

Lean 4, clause by clause

The Ethereum execution specs, ported fork by fork. Gas, state effects, and the parallel schedule are theorems, not comments.

Derivation

Emitted, not hand-written

The host effect layer and gas formulas are emitted from the spec; a gate re-checks every proof on each change.

Backends

Native code

Opcode handlers for ARM64 and x86-64, a JIT for hot contracts, and a Common Lisp host you can open up while it runs.

the engine, one stage per core  →
1 · decode

Block input

Blocks, receipts and uncles decoded straight from bytes into typed values, ahead of execution.

2 · execute

Replay

Transactions run in order against an in-memory hot set; cold state is read from the snapshot through an in-memory index.

3 · verify

Every block

Gas, bloom, receipts and transactions roots recomputed and compared. Nothing durable claims an unverified block.

4 · record

Fact log

Every call, log, transfer and state change into a binary columnar log with a history index — one encoder lane per table.

5 · persist

Layered snapshots

The hot set freezes into a delta layer in 0 ms; layers compact into a new base in the background, where the full state root is checked.

Current numbers

Fast enough to follow the chain — and getting faster.

26.4M
Ethereum mainnet blocks replayed from genesis, all verified, and following the tip
2.12
Ggas/s re-executing recent mainnet blocks on a Google Cloud VM (benchmark)
1.22×
revm, the EVM inside reth, on the same machines and the same blocks
0 ms
replay pause at a snapshot; the state root is checked in the background
  • DoneThe Merge, and the chain tip.Every block from genesis to today, by the same engine and the same specification; new blocks are checked before they are recorded.
  • Done2 Ggas/s, executing in order.A median 2.12 Ggas/s on Google Cloud, 1.22× revm measured on the same VMs, with every block checked against the chain.
  • NextReplay from slower, cheaper storage.Prefetch driven by the blocks ahead, so a full replay runs from network disks, hard drives or cloud object storage, not only fast local SSDs.
  • ThenParallel execution, from the proof.The Block-STM schedule is already proven equivalent to running the block in order; the executor is derived from that theorem.

As of 9 November 2026.

The idea

Vibecoding is fast, but unproven. Put a machine-checked specification between the AI and the code, and you keep the speed — with a proof underneath.

The model writes the implementation; a formal proof in Lean is the gate. The aim is software correct by construction, not correct by hope. Eita is that approach applied to a whole EVM — built by one engineer and the verification loop, with the proofs still open listed in the repository.

Why it matters

When the code moves money, correctness can’t be a hope.

For programmable money, a single execution or accounting bug is a consensus split, a frozen settlement, or a regulatory event. Today that risk is held back by audits and testing — best effort, not proof. Eita turns “trust us” into “here’s the proof”: a verified execution and state engine that indexers, block builders, and searchers can all build on, knowing the state they see is exactly the state the chain produced.

From the EVM outward
01 · now

Verified execution

An EVM engine specified in Lean, a conformance harness and a differential oracle — the correctness backstop for a chain and the state substrate beneath its tooling. Built so that a full execution client is a small step away.

02 · next

Verified contracts

AI-generated stablecoin-finance contracts — paymasters, FX, upgrades — written against machine-checked specs and shipped with their proofs.

03 · horizon

Systems, firmware, silicon

The same method beyond the EVM: Lean specifications with the implementation derived from them, for systems software, firmware and hardware down to RTL on open silicon. The techniques that verify an EVM matter even more for secure hardware, where a bug is etched into silicon: the next frontier.