Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #47 docs: fix the Chapter 13 guide table and route note
2 commits
+8 −6 docs/guide/chapter-13.md View file
| @@ -23,6 +23,7 @@ The chapter's home is `PoincareLib/Geometry/RicciFlow/Surgery/Metric/`. | ||
| 23 | 23 | |---|---| |
| 24 | 24 | | `Metric/Construction/` | The output ball `SurgeryBall`, its chart, the cap image and its closed boundary. | |
| 25 | 25 | | `Metric/Collapse/` | The collapse map of Claim 13.1, its retained inverse, the retained isometry and the distance comparison. | |
| 26 | +| `Metric/Neck/` | The normalized-neck metric bounds: the domination used by Claim 13.1 and the upper half of the cap-ball comparison in Lemma 13.4. | | |
| 26 | 27 | | `Metric/Curvature/` | Theorem 13.2 items 1–2, Corollary 13.12 and Proposition 13.14: pinching, positivity, conformal scaling and the curvature of the actual surgery metric. | |
| 27 | 28 | | `Metric/Cylinder/` | The cylinder charts and jet estimates used by Corollary 13.11. | |
| 28 | 29 | | `Metric/Comparison/` | The C^k comparison with the standard initial metric (Theorem 13.2 item 4). | |
| @@ -48,14 +49,14 @@ main declaration; the notes give the neighbours. | ||
| 48 | 49 | | Theorem 13.2 | Constants C₀, q, R₀, ε₀ and four conclusions: pinching passes to the output; the cap has positive curvature; Φ decreases distance; the cap is C^k-close to the standard metric. | `repairedMetricSurgery` | `Metric/Existence.lean` | found (packaged) | |
| 49 | 50 | | Definition 13.3 | The surgery cap is the image in S of B_{g₀}(p₀, A₀+4). | `surgeryCapRadius`, `surgeryBallChart`, `surgeryCapChart_closed_image` | `Metric/Collapse/CollapseMap.lean`, `Metric/Construction/CapTopology.lean` | found (as a chart image; no separate `surgeryCap` definition) | |
| 50 | 51 | | Lemma 13.4 | The cap metric differs from a rescaled standard metric; the cap contains the R(x₀)^{-1/2}(A₀+3)-ball and lies in the R(x₀)^{-1/2}(A₀+5)-ball; its complement is the retained neck. | `surgeryMetric_cap_ball_bounds`, `surgeryMetric_retained_closed_isometry` | `Metric/Distance/SurgeryBalls.lean`, `Metric/Collapse/RetainedIsometry.lean` | found | |
| 51 | -| Corollary 13.5 | The curvature matrix of ĥ in the h-orthonormal frame, and the scalar formula R̂ = e^{2f}R + 4Δf − 2|∇f|². | `scalarCurvature_positiveScaling_exp` (scalar part) | `Metric/Curvature/Conformal/ConformalScalar.lean` | partial | | |
| 52 | +| Corollary 13.5 | The curvature matrix of ĥ in the h-orthonormal frame, and the scalar formula R̂ = e^{2f}R + 4Δf − 2\|∇f\|². | `scalarCurvature_positiveScaling_exp` (scalar part) | `Metric/Curvature/Conformal/ConformalScalar.lean` | partial | | |
| 52 | 53 | | Corollary 13.6 | R̂ ≥ R when ε < min(ε₂, C₀⁻¹). | `exists_conformalAbsorption` (scalar increase) | `Metric/Curvature/Conformal/ConformalAbsorption.lean` | partial | |
| 53 | 54 | | Lemma 13.7 | There is ε₃ and an h-orthonormal basis f₀, f₁, f₂ with change of basis Id + O(ε) and a displayed curvature matrix. | — | — | not found | |
| 54 | -| Corollary 13.8 | The basis can be chosen so that the curvature matrix is diagonal with |λ−1/2|, |μ|, |ν| = O(ε). | — | — | not found | | |
| 55 | +| Corollary 13.8 | The basis can be chosen so that the curvature matrix is diagonal with \|λ−1/2\|, \|μ\|, \|ν\| = O(ε). | — | — | not found | | |
| 55 | 56 | | Lemma 13.9 | In that basis, the curvature matrix of ĥ has the displayed form. | — | — | not found | |
| 56 | 57 | | Corollary 13.10 | An h-orthonormal basis diagonalizes Rm_h and gives the displayed matrix of Rm_ĥ. | — | — | not found | |
| 57 | 58 | | Corollary 13.11 | Eigenvalue comparison for Rm_ĥ against Rm_h near the fixed cylinder, with a constant A. | `exists_jetCurvature_component_bounds`, `cylinder_tensor_weight_lower` | `Metric/Cylinder/Jets/JetCurvatureBounds.lean`, `Metric/Cylinder/Jets/CylinderJetComponents.lean` | partial | |
| 58 | -| Corollary 13.12 | The smallest eigenvalue of Rm_ĥ is greater than that of Rm_h; nonnegative curvature is preserved. | `sectionalCurvature_positiveScaling_profile_orthonormal_pos_of_split`, `negativeCurvaturePart_positiveScaling_profile_le_of_split` | `Metric/Curvature/Conformal/ConformalPinching.lean` | found | | |
| 59 | +| Corollary 13.12 | The smallest eigenvalue of Rm_ĥ is greater than that of Rm_h; nonnegative curvature is preserved. | `sectionalCurvature_positiveScaling_profile_orthonormal_pos_of_split`, `negativeCurvaturePart_positiveScaling_profile_le_of_split` | `Metric/Curvature/Conformal/ConformalPinching.lean` | partial | | |
| 59 | 60 | | Lemma 13.13 | With the chosen C₀ and q, λ > 0 and μ > 0 on s ∈ [1, 4+A₀], and ν > 1/4. | `surgeryOutputHeight_ge_one_of_mem_innerCapImage` (positivity only) | `Metric/Curvature/SurgeryCurvature.lean` | partial | |
| 60 | 61 | | Proposition 13.14 | The input pinching inequalities pass to (S, g) on s⁻¹(−∞, 4); the curvature is positive on s⁻¹[1, 4). | `pinching_log_bound_of_comparison`, `exists_surgeryMetric_curvature` | `Metric/Curvature/PinchingTransport.lean`, `Metric/Curvature/SurgeryCurvature.lean` | partial | |
| 61 | 62 | | Lemma 13.15 | For 0 < D < ε⁻¹, the ball B_g(p, D+5+A₀) has boundary in s_N⁻¹(−(2D+2), −D/2). | — | — | not found | |
| @@ -198,9 +199,10 @@ The formal counterparts are in | ||
| 198 | 199 | - `exists_conformalAbsorption` (`ConformalAbsorption.lean`) — the scalar |
| 199 | 200 | curvature increases and the negative part decreases under one threshold. |
| 200 | 201 | |
| 201 | -The Lean statement is in terms of the least sectional curvature and the negative | |
| 202 | -curvature part, not the smallest eigenvalue of the curvature matrix; the two | |
| 203 | -formulations are related but not identified in the tree. | |
| 202 | +The row is partial: the Lean statement is in terms of the least sectional | |
| 203 | +curvature and the negative curvature part, not the smallest eigenvalue of the | |
| 204 | +curvature matrix; the two formulations are related but not identified in the | |
| 205 | +tree. | |
| 204 | 206 | |
| 205 | 207 | ### Lemma 13.13 |
| 206 | 208 | |
+17 −0 routes/p4-ch13-followup/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 5 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# p4-ch13-followup | |
| 6 | + | |
| 7 | +Follow-up to the merged Chapter 13 guide (PR #44). The guide's folder table | |
| 8 | +listed eight of the nine `Surgery/Metric/` folders, two table rows had | |
| 9 | +unescaped `|` characters, and Corollary 13.12 was marked `found` although the | |
| 10 | +note says its smallest-eigenvalue comparison is not identified with the Lean | |
| 11 | +statement. This route fixes those and trims the merged route note's stale | |
| 12 | +`## Next`. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +PR #47 is open against `main` with `Part of #5`. The checks and the second | |
| 17 | +reader's review decide the rest; issue #5 stays open for the other chapters. | |
+3 −4 routes/p4-guide-ch13/README.md View file
| @@ -16,7 +16,6 @@ This is one unit of #5; the issue stays open for the other chapters. | ||
| 16 | 16 | |
| 17 | 17 | ## Next |
| 18 | 18 | |
| 19 | -PR #44 is open against `main` with `Part of #5`. What remains is the second | |
| 20 | -reader's check of every row against the tree and the book, and the maintainer's | |
| 21 | -`replay` report and merge. Issue #5 stays open for the other chapters. If a | |
| 22 | -review asks for a change, keep the edit inside this route and `docs/guide/`. | |
| 19 | +The guide is merged (PR #44). A follow-up (PR #47) adds the missing | |
| 20 | +`Metric/Neck/` row, escapes two table rows and marks Corollary 13.12 partial. | |
| 21 | +Issue #5 stays open for the other chapters. | |