Hacker GitHub

← All repos

leanprover-community/mathlib4

View on GitHub ↗ ★ 4,415 Lean

The math library of Lean 4

20 mentions on Hacker News by 18 people: 1 story, 19 comments · first 2023-09-08 · latest 2026-10-07

Mentions per year 20 mentions · busiest year 2023 (8)
20082026
  1. …for the top-level theorems generally come from human written formalizations such as in https://github.com/leanprover-community/mathlib4/blob/021ce6... so we can be reasonably confident about their correctness.
    comment by ammar2 · 2026-10-07 · in Navier–Stokes Lost in Translation
  2. …good at creating Lean proofs so the are much more common but not universal. And they depend on https://github.com/leanprover-community/mathlib4
  3. A lemma like this is common for well-known results https://github.com/leanprover-community/mathlib4/blob/fc728c... The one immediately before (`gcd_mul_dvd_mul_gcd`) is also well-known but uses a style closer to forward proof. The very…
    comment by jhanschoo · 2025-08-01 · in The Math Is Haunted
  4. There are a few. The lean one is at https://github.com/leanprover-community/mathlib4
    comment by ants_everywhere · 2025-07-31 · in The Math Is Haunted
  5. …strategies they're using, but mathlib in Lean has formalizations for measure theory for example: https://github.com/leanprover-community/mathlib4/blob/master... For very practical programming work (like business software), I'd be surprised…
    comment by ndriscoll · 2025-03-25 · in A proof checker meant for education
  6. Check out mathlib for LEAN, the pace of proofs being added here is breathtaking: https://github.com/leanprover-community/mathlib4
  7. …and which large portions of the FLT project will likely continually contribute into. [1]: https://github.com/leanprover-community/mathlib4/ (Other theorem provers have similar libraries, e.g. Coq's is called math-comp:…
    comment by JulianWasTaken · 2024-12-13 · in Fermat's Last Theorem – how it’s going
  8. You want mathlib, the lean library of established results: https://github.com/leanprover-community/mathlib4 They skip steps in writing because they can generally do them and it obscures the flow of the argument to have every thing spelled…
  9. …but the number one thing I’d like to see for the future of TLA+ is an equivalent of Mathlib ( https://github.com/leanprover-community/mathlib4 ). What’s so great about the experience of using Lean is that I can pull theorems off the shelf…
    comment by mjb · 2024-08-28 · in The Future of TLA+ [pdf]
  10. …and usual practical applications. [0] https://leanprover-community.github.io/mathlib4_docs/ [1] https://github.com/leanprover-community/mathlib4
  11. For example, here's a formally verified proof in Lean: https://github.com/leanprover-community/mathlib4/blob/124731...
  12. …to both compute the fibonacci number and generate an efficient proof for the calculation. https://github.com/leanprover-community/mathlib4/blob/master... In practice this isn't very useful (the definition of Nat.fib unfolds quick enough…
  13. …Mathlib have for SetTheory, ZFC, NFU, and HoTT? leanprover-community/mathlib4// Mathlib/SetTheory: https://github.com/leanprover-community/mathlib4/tree/master...
  14. As an aside, there are a number of Turing machines defined in Lean's mathlib. https://github.com/leanprover-community/mathlib4/blob/2c3ee3...
  15. Thanks, and there is Subobject, which looks like the subobject classifier. https://github.com/leanprover-community/mathlib4/blob/master...
    comment by hackandthink · 2023-09-08 · in Lean 4.0
  16. …topologies and sites[1] which were extensively used in the Liquid Tensor Experiment[2] [1] https://github.com/leanprover-community/mathlib4/tree/master... [2] https://leanprover-community.github.io/blog/posts/lte-final/
    comment by hiker · 2023-09-08 · in Lean 4.0
  17. …as a `LargeCategory` in our framework." So it seems to be proven that there is a Category Lean! https://github.com/leanprover-community/mathlib4/blob/master...
    comment by hackandthink · 2023-09-08 · in Lean 4.0
  18. Everything I can think of and more of what I'll ever need: https://github.com/leanprover-community/mathlib4/tree/master...
    comment by hackandthink · 2023-09-08 · in Lean 4.0
  19. Mathlib was fully ported to Lean 4 ( https://github.com/leanprover-community/mathlib4 ), and the Lean 3 version is deprecated now. Edit: Adding a little bit more detail, it was ported one file at a time, using the automated translation…
    comment by mauricioc · 2023-09-08 · in Lean 4.0