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.Metric.UniformScalar |
| 3 | |
| 4 | /-! # Uniform scales of round components near a regular terminal point -/ |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | set_option backward.isDefEq.respectTransparency false |
| 8 | |
| 9 | open Set Filter |
| 10 | open scoped Manifold ContDiff Bundle Topology |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | namespace PoincareMT.SingularRoundComponent |
| 15 | |
| 16 | open SingularRegularLimit.RoundComparison |
| 17 | |
| 18 | variable {M : Type*} [TopologicalSpace M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 20 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 21 | |
| 22 | /-- The actual normalization scale is comparable to the scalar at every |
| 23 | point of the retained component. -/ |
| 24 | theorem scale_bounds_of_contains (N : SingularRoundComponent g epsilon) |
| 25 | (D : LeviCivitaData g) (hepsilon : epsilon ≤ roundComparisonThreshold) |
| 26 | {x : M} (hx : x ∈ N.carrier) : |
| 27 | D.scalarCurvature x / 7 < N.scale ∧ N.scale < D.scalarCurvature x / 5 := by |
| 28 | have h := N.normalized_scalar_close D hepsilon (N.inverse x) |
| 29 | rw [N.right_inverse hx, inv_mul_eq_div] at h |
| 30 | obtain ⟨hl, hu⟩ := abs_lt.mp h |
| 31 | have hl' : 5 * N.scale < D.scalarCurvature x := |
| 32 | (lt_div_iff₀ N.scale_pos).mp (by linarith) |
| 33 | have hu' : D.scalarCurvature x < 7 * N.scale := |
| 34 | (div_lt_iff₀ N.scale_pos).mp (by linarith) |
| 35 | constructor <;> linarith |
| 36 | |
| 37 | end PoincareMT.SingularRoundComponent |
| 38 | |
| 39 | namespace PoincareMT.SingularTimeAssumptions |
| 40 | |
| 41 | open SingularRegularLimit.RoundComparison |
| 42 | |
| 43 | variable {M : Type u} [TopologicalSpace M] |
| 44 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 45 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 46 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 47 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 48 | |
| 49 | /-- All sufficiently late round certificates through a positive regular |
| 50 | terminal point have uniformly positive and bounded normalization scales. -/ |
| 51 | theorem eventually_roundComponent_scale_bounds |
| 52 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 53 | (hepsilon : H.epsilon ≤ roundComparisonThreshold) (x : H.regularRegion P04) |
| 54 | (hpos : 0 < (H.terminalConnection P04).scalarCurvature x) : |
| 55 | ∀ᶠ t in 𝓝[<] T, |
| 56 | ∀ N : SingularRoundComponent ((H.terminalFlow P04).metric t) H.epsilon, |
| 57 | x ∈ N.carrier → |
| 58 | (H.terminalConnection P04).scalarCurvature x / 14 < N.scale ∧ |
| 59 | N.scale < 2 * (H.terminalConnection P04).scalarCurvature x / 5 := by |
| 60 | have hscalar := H.tendsto_terminal_scalarCurvature P04 x |
| 61 | have hlow : ∀ᶠ t in 𝓝[<] T, |
| 62 | (H.terminalConnection P04).scalarCurvature x / 2 < H.reference.scalar t x := |
| 63 | hscalar.eventually (eventually_gt_nhds (by linarith : |
| 64 | (H.terminalConnection P04).scalarCurvature x / 2 < |
| 65 | (H.terminalConnection P04).scalarCurvature x)) |
| 66 | have hupp : ∀ᶠ t in 𝓝[<] T, |
| 67 | H.reference.scalar t x < 2 * (H.terminalConnection P04).scalarCurvature x := |
| 68 | hscalar.eventually (eventually_lt_nhds (by linarith : |
| 69 | (H.terminalConnection P04).scalarCurvature x < |
| 70 | 2 * (H.terminalConnection P04).scalarCurvature x)) |
| 71 | filter_upwards [hlow, hupp, self_mem_nhdsWithin] with t hlow hupp ht |
| 72 | intro N hx |
| 73 | obtain ⟨hscale, hscale'⟩ := N.scale_bounds_of_contains |
| 74 | ((H.terminalFlow P04).connection t) hepsilon hx |
| 75 | rw [H.terminalFlow_scalar_of_ne P04 ht.ne] at hscale hscale' |
| 76 | constructor <;> linarith |
| 77 | |
| 78 | end PoincareMT.SingularTimeAssumptions |