selfdriven · Institute · Research

Testing is not proof.

Formal verification proves, mathematically, that software meets its specification for every input and every reachable state. As AI writes more of the code behind identity, capital and governance, it is how institutions keep the right to trust what they run.

Read the paper Or see how the trust model changes
All states

A proof covers every input and reachable state, not the cases a test suite happened to try

Three

Things left to trust: the specification, the proof checker and the mathematics

Spec-first

Humans define intent; AI generates the implementation and its proof

Lean

The proof language behind Signal Shot, the 2026 effort to verify the Signal protocol and its Rust code

The premise

Tests sample behaviour. A proof covers every case.

Passing tests shows software behaved correctly in the cases someone examined. Hidden logic flaws, race conditions and vulnerabilities can still be there.

Formal verification states the required behaviour as a specification, then proves no input, operation or reachable state can break it. A small checker confirms the proof.

Trust the specification, not the code.

Read the paper
Keys EVERY KEY EVENT PROVED icp rot rot dip Inception Rotation Proved

Verified identity

Key rotation, witness rules, delegation constraints and revocation, proved correct for every event in the KEL rather than spot-checked.

  • KEL
  • ACDC
  • Delegation
Rules GOVERNANCE AS LOGIC inv Policy Rule Compliant

Provable governance

Machine-readable organisational rules make compliance a property the system proves before it acts, not a finding an audit discovers afterwards.

  • Governance
  • Compliance
  • Trust registries
Bounds AGENT ACTION, PROVED SAFE AI Agent Bound Verified

Constrained AI orchestration

Advanced AI can act as a discovery engine whose output is rewritten into a verifiable language and proved before it is deployed.

  • Agents
  • Orchestration
  • AI safety

The trust model

Human intent, machine proof.

Vericoding has AI generate formally verified code from a formal specification. Vibe coding generates plausible code from a prompt. In both, the machine writes the code; only vericoding produces something a checker can confirm. The human role moves from writing code to defining truth, constraints and intent.

  1. 01 · Specify

    Humans define truth

    Intent, constraints and governance are written as a formal specification. “Users only access their own data” becomes a logical rule, not a sentence.

  2. 02 · Implement

    AI writes the code

    The implementation is generated against the specification. How much code there is stops mattering, because nothing ships on the strength of review alone.

  3. 03 · Prove

    AI writes the proof

    Alongside the code comes a machine-checkable proof that no input, operation sequence or reachable state can break the rule.

  4. 04 · Check

    A small checker decides

    A lightweight proof checker accepts or rejects the proof. What is left to trust: the specification, the checker and the mathematics.

Explore

The research.

The institute’s paper on formal verification, the research it connects to, and the outside work it draws on.

The paper

From code that seems to work to code that cannot fail.

Why testing is not proof, what changes when AI writes both the code and the proof, and what that means for identity, governance and AI orchestration.

Proof languages

Four ecosystems.

From the paper’s appendix. Each blurs the line between mathematics, specification and executable software.

  • 01

    Lean

    Theorem proving and practical programming in one language. The strongest fit for AI-generated proofs and verifiable governance.

  • 02

    Rocq (formerly Coq)

    Decades of high-assurance use in compilers, kernels and cryptography. Suited to SSI protocols and trust registries.

  • 03

    Agda

    Proofs as programs, with an elegant dependent type system. Best for research and declarative models.

  • 04

    Idris

    Dependent types for everyday code, so impossible states become unrepresentable in agent runtimes and APIs.

selfdriven Foundation · Build

Specify the truth.
Let the machine prove it.