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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Predecessors.Necks.Geometry.AmbientScalar |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Predecessors.Necks.Geometry.ModelScalar |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Predecessors.Necks.Geometry.RealizedCurvature |
| 5 | |
| 6 | /-! |
| 7 | # Uniform scalar curvature control throughout a neck |
| 8 | |
| 9 | The realized curvature modulus, numerical cylinder scalar and ambient |
| 10 | naturality give one epsilon threshold for normalized scalar control at |
| 11 | every point of every neck. This is the scalar part of Morgan--Tian |
| 12 | Lemma A.2, pp. 497-498, used in the scale comparison of Proposition A.11. |
| 13 | See the ambient-scalar-naturality derivation. No quantitative O(epsilon^2) |
| 14 | rate, graph theorem or axial-angle bound is asserted here. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.EpsilonNeck |
| 25 | |
| 26 | /-- Lemma A.2, pp. 497-498: at one universal epsilon threshold, normalized |
| 27 | ambient scalar curvature is close to one throughout every retained neck. -/ |
| 28 | theorem exists_normalized_scalar_control {α : ℝ} (hα : 0 < α) : |
| 29 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 30 | ∀ {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 32 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 33 | {g : RiemannianMetric 3 M}, ∀ (N : EpsilonNeck g), N.epsilon ≤ epsilon0 → |
| 34 | ∀ (q : UnitTwoSphere) {s : ℝ}, s ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ → |
| 35 | |N.scale ^ 2 * N.connection.scalarCurvature (N.coordinate_map (q, s)) - 1| < α := by |
| 36 | obtain ⟨epsilon0, hpos, hcap, hcontrol⟩ := exists_realized_scalar_ricci_control.{u} hα |
| 37 | refine ⟨epsilon0, hpos, hcap, ?_⟩ |
| 38 | intro M _ _ _ _ _ _ g N hepsilon q s hs |
| 39 | obtain ⟨h, D, V, hV, h0, hstrip, heq⟩ := |
| 40 | N.m25_exists_normalizedEuclideanCoefficients_realization q hs |
| 41 | have hnear : h.euclideanCoefficients =ᶠ[𝓝 0] N.m25_normalizedEuclideanCoefficients q s := |
| 42 | Filter.mem_of_superset (hV.mem_nhds h0) heq |
| 43 | have hscalar := (hcontrol N hepsilon q hs h D hnear).1 |
| 44 | rw [N.realization_scalar_eq q s h D hV h0 hstrip heq, |
| 45 | roundCylinderEuclideanModelConnection_scalar_one] at hscalar |
| 46 | exact hscalar |
| 47 | |
| 48 | /-- The coordinate form of Lemma A.2 gives the same uniform estimate at |
| 49 | every ambient point of the carrier, with no coordinate choices in the result. -/ |
| 50 | theorem exists_normalized_scalar_control_on_carrier {α : ℝ} (hα : 0 < α) : |
| 51 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 52 | ∀ {M : Type u} [TopologicalSpace M] |
| 53 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 54 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 55 | {g : RiemannianMetric 3 M}, ∀ (N : EpsilonNeck g), N.epsilon ≤ epsilon0 → |
| 56 | ∀ x ∈ N.carrier, |N.scale ^ 2 * N.connection.scalarCurvature x - 1| < α := by |
| 57 | obtain ⟨epsilon0, hpos, hcap, hcontrol⟩ := exists_normalized_scalar_control.{u} hα |
| 58 | refine ⟨epsilon0, hpos, hcap, ?_⟩ |
| 59 | intro M _ _ _ _ _ _ g N hepsilon x hx |
| 60 | have h := hcontrol N hepsilon (N.coordinate_inverse x).1 |
| 61 | (N.coordinate_inverse_mem x hx).2 |
| 62 | rw [Prod.mk.eta, N.coordinate_map_coordinate_inverse hx] at h |
| 63 | exact h |
| 64 | |
| 65 | end PoincareMT.EpsilonNeck |