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.Singular.RegularLimit.Canonical.CompactCapture |
| 2 | import PoincareLib.Geometry.Riemannian.Normalization.Curvature.Pinching |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.Regularity |
| 4 | |
| 5 | /-! |
| 6 | # Compact capture of canonical components |
| 7 | |
| 8 | The sectional lower bound of a canonical compact component controls its |
| 9 | scalar supremum by the scalar at any selected point. On a regular worldline |
| 10 | this gives a common compact regular set for all sufficiently late carriers. |
| 11 | |
| 12 | Reference: Morgan--Tian, Definition 9.75, p. 231, and Lemma 11.24, pp. 281--284. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | namespace SingularCComponent |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 28 | [IsManifold (𝓡 3) ∞ M] |
| 29 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} {C : ℝ} |
| 30 | |
| 31 | /-- The six sectional terms in dimension three bound the component's scalar |
| 32 | supremum using the scalar at any point of its carrier. -/ |
| 33 | theorem scalar_sup_le_constant_div_six_mul (N : SingularCComponent g D C) |
| 34 | {x : M} (hx : x ∈ N.carrier) : |
| 35 | scalarCurvatureSupOn g D N.carrier ≤ (C / 6) * D.scalarCurvature x := by |
| 36 | have htrace := normalization_scalarCurvature_lower_bound D x |
| 37 | (C⁻¹ * scalarCurvatureSupOn g D N.carrier) (by |
| 38 | intro v w hvw |
| 39 | have h := (N.sectional_lower x hx v w hvw).le |
| 40 | simpa only [LeviCivitaData.sectionalCurvature, hvw.1, hvw.2.1, hvw.2.2, |
| 41 | mul_one, zero_pow (by decide : (2 : ℕ) ≠ 0), sub_zero, div_one] using h) |
| 42 | have hmul := mul_le_mul_of_nonneg_left htrace N.constant_pos.le |
| 43 | have heq : C * (6 * (C⁻¹ * scalarCurvatureSupOn g D N.carrier)) = |
| 44 | 6 * scalarCurvatureSupOn g D N.carrier := by |
| 45 | field_simp [ne_of_gt N.constant_pos] |
| 46 | rw [heq] at hmul |
| 47 | linarith |
| 48 | |
| 49 | /-- Every scalar value is controlled by the same selected carrier point. -/ |
| 50 | theorem scalar_le_constant_div_six_mul (N : SingularCComponent g D C) |
| 51 | {x y : M} (hx : x ∈ N.carrier) (hy : y ∈ N.carrier) : |
| 52 | D.scalarCurvature y ≤ (C / 6) * D.scalarCurvature x := by |
| 53 | obtain ⟨B, hB⟩ := N.compact.bddAbove_image D.continuous_scalarCurvature.continuousOn |
| 54 | have hbounded : BddAbove (range (fun z : N.carrier => D.scalarCurvature z.1)) := by |
| 55 | refine ⟨B, ?_⟩ |
| 56 | rintro _ ⟨z, rfl⟩ |
| 57 | exact hB ⟨z.1, z.2, rfl⟩ |
| 58 | exact (le_csSup hbounded ⟨⟨y, hy⟩, rfl⟩).trans |
| 59 | (N.scalar_sup_le_constant_div_six_mul hx) |
| 60 | |
| 61 | end SingularCComponent |
| 62 | |
| 63 | namespace SingularTimeAssumptions |
| 64 | |
| 65 | variable {M : Type u} [TopologicalSpace M] |
| 66 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 67 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 68 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 69 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 70 | |
| 71 | /-- All late canonical compact components containing a fixed regular |
| 72 | worldline have their reference carriers in one compact regular subset. -/ |
| 73 | theorem exists_compact_cComponent_carrier_capture |
| 74 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 75 | {x : M} (hx : x ∈ H.reference.regularLimitSet) : |
| 76 | ∃ A : Set M, IsCompact A ∧ A ⊆ H.reference.regularLimitSet ∧ |
| 77 | ∃ s : ℝ, H.reference.tMinus < s ∧ s < T ∧ |
| 78 | ∀ t (ht : t ∈ Ico H.reference.tMinus T), s ≤ t → |
| 79 | ∀ N : SingularCComponent (F.metric t) (F.connection t) H.constant, |
| 80 | H.reference.forward t ht x ∈ N.carrier → |
| 81 | closure (H.reference.inverse t ht '' N.carrier) ⊆ A := by |
| 82 | obtain ⟨a, B, U, ha, haT, _, _, hxU, _, hbound⟩ := |
| 83 | H.exists_open_uniform_scalar_tail P04 hx |
| 84 | obtain ⟨A, hA, hAreg, b, _, hbT, hcapture⟩ := |
| 85 | H.exists_compact_containing_scalar_sublevel_tail P04 ((H.constant / 6) * B) |
| 86 | refine ⟨A, hA, hAreg, max a b, ha.trans_le (le_max_left _ _), max_lt haT hbT, ?_⟩ |
| 87 | intro t ht hst N hxN |
| 88 | have hat : a ≤ t := (le_max_left a b).trans hst |
| 89 | have hbt : b ≤ t := (le_max_right a b).trans hst |
| 90 | have hcenter : (F.connection t).scalarCurvature (H.reference.forward t ht x) ≤ B := by |
| 91 | rw [H.reference.scalar_pullback t ht x] |
| 92 | exact hbound t ⟨hat, ht.2⟩ x hxU |
| 93 | apply closure_minimal _ hA.isClosed |
| 94 | rintro y ⟨z, hz, rfl⟩ |
| 95 | apply hcapture t ⟨hbt, ht.2⟩ |
| 96 | change H.reference.scalar t (H.reference.inverse t ht z) ≤ (H.constant / 6) * B |
| 97 | dsimp only [SingularTimeReference.scalar] |
| 98 | rw [← H.reference.scalar_pullback t ht (H.reference.inverse t ht z), |
| 99 | H.reference.right_inverse t ht z] |
| 100 | exact (N.scalar_le_constant_div_six_mul hxN hz).trans |
| 101 | (mul_le_mul_of_nonneg_left hcenter (by positivity [H.constant_pos])) |
| 102 | |
| 103 | end SingularTimeAssumptions |
| 104 | |
| 105 | end PoincareMT |