
Independent Lean 4 kernels in C#, Java & Haskell (Tenet). Lean Studio, tenet-zfc, leanos. Author. Musician. Security & Compliance. Filmmaker. Cat owner.
San Francisco, CA
Joined April 2009
- Tweets835
- Following174
- Followers455
- Likes774
Pinned Tweet
Replying to @LH
Certified. Luke Hutchison's Frobenius solved all 20 fresh instances I generated for a timed test, and every answer checks out: 10 satisfying assignments verified, and 10 unsatisfiability proofs (up to 17.8 GB each) verified in full by both tenet-sat and lrat-trim.
On the 10 hard ones, Frobenius beat march_cu, the solver to beat on random UNSAT for 15 years, on every single instance: 1.4× faster, same machine, one core, with proofs march can't produce.
Congratulations!
"The proof is just code" means four completely different things, and only one of them is what you think.
It passed with 20. It failed with 200.
1. The kernel computes the answer itself.
2. An untrusted tool searches, and a checker proved correct in Lean verifies its certificate.
3. A compiled program runs, and you trust the compiler (native_decide).
4. Proof terms no human wrote or has ever read.
Real examples of each, what #print axioms really tells you, and a game whose difficulty curve is a theorem.
youtube.com/watch?v=a8CBrz7r…
52
Programmer learning Lean?
Mathlib isn't a package ecosystem.
It's one library, on purpose.
youtu.be/XIu_CKsPHpQ
I built a free video course on the Lean proof assistant, and the first episode is live.
Both Doors is for two kinds of people:
→ Developers who keep running into mathematics: proofs, types, "for all", "there exists". If you've written a generic function, you've already written a proof. The course shows you why.
→ Mathematicians who keep running into systems: builds, versions, CI, code that has to actually run. Lean checks your proof the way a compiler checks a program, and the course teaches the engineering around that.
Every lesson works from both sides. Everything is labelled: what Lean's kernel actually verified, what only ran as a test, what I read in a source, and what is just my opinion.
The full series is a playlist of 113 episodes ~30 hours total, going up over the next week with several already there:
youtube.com/playlist?list=PL…
It will be maintained and updated: when Lean changes or I get something wrong, the episode gets fixed.
I built it for anyone learning Lean from either side. All code is open source.
Independent: not affiliated with or endorsed by the Lean FRO or the Mathlib Initiative.
Lean isn't going away. Math and systems people already knew.
It's catching bugs in the tax code and in Erlang programs. Once you've had a checker that can't be fooled, you don't go back.
We usually talk about formal verification in software. @lexifinadotcom used Lean to flag 138 drafting issues in the US tax code, including broken references and unmatched parentheses 👀
Maybe laws need CI, too.
lexifina.com/blog/formalizin…
Euclid's infinitude of primes, from Lean's proof to plain ZFC.
tenet-zfc translates Lean 4's proof into Metamath's set.mm. It comes out as set.mm's own statement of the theorem, infpn, symbol for symbol: no universes, no extra axioms, not even choice.
Checked by three verifiers that share no code with Lean. Sabotaged proofs are rejected.
github.com/keithadler/tenet-…
Progress on tenet-zfc, which translates Lean 4 proofs into ZFC (Metamath's set.mm).
A shared library of 2,197 lemmas, each proved once, cut time and memory failures from 42% to 3% on a 1-in-10 sample of Lean's core library. CPU time halved.
21.5% of the sampled theorems now prove, and all outputs pass three independent checkers. The other 72.6% are refused with a stated reason, which is now a ranked to-do list. Top of it: well-founded recursion (Acc.rec).
Limits: a sample, not all of Init, and each result still takes a tower of universes as a hypothesis.
github.com/keithadler/tenet-…
1
8
524
Watch Carneiro's theorem run on real proofs.
Lean 4 → ZFC, checked by three independent verifiers.
80% of Lean core's definitions so far. The model hasn't broken once.
github.com/keithadler/tenet-…
tenet-zfc status: Lean 4 proofs → ZFC proofs, checked by independent Metamath verifiers.
• 80% of Lean core's definitions translate to set theory
• 16,429 equations and computation rules verified, none rejected
• ~30 Lean theorems proved end to end; List.length_append lands as set.mm's own ccatlen
• first theorems in plain ZFC, no universe axiom
github.com/keithadler/tenet-…
Ran the math of the new quantum gravity paper (arXiv:2611.34924) through Lean.
The framework looks solid.
The headline results are built in or assumed ... either the breakthrough or the break.
4 checks: 🧵👇
1
2
274
A USAID lawyer told staff:
"Write emails and gchats as if you expect them to get FOIA'd."
"Keep it out of the @washingtonpost."
Then asked herself: "USAID says it is not coercing tech companies, but do its actions say otherwise?"
Now the files are public. Watch 👇
Replying to @famous_ideal
@famous_ideal today Google's AI claims a fast method that always gets players within 1/5 of a Nash equilibrium, up from about 1/3 since 2007.
github.com/google-research/g…
Here's an explainer:
github.com/keithadler/nash-o…
1
4
225
Great result from @1337isnot1337, and I'm happy to say it checks out! 🎉
Cinna Davis found a counterexample to the Caiolo–Ferroni–Hoster conjecture about dual Chow polynomials of matroids, and proved it in Lean too. I rebuilt the numbers from the paper's definitions with my own code and got both 53-digit discriminants, digit for digit. The Lean proof compiled for me on a slightly newer Lean (with three tiny compatibility tweaks), and Tenet, my separate Lean kernel, accepted all nine modules.
It was such a nice construction that I couldn't stop thinking about it. Davis's matroid has rank 5, so I wondered: what happens in the other ranks?
It turns out rank 5 is exactly where things first go wrong. Building on Davis's idea, this is now proved in Lean: the dual Chow polynomial is real-rooted for every matroid of rank r exactly when r ≤ 4.
What I added:
• Ranks 1 to 4: always real-rooted, with every zero negative
• Every rank from 5 up: run Davis's construction in that rank with a large enough prime power q, and both the dual Chow polynomial and its augmented version fail
• Some supporting Lean that may help others: the paper's gamma expansion in every rank, and nonnegative flag h-numbers for every finite matroid
Checks: Lean 4.35, only the three standard axioms, stock kernel replay, and Tenet on all 15 modules. Tenet did not recheck Mathlib itself.
Still open, if anyone wants a fun problem: rank 4 for the augmented polynomial and for interlacing!
Fine print: unrefereed, done with AI help (Claude), and I'm not claiming priority. Interlacing in ranks 1 to 3 is on paper, not in Lean. Coalescence is the method of Bérczi, Coron, Eur and Li. If you spot a mistake, please tell me.
I sent it over as a supplement to the original entry, with the rank 5 credit right where it belongs:
github.com/1337isnot1337/sol…
Congratulations, Cinna. Beautiful find. 👏
Paper: arxiv.org/abs/2605.28474
Tenet: github.com/keithadler/tenet
Announcing Tenet SAT:
A 5.5 GB SAT proof, checked in 1.8 seconds.
The fastest existing checker takes 33 s. The formally verified one takes 185 s.
tenet-sat checks LRAT proofs in parallel: 4 to 19x faster on real SAT Competition proofs, and it agrees with every other checker on all 77.
Open source: github.com/keithadler/tenet-…
The algebraic version of P versus NP folks ...
An internal Claude model claims to have found a proof of Valiant’s conjecture that VP ≠ VNP over every field.
This is a massive result in theoretical computer science.
Both a written and Lean proof is given.
github.com/anthropics/formal…
2
22
2,231
Update on minifying the claimed Lean proof of the Riemann Hypothesis.
Where we are: 8.6% smaller, 17.37M lines down to 15.88M. Not final until it builds clean; the repair loop is on round 25, with errors down from 2,500 to 34.
What the 8.6% is:
• ~90,700 declarations nothing in the proof uses: 59,712 theorems, 29,806 definitions, plus structures and abbreviations
• 2,873 files that held nothing needed
• 522,000 redundant import lines
• 43,070 repeated theorems now pointing to one identical copy
All dead code. No math was simplified. The proof content itself is ~6.5% smaller.
Even minified, it's ~7x the size of Mathlib (15.9M lines vs 2.3M).
What that means for kernels: almost nothing changes. A kernel checks what the five theorems actually use, 1.47M declarations, and dead code was never in that set. After minifying, the kernel still checks 99.7% of the same work. Tenet does it in 1 hour; Lean's own kernel, single-threaded, takes many hours.
The proof isn't big because of waste. It's big because of what it uses. Shrinking it for real means finding a shorter route through the math, and the biggest target is one theta-correspondence step that owns 38% of the proof by itself.
github.com/keithadler/rh-tri…
Making big progress in minification of the RH proof follow real-time here at:
So far I've gotten it safely from 17.5 million lines to 13.9, 82% fewer files from 175k to 30k.
I think there's more to get.
github.com/keithadler/rh-tri…
My Lean kernel just checked the entire claimed proof of the Riemann Hypothesis in 1 hour flat.
Tenet, an independent Lean 4 kernel I wrote from scratch in C#, accepts all of it:
• 1,468,414 declarations
• 0 failures
• 1 hour 0 minutes on one AWS machine (multi-threaded)
Lean's own kernel, single-threaded, has been checking the same export for 5 hours and isn't done yet.
What else I've found on the way:
• The proof rests only on Lean's 3 standard axioms
• 99.35% of it hangs on one claim, allChi
• The five theorem statements depend on just 4,915 declarations, only 5 of them from the project
• I planted ~2,000 single faults in real slices of the proof. Every kernel (Lean, paranoid, nanoda, Tenet, tenet-hs, tenet-jvm) rejected every one.
Still running: my Haskell kernel, tenet-hs. Does it accept the proof, and how does it compare with Lean's?
A kernel accepting a proof says the code checks. It doesn't replace mathematicians reading the math.
Live: github.com/keithadler/rh-tri…
Proof by Levent Alpöge with Claude. nanoda and the latest con-leche have also accepted it (Andrew Sutherland, MIT).
The RH formalization shows scale was a bigger barrier than people thought.
The statements are standard Mathlib.
The proof is 17 million lines, more than any person or committee could survey, and one person working with a model produced it.
If the independent kernels confirm it, we'll know it's true before anyone understands why.
github.com/keithadler/rh-tri…
133





















