Proveit.

Formal verification, Lean, and how AI is learning to check its own work.

Featuring: an exploding rocket, a buggy chip and a very confident chatbot.

01 · June 4, 1996 · Kourou

Ariane 5.

Mission clockT−3.0
horizontal_biasfloat64 → int16 · reused from Ariane 4
0max int16 = 32,767
Operand error → guidance computer down → its error code read as flight data
Press → to launch
$370M

Tested for years. Never on Ariane 5's trajectory.

02 · October 1994

Pentium
FDIV.

A maths professor's new chip got division wrong.

5 missing table entries Intel: once per 27,000 years IBM: every 24 days $475M write-off
The famous division
Correct
Pentium
Both were tested · so what's wrong with testing?

Let's vibe-code something.

You → AI

Six tests passed.
It still prints money.

wallet.js · written by AI

    
✓ 0 passed✗ 0 failed
Ship it?
So how would you know for sure?

Tests check a few points.

A proof checks every one.

The rule · my one equation (ish)

balance after ≤ balance before

For every balance. For every amount.

the fix · one line
if (amount <= 0) return balance;
↓ the 6 amounts we tested
−∞−500100+∞
✗ stuck: −50 makes it go up
✓ Proved for every amount
Paris, 1998

Metro Line 14.

Driverless. Proved with the B-Method before a single passenger boarded.

14
no driverPROVED
0

lines of safety code

0

proofs

0

bugs found in the proved code since

Chips and trains could afford it.

Everyone else couldn't.

One proof, by hand
0years

Rooms of PhDs. Years. Heroic amounts of coffee.

Meanwhile, in another lab
AlphaFold · biology

Protein structures

Humans · 50 yrs
~170K
AI
0

PREDICTED BY AI

GNoME · materials

New crystals

0

PREDICTED BY AI · 380K STABLE

Close enough is fine here.

Near the bullseye? A lab checks the rest.

Lab checks the rest ✓
July 2025 · a vibe-coding experiment

“Code freeze. Don't change anything.”

It deleted the database anyway.

Code freeze · Code freeze · Code freeze · Code freeze
production database
1,206 executives1,196 companies
Deleted
AI agent

The rule was written down. Nothing checked it.
So here's where we are
AI

Guesses brilliantly.

Has no idea when it's wrong.

?
+
Proofs

Never wrong.

Cost a room of PhDs and years.

✓

What if the AI
wrote the proofs?

Lean · Microsoft Research, 2013

Meet the strict checker.

Lean is a spell-checker for logic. Skip a step and it refuses, unless you type sorry.

wallet.lean
Lean infoview
⊢ withdraw b a ≤ b
waiting for code…
2023 · PFR conjecture

Lean found a gap in Terence Tao's paper.

On a conjecture of Marton
Gowers · Green · Manners · Tao
Lemma 5.1
Lemma 5.2
Proposition 5.3
Lemma 5.2: missing a hypothesis
~3 wks

to formalise the proof in Lean

5.2

the lemma missing a hypothesis

Minor

easy fix, but all four authors missed it

Meanwhile, Lean got popular

It's not just Tao.

Mathematicians, AI labs and cloud companies are all checking their work in Lean now.

Mathematicians

Mathlib

A shared library of checked maths that keeps growing. Like Wikipedia, if every edit had to pass an exam.

✓ checked
A 350-year-old problem

Fermat's Last Theorem

Kevin Buzzard's team is moving its proof into Lean. A five-year plan. Bring snacks.

⏳ in progress
AI · 2024

Maths Olympiad

DeepMind's AlphaProof wrote Lean proofs on the way to silver-medal level at the IMO.

✓ checked
Cloud

AWS Cedar

Amazon's language for "who can access what" has key properties proved in Lean.

✓ checked
The loop
AIguesses a proof LEANjudges it

AI guesses. Lean judges.

Once it compiles, you don't have to trust the AI.

✗ Rejected
0
✓ Proved
0
PutnamBench · 2026
000/672

The Putnam is a famously brutal university maths contest. By 2026, AI agents had proved every problem in the benchmark, in Lean.

4

teams have now solved all 672

$0.17

per problem, cheapest run

Open

the cheapest one is open source

Cost per problem · all four solved 672
Aleph ProverLogical Intelligence
$74.00
HumanfiaGPT-5.6
$44.50
ForallClaude Opus 5
$3.52
NEAR AIDeepSeek V4
$0.17
$0.17per proved problem

Self-reported, measured differently · PutnamBench leaderboard, Oct 2026

The AI caught the humans.

Two benchmark problems were stated wrong. They were fixed upstream.

Official problem statement
✗ stated wrong ✓ fixed upstream
So what changes?

Proofs used to happen once.

Like a wedding. Expensive, stressful, and you only plan to do it once.

Now they can run on every change.

git log · every commit, proved
9c41e2aadd withdrawal limit✓ proved
3b7d0f1refactor fee maths✓ proved
e82a5c4rename variables✓ proved
51f9b3dquick hotfix, trust me✗ proof failed
0d6ce77actually fix the hotfix✓ proved
Five years from now

↑
Agent · planning across 3 chains…

Sounds great. Also sounds exactly like how people lose their savings.

Maybe: before it moves a single rupee, a proof it follows your rules.

Full disclosure

So where does NEAR fit in?

Plot twist: it started as an AI company.

2017

NEAR.AI

Teach machines to write code from English.

2018

Paying data labellers

Cross-border micropayments didn't work.

2020

NEAR Protocol

They built the payment rails themselves.

2024

NEAR AI

Back to AI. Now running one of those Lean agents.

What they're doing with it

Next target: its own code.

The goal · proving queue
protocol
lockup
staking-pool
multisig
voting
w-near
…then your contracts
Illia Polosukhin · Oct 2, 2026

“Our ultimate goal is to formally prove the protocol and all the core contracts, and to provide a practical tool for others to formally verify their contracts in a fast and affordable way.”

Honestly

Things I still don't know.

?

Who writes the rules?

A proof of the wrong spec is still a proof. Just of the wrong thing.

?

Can AI write the rules too?

Then who checks the rules?

?

Who checks the checker?

Lean is software too. Small and well-reviewed, but still software.

?

Will anyone use it?

We all agree tests are good. Some of us even write them.

✓ PROVED
Remember the rocket?

Tested for years. Gone in 37 seconds.

Can youprove it?

Thank you Questions? I may have to type sorry.
→ / space next · ← back · N notes · P presenter · R replay · F fullscreen
00:00