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.AncientKappa.Compactness.Boundedness.Escape |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Geometry.NeckLevels.Scale |
| 3 | |
| 4 | /-! |
| 5 | # Excluding spherical necks along the selected curvature sequence |
| 6 | |
| 7 | The actual selected centers escape the terminal metric's exhaustion while |
| 8 | their prescribed neck scales tend to zero. The uniform remote-neck scale |
| 9 | bound therefore excludes a spherical neck subsequence. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open Poincare.Riemannian.Soul |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.RicciFlow.SelectedAncientRescalings |
| 23 | |
| 24 | variable {M : Type} [TopologicalSpace M] [T2Space M] [T3Space M] |
| 25 | [SecondCountableTopology M] [ConnectedSpace M] [NoncompactSpace M] |
| 26 | [MeasurableSpace M] [BorelSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | {b κ : ℝ} {F : RicciFlow 3 M (Iic b)} {p : M} |
| 29 | (S : SelectedAncientRescalings F κ p) |
| 30 | |
| 31 | /-- No subsequence of the actual selected centers can eventually carry |
| 32 | sufficiently precise spherical necks at their prescribed scalar scales. -/ |
| 33 | theorem exists_no_eventual_spherical_necks |
| 34 | (hc : MetricComplete (F.metric b)) |
| 35 | (hsec : (F.connection b).NonnegativeSectionalCurvature) : |
| 36 | ∃ ε₀ : ℝ, 0 < ε₀ ∧ ∀ ε : ℝ, 0 < ε → ε ≤ ε₀ → |
| 37 | ∀ σ : ℕ → ℕ, StrictMono σ → |
| 38 | ¬ (∀ᶠ i in atTop, ∃ N : EpsilonNeck (F.metric b), |
| 39 | N.epsilon = ε ∧ |
| 40 | N.scale = 1 / Real.sqrt ((F.connection b).scalarCurvature (S.center (σ i))) ∧ |
| 41 | N.center = S.center (σ i)) := by |
| 42 | let := (F.metric b).toMetricSpace |
| 43 | obtain ⟨ε₀, hε₀, s₀, hs₀, hbound⟩ := |
| 44 | (F.metric b).exists_remote_neck_scale_lower_bound (F.connection b) hc hsec p |
| 45 | refine ⟨ε₀, hε₀, ?_⟩ |
| 46 | intro ε hε hεsmall σ hσ hnecks |
| 47 | have hcenters := (S.centers_exhaustion_tendsto_atTop hc hsec).comp hσ.tendsto_atTop |
| 48 | have hscales := S.original_scales_tendsto_zero.comp hσ.tendsto_atTop |
| 49 | have houtside := S.eventually_outside_spherical_half_necks hσ hε |
| 50 | have himpossible : ∀ᶠ i : ℕ in atTop, False := by |
| 51 | filter_upwards [hnecks, hcenters.eventually_ge_atTop 2, |
| 52 | hscales.eventually_lt_const hs₀, houtside] with i hi hcᵢ hsᵢ hpᵢ |
| 53 | obtain ⟨N, hNe, hNs, hNc⟩ := hi |
| 54 | have hNremote : 2 ≤ busemannExhaustion p N.center := by |
| 55 | rw [hNc] |
| 56 | exact hcᵢ |
| 57 | have hNoutside : p ∉ N.coordinate_map '' |
| 58 | (univ ×ˢ Icc (-N.epsilon⁻¹ / 2) (N.epsilon⁻¹ / 2)) := by |
| 59 | rw [hNe] |
| 60 | exact hpᵢ N hNe hNs hNc |
| 61 | have hb := hbound N (hNe ▸ hεsmall) hNremote hNoutside |
| 62 | rw [hNs] at hb |
| 63 | exact (not_lt_of_ge hb) hsᵢ |
| 64 | exact (Filter.Eventually.exists himpossible).choose_spec |
| 65 | |
| 66 | end PoincareMT.RicciFlow.SelectedAncientRescalings |