Lean (@leanprover) header
Lean (@leanprover) profile picture

Lean is a dependently-typed programming language and theorem prover.

Seattle
Joined April 2018
Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)Photo by Lean (@leanprover)
๐‹๐ž๐š๐ง ๐…๐‘๐Ž ๐ข๐ฌ ๐ก๐ข๐ซ๐ข๐ง๐  ๐š ๐“๐ž๐œ๐ก๐ง๐ข๐œ๐š๐ฅ ๐‚๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐œ๐š๐ญ๐ข๐จ๐ง๐ฌ & ๐‚๐จ๐ง๐ญ๐ž๐ง๐ญ ๐‹๐ž๐š๐ We are looking for a hands-on communicator and content creator to own Lean FROโ€™s external communications. The role is full-time and remote, working directly with Lean developers and leadership. We expect the successful candidate to turn technical developments into clear, engaging stories, build a consistent public presence, and help audiences understand Lean accurately. They do not need to be a Lean expert when they join, but must be eager and able to learn enough to communicate accurately. This is a chance to turn substantive technical work into content people understand, and to take ownership of a communications function whose direction you can help shape. ๐…๐ฎ๐ฅ๐ฅ ๐ฃ๐จ๐› ๐ฉ๐จ๐ฌ๐ญ๐ข๐ง๐  ๐š๐ง๐ ๐š๐ฉ๐ฉ๐ฅ๐ข๐œ๐š๐ญ๐ข๐จ๐ง: jobs.lever.co/convergentreseโ€ฆ #LeanLang #LeanProver
4
18
4
71
6,121
Thrilled to announce that our @GoogleDeepMind team has cracked a major challenge in software engineering and cybersecurity: formally verifying a real-world implementation of the #Signal cryptographic protocol at the machine-code level. This proof was done using AlphaProof Code, our new AI framework for formal specification and verification. * Paper: deepmind.google/documents/36โ€ฆ * Lean code: github.com/google-deepmind/cโ€ฆ * DeepMind blog post: deepmind.google/blog/introduโ€ฆ A huge shoutout to my amazing teammates: @tchajed, @FerrousAndrew, Jonathan Katz, @pushmeet, @antonkovsharov, Karn Seth, Sam Schlesinger, @RandomlyWalking. I started working on formal software verification 20+ years ago as a grad student. I was persuaded by Dijkstra and other computer science pioneersโ€™ vision of programming backed up by mathematical theorems. At that time, we had to choose between automated code analysis algorithms that scaled but could only prove shallow properties, and deep manual verification that took decades of expert human work. Thanks to progress in AI for mathematical reasoning, we donโ€™t have to make that choice any more. Over four weeks in October 2026, AlphaProof Code agents generated more than 6 million lines of machine-checked Lean proof. We proved deep computational and symbolic security properties of the entire protocol core of Signal, all the way down to the ARM machine-code level. This is just the first step, of course, because our goal is nothing short of verifying the worldโ€™s software infrastructure. Most cyberattacks, including the AI-powered ones recently in the news, happen because of preventable code bugs. I expect that agents for formal code analysis will eliminate these bugs one category at a time. As our paper explains in more detail, this doesnโ€™t at all mean humans are out of the picture! Proofs are now largely automated, but human experts will need to decide what is proved with AI assistance. AlphaProof Code offers an early glimpse of what such human-AI collaboration could look like, but many other proposals of this nature will emerge. We have released all our Lean specs and proofs and plan to work with the open-source community on improving them. If you are building critical software and would like to apply these ideas, come talk to us!
49
146
26
1,039
55,058
I had Opus 5.5 formalize CPython in Lean: 613,318 lines of Lean that copy Python's internals line by line, tested against the real interpreter and checked by Lean. On the way it found real bugs in Python, including crashes from plain Python code. ๐Ÿงต
64
230
33
2,485
160,449
Software Verification in Lean is live now! You can still register via Luma to access the livestream link: luma.com/kytl0zlj
We're very excited for ๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—ฉ๐—ฒ๐—ฟ๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐—ป ๐—Ÿ๐—ฒ๐—ฎ๐—ป tomorrow! The in-person event is full, but livestream spots remain open: Register on Luma to receive the link: luma.com/kytl0zlj ๐—ก๐—ฒ๐˜„๐—น๐˜† ๐—ฎ๐—ฑ๐—ฑ๐—ฒ๐—ฑ ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ: A closing round-table discussion on AI safety and formal verification (4:45โ€“5:30 pm PT), moderated by Pedro Abreu (@p_droabreu0), host of the Type Theory Forall podcast, featuring Max Tegmark, Leonardo de Moura, Jonathan Protzenko, Andres Erbsen and Mike Dodds. ๐Ÿ”— See the event website for the full program: beneficial-ai-foundation.gitโ€ฆ
3
9
106
5,473
We're very excited for ๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—ฉ๐—ฒ๐—ฟ๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐—ป ๐—Ÿ๐—ฒ๐—ฎ๐—ป tomorrow! The in-person event is full, but livestream spots remain open: Register on Luma to receive the link: luma.com/kytl0zlj ๐—ก๐—ฒ๐˜„๐—น๐˜† ๐—ฎ๐—ฑ๐—ฑ๐—ฒ๐—ฑ ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ: A closing round-table discussion on AI safety and formal verification (4:45โ€“5:30 pm PT), moderated by Pedro Abreu (@p_droabreu0), host of the Type Theory Forall podcast, featuring Max Tegmark, Leonardo de Moura, Jonathan Protzenko, Andres Erbsen and Mike Dodds. ๐Ÿ”— See the event website for the full program: beneficial-ai-foundation.gitโ€ฆ
Software Verification in Lean (SVIL) comes to Stanford University on Saturday, November 7. Co-organized by Beneficial AI Foundation and Lean FRO, it is a day of public lectures on advancing Leanโ€™s software verification ecosystem toward production use, with a focus on end-to-end verification of security-critical systems. Talks will cover Rust verification with the Aeneas framework, low-level software verification, and formally verified OS kernels. Speakers include Max Tegmark, Shaowei Lin, Leonardo de Moura, Jonathan Protzenko, Andres Erbsen, and Mike Dodds. In-person space is limited. Non-local and waitlisted registrants will receive a livestream link, and recordings will be available afterward. Program and registration: beneficial-ai-foundation.gitโ€ฆ
9
25
2
218
15,756
Lean retweeted
Most think vibecoding at scale is slop. Hereโ€™s a counterexample. Today we release a 16M-line formalization of the entire Stacks Project, critical infra underlying modern math, with optimized code quality and its highly interconnected structure preserved. A mathematical city ๐ŸŒ†
856
1,549
330
7,026
6,994,912
The #TauCeti project is using AI to build a library of formalized mathematics: Human-written roadmaps specify the intended mathematics, and the #Lean kernel checks every proof the AI contributors produce. Adversarial AI reviewers then assess whether the results match what the roadmaps intend. Kim Morrison writes that this process โ€œbrings the material up to a standard we can keep building on.โ€ The aim: reusable formalizations of โ€œall of basic mathematics.โ€ The project is incubated by Lean FRO and the Mathlib Initiative, and open to contributions from everyone. See the Tau Ceti use case for more: lean-lang.org/use-cases/tau-โ€ฆ
5
19
5
166
11,675
Oh wow, we love this. Harsh Gupta's Lean 4 submission to the "$12 server challenge" proves that, under certain conditions, posts are โ€œalready stored in the exact order they need,โ€ so it can skip the extra work and read them directly. And bypassing SQLiteโ€™s normal query engine cut the time to load the feed from 16.7 ms to 5.4 ms. Congrats @hargup13!
It's official now, my Lean 4 submission is #1 on "$12 server challenge", serving more users than Rust, C or even hand written assembly. The creator of a the challenge did a pretty good job explaining how Lean 4 allows you to create software even more optimized than handwritten C.
5
23
4
260
11,545
My first book, The Proof in the Code, has been named one of the best nonfiction books of 2026 by @PublishersWkly "Itโ€™s one thing to make complex mathematical concepts accessible to a lay audience, but to illustrate their importance through an engrossing, character-driven narrative is a feat only a journalist as adept as Hartnett can pull off. This cinematic account of the creation of Lean, a software tool thatโ€™s become vital for mathematicians and AI researchers, is necessary reading for understanding the rise of human-computer collaboration."
6
8
3
78
3,039
I'm thrilled to bring &Truth out of stealth as its co-founder and Chief Science Officer. With a team I'm proud to be part of, we're setting out to specify and prove all the world's software correct and secure. If you geek out over code people can understand and trust, join us!
We are out of stealth! As AI writes more code, we're building tools to prove programs meet precise requirements, with Lean proofs anyone can independently check. Let's make verified software the norm in every language and application. Come take a look: andtruth.com
25
49
8
496
26,232
We are out of stealth! As AI writes more code, we're building tools to prove programs meet precise requirements, with Lean proofs anyone can independently check. Let's make verified software the norm in every language and application. Come take a look: andtruth.com
12
63
18
380
48,726
Highlighting two great sites for the latest on Lean, both built and curated by @soonhokong . ๐Ÿ“„ ๐๐š๐ฉ๐ž๐ซ๐ฌ ๐–๐ข๐ญ๐ก ๐‹๐ž๐š๐ง: "arXiv papers that use Lean, the interactive theorem prover. Updated daily." You can browse by topic or by the last 7 or 30 days. paperswithlean.com ๐Ÿ“ฐ ๐‹๐ž๐š๐ง ๐–๐ž๐ž๐ค๐ฅ๐ฒ: News about Lean, from Lean core to verification to AI and formalization, organized by week. leanweekly.news We're grateful to Soonho for this work.
4
26
3
135
7,620
Software Verification in Lean on November 7 has reached in-person capacity! If you're interested in attending live, please join the waitlist: A livestream link will be shared with all waitlisted registrants a few days before the event.
Software Verification in Lean (SVIL) comes to Stanford University on Saturday, November 7. Co-organized by Beneficial AI Foundation and Lean FRO, it is a day of public lectures on advancing Leanโ€™s software verification ecosystem toward production use, with a focus on end-to-end verification of security-critical systems. Talks will cover Rust verification with the Aeneas framework, low-level software verification, and formally verified OS kernels. Speakers include Max Tegmark, Shaowei Lin, Leonardo de Moura, Jonathan Protzenko, Andres Erbsen, and Mike Dodds. In-person space is limited. Non-local and waitlisted registrants will receive a livestream link, and recordings will be available afterward. Program and registration: beneficial-ai-foundation.gitโ€ฆ
2
8
100
4,796
We also thank the Lean and Mathlib communities. Completing the formalization is one milestone; making it more useful to mathematicians is ongoing work. Weโ€™ll maintain and improve this codebase: faster builds, clearer organization, and results that are easier to find and reuse.
2
13
258
23,595
Congratulations to the Axiom team on this expansive undertaking.
The largest math proof in human history is now computer-verified. Today, Axiom announces a complete Lean auto-formalization of the Classification of Finite Simple Groups, the "periodic table of symmetry." About 15,000 pages, built by over 100 mathematicians across generations.
9
26
1
271
10,956
Lean retweeted
1/๐Ÿงต Coding agents can make code faster. Can they also prove it still does the same thing? Introducing Agentic Verified Optimization ๐Ÿš€ Agents return faster code plus a Lean proof that it equals the original on every input. ๐ŸŒ Blog: aqueduct.verina.io ๐Ÿ“„ Paper: arxiv.org/abs/2610.30188
11
19
1
80
8,021
Software Verification in Lean (SVIL) comes to Stanford University on Saturday, November 7. Co-organized by Beneficial AI Foundation and Lean FRO, it is a day of public lectures on advancing Leanโ€™s software verification ecosystem toward production use, with a focus on end-to-end verification of security-critical systems. Talks will cover Rust verification with the Aeneas framework, low-level software verification, and formally verified OS kernels. Speakers include Max Tegmark, Shaowei Lin, Leonardo de Moura, Jonathan Protzenko, Andres Erbsen, and Mike Dodds. In-person space is limited. Non-local and waitlisted registrants will receive a livestream link, and recordings will be available afterward. Program and registration: beneficial-ai-foundation.gitโ€ฆ
4
61
2
365
33,217
The computer science collaboration will understand and explain a result concerning the Exponential Time Hypothesis (ETH), a longstanding conjecture about the computational complexity of Boolean formula satisfiability, a problem deeply related to the P vs. NP problem. Surprisingly, our system has recently proved that the ETH is false, a result that was subsequently verified in Lean. The refutation of the ETH reopens questions about how much faster these tasks could become, and may help guide the search for better algorithms. Finding such algorithms, and turning theoretical advances into practical improvements, will require significant further research. Our system found its natural language disproof for the ETH we reached out to to @rrwilliams. Ryan will form a collaboration with Russell Impagliazzo and Ramamohan Paturi to verify and shepherd this result. Impagliazzo and Paturi, along with Francis Zane, are the original proposers of the Exponential Time Hypothesis, and Williams has refuted strong versions of the ETH, used ETH for hardness results, and connected algorithms and lower bounds. This group asked us to make all raw data of the results public to facilitate independent verification by the community, which we have done by posting the natural language proof and Lean formalization to our GitHub repo. The group also invites the community to help organize an open examination of the ETH claim and to discuss the broader questions that AI-generated breakthroughs raise about verification, access, credit, and the future of research. github.com/openai/math/blob/โ€ฆ
18
93
89
710
289,609