leanprover-community/mathlib4

The math library of Lean 4

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 2 minutes ago
Added to GitGenius on September 16th, 2026
Created on May 9th, 2021
Open Issues & Pull Requests: 3,375 (+0)
GitHub issues: Enabled
Number of forks: 1,697
Total Stargazers: 4,157 (+1)
Total Subscribers: 40 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.4 days
Mean response time: 166.6 days
90th percentile: 635.8 days
Tracked items: 255

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Roughly one issue in three opened in the past year never receives a reply. 56% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Work labelled "t-analysis" is answered fastest, typically in about 3 days, while "porting-notes" waits about 21 months. 64% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 33% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 178
New in 7 days: 4
Closed in 7 days: 2
Avg open age: 503 days
Stale 30+ days: 159
Stale 90+ days: 136

Recent activity

Opened in 7 days: 4
Closed in 7 days: 2
Comments in 7 days: 2
Events in 7 days: 6

Top labels

  • t-meta (36)
  • enhancement (34)
  • good first issue (29)
  • porting-notes (26)
  • help-wanted (18)
  • t-analysis (15)
  • t-topology (15)
  • bug (14)

Detailed Description

mathlib4 is a mathematical library for the Lean 4 proof assistant that provides formalized mathematics for use in theorem proving and verification.

The library addresses the need for a comprehensive collection of proven mathematical definitions, theorems, and lemmas that developers can build upon when writing formal proofs in Lean 4. Rather than requiring each user to prove basic mathematical facts from scratch, mathlib4 supplies a curated foundation of mathematics across multiple domains. Users can import relevant portions of the library and apply existing theorems and definitions to their own proof work, significantly reducing the effort needed to formalize mathematical arguments.

Adoption of mathlib4 makes sense for anyone working with Lean 4 who needs access to established mathematical results. It is essential for projects involving formal verification of mathematical claims, educational work in proof assistants, or development of higher-level mathematical theories that depend on foundational results. The library is the standard mathematical resource for the Lean 4 community and is maintained as the primary companion to the Lean 4 language itself.

The project maintains steady development activity with regular contributions across its mathematical content. The codebase receives ongoing updates to add new theorems and definitions as contributors expand the library's coverage. Documentation is actively maintained to help users navigate and understand the available mathematical content. The project sustains engagement from its community through continuous refinement of existing proofs and integration of new mathematical areas into the formalized library.