Mathlib Map

Lean 4 · Mathlib

Every theorem in Mathlib, on the map.

Mathlib is deepest in category theory; homological algebra, order, lattices, ordered algebraic structures, and group theory and generalizations. It has formalized 199 of the 1,200 theorems on the 1000+ list (17%), and touches 44 of the 63 areas of mathematics. The widest gap is dynamical systems and ergodic theory: 0 of its 24 famous theorems are in Mathlib (0%).

The map of formalized mathematics

Each tile is an area of the Mathematics Subject Classification. Areas with no Mathlib declarations are not drawn. Click a tile to zoom in and open its page.

Color by

Size: declarations in Mathlib

Every area, ranked by declarations

AreaDeclarationsFamous theoremsOpen conjectures
18 Category theory; homological algebra
65,208
2 of 3 (67%)1
06 Order, lattices, ordered algebraic structures
32,568
6 of 9 (67%)3
20 Group theory and generalizations
27,204
9 of 55 (16%)26
13 Commutative algebra
24,215
7 of 15 (47%)3
54 General topology
22,030
7 of 30 (23%)14
46 Functional analysis
14,935
12 of 58 (21%)9
11 Number theory
14,549
27 of 127 (21%)983
05 Combinatorics
14,470
13 of 81 (16%)380
28 Measure and integration
12,047
12 of 27 (44%)7
16 Associative rings and algebras
11,302
6 of 11 (55%)8
03 Mathematical logic and foundations
11,215
12 of 53 (23%)10
15 Linear and multilinear algebra; matrix theory
10,062
7 of 18 (39%)48
26 Real functions
8,686
23 of 57 (40%)13
14 Algebraic geometry
8,207
1 of 68 (1%)51
12 Field theory and polynomials
7,767
9 of 19 (47%)18
55 Algebraic topology
4,904
0 of 14 (0%)0
58 Global analysis, analysis on manifolds
4,457
none listed2
60 Probability theory and stochastic processes
4,345
9 of 45 (20%)9
17 Nonassociative rings and algebras
4,141
0 of 9 (0%)2
51 Geometry
3,805
8 of 99 (8%)31
22 Topological groups, Lie groups
3,732
0 of 6 (0%)4
30 Functions of a complex variable
2,750
12 of 62 (19%)15
52 Convex and discrete geometry
2,015
5 of 15 (33%)45
40 Sequences, series, summability
1,247
0 of 3 (0%)10
08 General algebraic systems
1,245
none listed2
37 Dynamical systems and ergodic theory
955
0 of 24 (0%)11
33 Special functions
784
0 of 2 (0%)32
41 Approximations and expansions
752
0 of 1 (0%)3
32 Several complex variables and analytic spaces
668
1 of 11 (9%)1
68 Computer science
570
4 of 33 (12%)13
47 Operator theory
359
0 of 12 (0%)19
42 Harmonic analysis on Euclidean spaces
354
2 of 5 (40%)13
57 Manifolds and cell complexes
291
1 of 20 (5%)5
94 Information and communication theory, circuits
204
0 of 4 (0%)29
43 Abstract harmonic analysis
152
2 of 3 (67%)0
53 Differential geometry
148
0 of 37 (0%)0
34 Ordinary differential equations
141
1 of 8 (13%)0
31 Potential theory
121
none listed0
65 Numerical analysis
81
0 of 3 (0%)0
62 Statistics
72
0 of 16 (0%)0
44 Integral transforms, operational calculus
48
0 of 2 (0%)0
39 Difference and functional equations
37
none listed0
90 Operations research, mathematical programming
31
none listed0
49 Calculus of variations and optimal control; optimization
13
0 of 3 (0%)1
Map

Which parts of mathematics are formalized, and how deeply.

Every area of mathematics, sized by how many Mathlib declarations it holds and colored by how many of its famous theorems are proved.

Open Map
Structures

How Mathlib's algebraic and topological structures fit together.

The typeclass hierarchy as one navigable diagram, from Monoid to Field and beyond, with a chain finder that shows why a real number is an instance of any class.

Open Structures
Theorems

What each theorem cites, who cites it, and what it rests on.

Every declaration with its statement, its dependencies down to the axioms, and the plumbing filtered out so only the mathematics shows.

Open Theorems

This site is being built in the open. Map and Structures are live; Theorems is next.

Follow the build on GitHub