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

| 1 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CoreBallVolume |
| 3 | |
| 4 | /-! |
| 5 | # Size of an exact scalar-curvature radius |
| 6 | |
| 7 | Morgan-Tian Definition 9.72 and Remark 9.73, pp. 230-231, in |
| 8 | Theorem 12.28, pp. 323-324. The scalar at the center is bounded |
| 9 | by its ball supremum, so a large scalar forces the exact radius |
| 10 | below both the noncollapsing scale and the available past time. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M35 |
| 21 | |
| 22 | /-- Definition 9.72: the actual center scalar bounds every exact |
| 23 | scalar-supremum radius from above, without choosing a smaller ball. -/ |
| 24 | theorem scalar_curvature_radius_sq_mul_scalar_le_one |
| 25 | {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | [T3Space M] [ConnectedSpace M] (g : RiemannianMetric 3 M) |
| 28 | (D : LeviCivitaData g) (hcomplete : MetricComplete g) |
| 29 | (hR : Continuous D.scalarCurvature) (y : M) {r : ℝ} (hr : 0 < r) |
| 30 | (hscale : scalarCurvatureSupOn g D (g.ball y r) = r⁻¹ ^ 2) : |
| 31 | r ^ 2 * D.scalarCurvature y ≤ 1 := by |
| 32 | let : MetricSpace M := Proofs.M09.selectedMetricSpace g |
| 33 | have hy : y ∈ g.ball y r := by |
| 34 | change g.edist y y < ENNReal.ofReal r |
| 35 | rw [← Proofs.M09.selectedMetricSpace_edist g, edist_self] |
| 36 | exact ENNReal.ofReal_pos.mpr hr |
| 37 | have hcompact := Proofs.M09.isCompact_closure_metric_ball g hcomplete y r |
| 38 | have hbounded : BddAbove (range fun z : g.ball y r => D.scalarCurvature z.1) := by |
| 39 | rw [← image_eq_range] |
| 40 | exact (hcompact.bddAbove_image hR.continuousOn).mono (image_mono subset_closure) |
| 41 | have hcenter : D.scalarCurvature y ≤ scalarCurvatureSupOn g D (g.ball y r) := |
| 42 | le_csSup hbounded ⟨⟨y, hy⟩, rfl⟩ |
| 43 | rw [hscale] at hcenter |
| 44 | have h := mul_le_mul_of_nonneg_left hcenter (sq_nonneg r) |
| 45 | rwa [← mul_pow, mul_inv_cancel₀ hr.ne', one_pow] at h |
| 46 | |
| 47 | /-- Remark 9.73: a scalar floor gives the specified upper radius, |
| 48 | using the exact radius equation rather than rescaling that radius. -/ |
| 49 | theorem scalar_curvature_radius_le_of_center_lower |
| 50 | {M : Type u} [TopologicalSpace M] |
| 51 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 52 | [T3Space M] [ConnectedSpace M] (g : RiemannianMetric 3 M) |
| 53 | (D : LeviCivitaData g) (hcomplete : MetricComplete g) |
| 54 | (hR : Continuous D.scalarCurvature) (y : M) {r b : ℝ} |
| 55 | (hr : 0 < r) (hb : 0 < b) |
| 56 | (hscale : scalarCurvatureSupOn g D (g.ball y r) = r⁻¹ ^ 2) |
| 57 | (hfloor : b⁻¹ ^ 2 ≤ D.scalarCurvature y) : r ≤ b := by |
| 58 | have hcenter := scalar_curvature_radius_sq_mul_scalar_le_one g D hcomplete hR y hr hscale |
| 59 | have hRpos : 0 < D.scalarCurvature y := (sq_pos_of_pos (inv_pos.mpr hb)).trans_le hfloor |
| 60 | have hcross : 1 ≤ b ^ 2 * D.scalarCurvature y := by |
| 61 | have h := mul_le_mul_of_nonneg_left hfloor (sq_nonneg b) |
| 62 | rwa [← mul_pow, mul_inv_cancel₀ hb.ne', one_pow] at h |
| 63 | have hsq : r ^ 2 ≤ b ^ 2 := |
| 64 | (mul_le_mul_iff_of_pos_right hRpos).mp (hcenter.trans hcross) |
| 65 | nlinarith |
| 66 | |
| 67 | end PoincareMT.M35 |
| 68 | |
| 69 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 70 | |
| 71 | /-- Definition 9.72 in Theorem 12.28: after time one half, a |
| 72 | uniformly large actual center scalar discharges both noncollapsing |
| 73 | restrictions and gives the same kappa/8 bound at every exact radius. -/ |
| 74 | theorem scalar_curvature_ball_volume_lower_of_large_scalar |
| 75 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 76 | (E : RepairedStandardCapExistenceData g₀) |
| 77 | (N : StandardFlowNoncollapsingCertificate E.flow) {t r : ℝ} |
| 78 | (ht : t ∈ Ico 0 E.flow.base.lifetime) (htlow : 1 / 2 ≤ t) (hr : 0 < r) |
| 79 | (y : StandardCapSpace) |
| 80 | (hscale : scalarCurvatureSupOn (E.flow.metric t) (E.flow.connection t) |
| 81 | ((E.flow.metric t).ball y r) = r⁻¹ ^ 2) |
| 82 | (hfloor : max (N.radius⁻¹ ^ 2) 2 ≤ (E.flow.connection t).scalarCurvature y) : |
| 83 | ENNReal.ofReal (N.kappa / 8 * r ^ 3) ≤ |
| 84 | calibratedMetricVolume (E.flow.metric t) ((E.flow.metric t).ball y r) := by |
| 85 | have hRcont : Continuous (E.flow.connection t).scalarCurvature := |
| 86 | (Proofs.M09.scalarCurvature_contMDiff P (E.flow.connection t)).continuous |
| 87 | have hcomplete := E.complete t ht |
| 88 | have hradius := M35.scalar_curvature_radius_le_of_center_lower |
| 89 | (E.flow.metric t) (E.flow.connection t) hcomplete hRcont y hr N.radius_pos |
| 90 | hscale ((le_max_left _ _).trans hfloor) |
| 91 | have hsize := M35.scalar_curvature_radius_sq_mul_scalar_le_one |
| 92 | (E.flow.metric t) (E.flow.connection t) hcomplete hRcont y hr hscale |
| 93 | have htwo := mul_le_mul_of_nonneg_left ((le_max_right _ _).trans hfloor) (sq_nonneg r) |
| 94 | exact E.scalar_curvature_ball_volume_lower P N ht hr hradius (by nlinarith) y hscale |
| 95 | |
| 96 | end PoincareMT.RepairedStandardCapExistenceData |