←
Lean887 posts
Lean avatar

Lean

@leanprover

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

◷ Joined April 2018▧ 128 Photos and videos
Lean avatar
Lean@leanprover·20h

𝐋𝐞𝐚𝐧 𝟒.𝟑𝟔.𝟎 𝐢𝐬 𝐥𝐢𝐯𝐞! This release brings 222 changes, including 30 performance improvements, new 𝚐𝚛𝚒𝚗𝚍 and 𝚋𝚟_𝚍𝚎𝚌𝚒𝚍𝚎 capabilities, and experimental exception support in contracts. Notable improvements include: • Performance work including a type class cache kept between commands and the removal of several quadratic slowdowns; Mathlib now builds roughly 12% faster • 𝚐𝚛𝚒𝚗𝚍's bit-vector and fixed-width integer homomorphisms now cover masks, concatenation, rotations, signed comparisons, shifts, and exponentiation • 𝚋𝚟_𝚍𝚎𝚌𝚒𝚍𝚎 supports uninterpreted functions via +𝚞𝚏, adding congruence facts as needed (for functions returning 𝙱𝚘𝚘𝚕 or 𝙱𝚒𝚝𝚅𝚎𝚌) • Experimental 𝚝𝚑𝚛𝚘𝚠𝚜 clauses let a 𝚍𝚎𝚏 contract state what holds when the function throws 🔗 𝐅𝐮𝐥𝐥 𝐫𝐞𝐥𝐞𝐚𝐬𝐞 𝐧𝐨𝐭𝐞𝐬: lean-lang.org/doc/reference/… #LeanLang #LeanProver #FormalVerification

Post attachment
&Truth avatar
⟳ Lean retweeted
&Truth@andTruthPBC·Nov 12

3/5 Mathematical proof offers fundamentally stronger assurance: establishing that code meets precise requirements, under explicit assumptions. &Truth’s proofs can be independently checked using Lean. Our initial focus is memory safety and absence of undefined behavior.

Tudor Achim avatar
⟳ Lean retweeted
Tudor Achim@tachim·Nov 17

Lean has been integral and foundational to everything we've done at Harmonic. Huge fans of the FRO, the team, and the ecosystem.

Great to see Lean being used for Rust verification!

Lean avatar
Lean@leanprover·Nov 16

Great to see Lean being used for Rust verification!

Aristotle now formally verifies Rust, joining C and Verilog 🦀 Prove your Rust code has no undefined behavior and does exactly what its spec says, even if you use unsafe. And if you’re porting C to Rust, prove the new code behaves the same as the original.

0:20
Bartosz Naskręcki avatar
⟳ Lean retweeted
Bartosz Naskręcki@nasqret·Nov 11

I think I took my theorem proving classes too seriously. Thanks to @145k4 I was able to run (Lean)DOOM, tick by tick. We exit Hangar without firing a shot. A fireball is still in flight. We proved complete runs of Hangar and Nuclear Plant in our version of (Lean)DOOM. Each run is completely verified in Lean and the runs of the players can be certified too. So can you prove to me that you can finish each level? The game is fully playable and we can build live the proofs from the game too. So much fun!

1:00
Lean avatar
Lean@leanprover·Nov 10

𝐋𝐞𝐚𝐧 𝐅𝐑𝐎 𝐢𝐬 𝐡𝐢𝐫𝐢𝐧𝐠 𝐚 𝐓𝐞𝐜𝐡𝐧𝐢𝐜𝐚𝐥 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬 & 𝐂𝐨𝐧𝐭𝐞𝐧𝐭 𝐋𝐞𝐚𝐝 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

Post attachment
Swarat Chaudhuri avatar
⟳ Lean retweeted
Swarat Chaudhuri@swarat·Nov 10

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!

David Andrews avatar
⟳ Lean retweeted
David Andrews@broyojo42·Nov 9

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. 🧵

0:11
Lean avatar
Lean@leanprover·Nov 7

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…

Lean avatar
Lean@leanprover·Nov 6

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…

Post attachment
Axiom avatar
⟳ Lean retweeted
Axiom@axiommathai·Nov 4

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 🌆

4:19
Lean avatar
Lean@leanprover·Nov 2

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-…

Post attachment
Lean avatar
Lean@leanprover·Oct 31

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.

1:32
Kevin Hartnett avatar
⟳ Lean retweeted
Kevin Hartnett@KSHartnett·Oct 30

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."

&Truth avatar
⟳ Lean retweeted
&Truth@andTruthPBC·Oct 29

We're in @nytimes: if AI can prove open math problems, can it prove software has no bugs? That is what we work on, with Lean as the foundation for machine-checked trust. nytimes.com/2026/10/29/scien…