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.UniquenessData |
| 3 | import PoincareLib.Geometry.Riemannian.ScalarOperators.Gradient |
| 4 | |
| 5 | /-! |
| 6 | # Actual scalar directional bounds from quantitative caps |
| 7 | |
| 8 | Morgan-Tian Definition 9.72 and Theorem 12.28, pp. 323-324. The |
| 9 | frozen scalar-gradient supremum bounds each unit directional derivative |
| 10 | because its actual range is bounded by the metric gradient norm. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.LeviCivitaData |
| 21 | |
| 22 | /-- Definition 9.72: the actual scalar-gradient supremum dominates each |
| 23 | unit directional evaluation, with boundedness justified by metric duality. -/ |
| 24 | theorem abs_scalar_directional_le_scalarGradientNorm |
| 25 | {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {g : RiemannianMetric 3 M} (D : LeviCivitaData g) (x : M) |
| 28 | (v : TangentSpace (𝓡 3) x) (hv : g.inner x v v = 1) : |
| 29 | |mvfderiv (𝓡 3) D.scalarCurvature x v| ≤ scalarGradientNorm g D x := by |
| 30 | unfold scalarGradientNorm |
| 31 | refine le_csSup (s := range (fun w : {w // g.inner x w w = 1} => |
| 32 | |mvfderiv (𝓡 3) D.scalarCurvature x w.val|)) ?_ ⟨⟨v, hv⟩, rfl⟩ |
| 33 | refine ⟨g.tangentNorm x (D.gradient D.scalarCurvature x), ?_⟩ |
| 34 | rintro z ⟨⟨w, hw⟩, rfl⟩ |
| 35 | have h := D.abs_mvfderiv_le_gradient_norm D.scalarCurvature x w |
| 36 | have hn : g.tangentNorm x w = 1 := by |
| 37 | change Real.sqrt (g.inner x w w) = 1 |
| 38 | rw [hw, Real.sqrt_one] |
| 39 | simpa only [hn, mul_one] using h |
| 40 | |
| 41 | end PoincareMT.LeviCivitaData |
| 42 | |
| 43 | namespace PoincareMT.StandardCapNeighborhood |
| 44 | |
| 45 | /-- Theorem 12.28, pp. 323-324: the actual quantitative cap supplies |
| 46 | both required absolute scalar analytic bounds at its designated center. -/ |
| 47 | theorem scalar_analytic_bounds {atlas : StandardCylinderAtlas} {g₀ : StandardInitialMetric} |
| 48 | {F : MaximalStandardCapFlow g₀} {t epsilon C : ℝ} {x : StandardCapSpace} |
| 49 | (N : StandardCapNeighborhood atlas F t epsilon C x) : |
| 50 | (∀ v : TangentSpace (𝓡 3) x, (F.metric t).inner x v v = 1 → |
| 51 | |mvfderiv (𝓡 3) (F.connection t).scalarCurvature x v| < |
| 52 | C * (F.connection t).scalarCurvature x ^ (3 / 2 : ℝ)) ∧ |
| 53 | |(F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 54 | 2 * (F.connection t).ricciNormSq x| < C * ((F.connection t).scalarCurvature x) ^ 2 := by |
| 55 | have hx : x ∈ N.carrier := by |
| 56 | have hcore := interior_subset N.center_in_core |
| 57 | rw [N.closed_core_eq] at hcore |
| 58 | exact hcore.1 |
| 59 | refine ⟨?_, N.time_derivative_bound x hx⟩ |
| 60 | intro v hv |
| 61 | exact ((F.connection t).abs_scalar_directional_le_scalarGradientNorm x v hv).trans_lt |
| 62 | (N.gradient_bound x hx) |
| 63 | |
| 64 | end PoincareMT.StandardCapNeighborhood |
| 65 | |
| 66 | namespace PoincareMT.M35 |
| 67 | |
| 68 | /-- Definition 9.72 in Theorem 12.28: a full Chapter 9 cap certificate |
| 69 | supplies the two absolute analytic controls throughout its core, using |
| 70 | its own connection and the strict uniform witnesses in that certificate. -/ |
| 71 | theorem capCertificate_scalar_analytic_bounds |
| 72 | {M : Type u} [TopologicalSpace M] |
| 73 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 74 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 75 | {g : RiemannianMetric 3 M} (N : CapCertificate g) {x : M} (hx : x ∈ N.core) : |
| 76 | (∀ v : TangentSpace (𝓡 3) x, g.inner x v v = 1 → |
| 77 | |mvfderiv (𝓡 3) N.connection.scalarCurvature x v| ≤ |
| 78 | N.cap_constant * N.connection.scalarCurvature x ^ (3 / 2 : ℝ)) ∧ |
| 79 | |N.connection.laplacian N.connection.scalarCurvature x + |
| 80 | 2 * N.connection.ricciNormSq x| ≤ |
| 81 | N.cap_constant * (N.connection.scalarCurvature x) ^ 2 := by |
| 82 | have hxU : x ∈ N.carrier := by |
| 83 | rw [N.core_eq_interior_closed_core] at hx |
| 84 | have hclosed := interior_subset hx |
| 85 | rw [N.closed_core_eq_complement_end] at hclosed |
| 86 | exact hclosed.1 |
| 87 | obtain ⟨B, hB, hgrad⟩ := N.gradient_bound |
| 88 | obtain ⟨D, hD, htime⟩ := N.laplacian_bound |
| 89 | constructor |
| 90 | · intro v hv |
| 91 | exact (N.connection.abs_scalar_directional_le_scalarGradientNorm x v hv).trans |
| 92 | ((hgrad x hxU).trans (mul_le_mul_of_nonneg_right hB.le |
| 93 | (Real.rpow_nonneg (N.scalar_pos x hxU).le _))) |
| 94 | · exact (htime x hxU).trans (mul_le_mul_of_nonneg_right hD.le (sq_nonneg _)) |
| 95 | |
| 96 | end PoincareMT.M35 |