Blanc/The language

Blanc, the language.

Before it read bytes it did not write, Blanc was a way to write bytes that are easy to verify: the EVM’s own instructions, arranged by four constructors, with a compiler whose correctness is a Lean theorem.

Its former ten-contract corpus (seven ports, three études) is an archive-era exhibit. Historical exhibits outside paper v2 are preserved in the archived corpus (link below); the execution-history, settlement and liveness machinery they needed is what the verification of deployed bytecode now stands on.

The whole syntax

Four constructors, and nothing else.

inductive Func : Type
  | branch : Func → Func → Func
  | last : Linst → Func
  | next : Ninst → Func → Func
  | call : Nat → Func

structure Prog : Type where
  (main : Func)
  (aux : List Func)

A Func is a branch on the top of the stack, a terminal instruction, a straight-line instruction followed by more code, or a call into the program’s table of functions — branch, last, next, call. There are no expressions, no variables and no loops as syntax: the instructions are the EVM’s own, and recursion through call and the machine’s stack is all there is, which is exactly what a proof has to walk (Blanc/Semantics.lean).

One liberty of raw bytecode is withheld: computed jump targets. Control flow is the tree you wrote, and the compiler owns every offset. That single restriction is what makes a reusable proof stack possible — inversion tactics that take an execution apart along the program’s own shape, and forward tactics that build one, gas included, without per-contract jump reasoning.

Nothing taken on its word

The compiler is a theorem.

Between a Blanc program and the chain sits exactly one artifact, the compiler, and it enters the theorems rather than the trust base. Its correctness is a backward simulation: every successful EVM execution of the compiled bytes is a run of the source program, so a property proved of the source is a fact about what the EVM executes.

theorem correct (sevm : Sevm) (pre : Devm) (p : Prog) (post : Devm)
    (exc : Exec 0 sevm pre (.ok post))
    (eq : some sevm.code.toList = p.compile) :
    Prog.Run sevm pre p post

For liveness a proof must go the other way and construct an execution. A gas-exact companion relates a run of a compiled program to a successful execution of its bytes in both directions, for programs that do not read their own program counter:

theorem Prog.runCompiled_iff_exec {sevm : Sevm} {pre : Devm} {p : Prog}
    {post : Devm}
    (h_pcf : Prog.pcFree p = true)
    (h_eq : some sevm.code.toList = p.compile) :
    Prog.RunCompiled sevm pre p post ↔ exec ⟨0, sevm, pre⟩ = .ok post

By itself this is not liveness for any contract: it converts run witnesses into executions and back, at the level of one frame. Liveness theorems are built on it, contract by contract.

Why write in it

What writing in Blanc buys.

Reading deployed bytes, Blanc proves what the bytes allow. Writing them, it can also choose bytes that make the proof easier and the contract cheaper. The dividends below are stated as design intent.

Authoring lets one choose proof-friendly layouts; that design intent is stated abstractly here, with its historical instances archived.

A stratum of its own

Two verified contracts at once.

Contracts are siblings in the import hierarchy: no contract’s module imports another’s, and a gate enforces it. A theorem that genuinely needs two contracts lives in a composition stratum downstream of all of them. The retained Curve 3pool–3Crv composition is described in the claim map; former native-contract compositions are archived.

Historical exhibits outside paper v2, including WETH9, Beacon deposit, Lido, Uniswap and Blanc-native programmes, are preserved in the archived corpus. The archive is outside the live corpus and is not promised to build against later revisions.

The rules

What a port claims.

A port does not claim to be its reference, to the byte; that is a non-goal, permanently. It claims a counterfactual: were the reference being written today, the Blanc implementation would be a better way to build it — behavior that follows a stated, proved specification; an artifact small enough to stay within reach of interactive proof; low-level freedom spent on measured wins. Deviations from the reference are governed, not forbidden: each is a register row with a stance and evidence, and leaving a known divergence unrecorded is the one prohibited move. A port’s theorems concern Blanc’s artifact. Verifying a deployed original is a separate subject, with its own statements and premises in the claim map. PORTING.md governs.

The fee

What it costs.

A new, deliberately bare language, austere twice over: once to write a contract in four constructors over raw instructions, once to prove it in an interactive theorem prover. There is no Solidity or Vyper syntax, no framework, no library to import beyond what earlier contracts proved, and no auditor already fluent in the source language. For contracts whose invariants are worth more than their development cost — wrappers, vaults, registries, anything whose one job is to keep the books — that trade can be worth making. For code already deployed, it is no longer a trade at all: Blanc reads the bytes that exist.