Okay, I know this thread is going to get spicy and I'm prepared for the flame war. But I genuinely think we need to have a calm, evidence-based discussion about this in 2025 because the landscape has changed substantially and a lot of people are still operating on 2020-era assumptions.
Let me lay out my case for Lean 4 first, and then I expect the usual suspects to come in screaming about CompCert and Ltac.
Why I think Lean 4 has pulled ahead:
- Mathlib is enormous. As of mid-2025, mathlib had formalized over 210,000 theorems and 100,000 definitions. That's not a library, that's a civilization. Nothing in the Rocq ecosystem comes close to this breadth.
- Tactic ergonomics. The Lean 4 tactic language is just... nicer to write?
simp,ring,linarith,aesop,omegaโ these compose beautifully. Writing a proof in Lean feels like writing code, not casting ancient incantations. - It's also a real programming language. Lean 4 is "fully extensible: users can modify and extend the parser, elaborator, tactics, decision procedures, pretty printer, and code generator." You can write your proof automation IN Lean and it compiles to efficient C.
- Momentum & AI tooling. DeepSeek-Prover-V2, Leanstral, every major AI theorem proving effort targets Lean 4 first. This is a feedback loop that's going to compound.
- Universe polymorphism that doesn't make you want to cry. Lean uses a non-cumulative hierarchy, Rocq uses a cumulative one. Both have trade-offs, but Lean's
Sort uapproach is way more predictable in practice.
Here's a comparison of proving something dead simple โ commutativity of natural number addition โ to show the ergonomic difference:
theorem Nat.add_comm (n m : โ) : n + m = m + n := by induction n with | zero => simp | succ n ih => simp [Nat.succ_add, ih] -- Or just: omega
That last comment is not a joke. For most arithmetic goals, omega just closes them. The degree to which Lean 4 can automate grunt work is genuinely remarkable in 2025.
I'm not saying Rocq is dead or bad. It has decades of industrial use and CompCert is still the gold standard for verified compilation. But for doing mathematics in 2025, Lean 4 is where I'd tell anyone to start.
Fight me. ๐ฑ