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.RoundComparison.Component |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.RegularLimit.Canonical.CompactCapture |
| 3 | |
| 4 | /-! |
| 5 | # Compact capture of late round-component carriers |
| 6 | |
| 7 | The scalar comparison on the whole round carrier places its reference image |
| 8 | inside one late scalar sublevel, hence inside a common compact regular subset. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.SingularTimeAssumptions |
| 20 | |
| 21 | open SingularRegularLimit.RoundComparison |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 27 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 28 | |
| 29 | /-- All sufficiently late round-component carriers through a fixed regular |
| 30 | worldline have their closures inside one compact regular reference subset. -/ |
| 31 | theorem exists_compact_roundComponent_carrier_capture |
| 32 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 33 | (hepsilon : H.epsilon ≤ roundComparisonThreshold) |
| 34 | {x : M} (hx : x ∈ H.reference.regularLimitSet) : |
| 35 | ∃ A : Set M, IsCompact A ∧ A ⊆ H.reference.regularLimitSet ∧ |
| 36 | ∃ s : ℝ, H.reference.tMinus < s ∧ s < T ∧ |
| 37 | ∀ t (ht : t ∈ Ico H.reference.tMinus T), s ≤ t → |
| 38 | ∀ N : SingularRoundComponent (F.metric t) H.epsilon, |
| 39 | H.reference.forward t ht x ∈ N.carrier → |
| 40 | closure (H.reference.inverse t ht '' N.carrier) ⊆ A := by |
| 41 | obtain ⟨a, B, U, ha, haT, _, _, hxU, _, hbound⟩ := |
| 42 | H.exists_open_uniform_scalar_tail P04 hx |
| 43 | obtain ⟨A, hA, hAreg, b, _, hbT, hcapture⟩ := |
| 44 | H.exists_compact_containing_scalar_sublevel_tail P04 (2 * B) |
| 45 | refine ⟨A, hA, hAreg, max a b, ha.trans_le (le_max_left _ _), max_lt haT hbT, ?_⟩ |
| 46 | intro t ht hst N hxN |
| 47 | have hat : a ≤ t := (le_max_left a b).trans hst |
| 48 | have hbt : b ≤ t := (le_max_right a b).trans hst |
| 49 | have hcenter : (F.connection t).scalarCurvature (H.reference.forward t ht x) ≤ B := by |
| 50 | rw [H.reference.scalar_pullback t ht x] |
| 51 | exact hbound t ⟨hat, ht.2⟩ x hxU |
| 52 | apply closure_minimal _ hA.isClosed |
| 53 | rintro y ⟨z, hz, rfl⟩ |
| 54 | apply hcapture t ⟨hbt, ht.2⟩ |
| 55 | change H.reference.scalar t (H.reference.inverse t ht z) ≤ 2 * B |
| 56 | dsimp only [SingularTimeReference.scalar] |
| 57 | rw [← H.reference.scalar_pullback t ht (H.reference.inverse t ht z), |
| 58 | H.reference.right_inverse t ht z] |
| 59 | exact (N.scalar_le_two_mul (F.connection t) hepsilon hxN hz).trans |
| 60 | (mul_le_mul_of_nonneg_left hcenter (by norm_num)) |
| 61 | |
| 62 | end PoincareMT.SingularTimeAssumptions |