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.Blowup.Construction.PartialLimits.BasedComponent |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Terminal.TerminalDerivatives |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Terminal.TerminalVolume |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Calibration |
| 5 | |
| 6 | /-! |
| 7 | # The actual terminal component supplies static compactness geometry |
| 8 | |
| 9 | Morgan--Tian Corollary 11.4 and Claim 11.5, p. 270. On the basepoint |
| 10 | component of each scaled terminal slice, compact balls, curvature |
| 11 | derivative bounds and a fixed positive base volume are inherited from the |
| 12 | generalized source. The bounds remain local in radius and derivative order. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 25 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 26 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 27 | |
| 28 | /-- The connected terminal component used in Claim 11.5, p. 270. -/ |
| 29 | noncomputable def terminalComponentCarrier (S : GeneralizedBlowupSequence.{u}) (k : ℕ) : |
| 30 | FlowCarrier.{u} 3 := |
| 31 | basedSliceCarrier ((S.flow k).slice (S.base k).1) (S.base k).2 |
| 32 | |
| 33 | /-- The original basepoint in its terminal component (Claim 11.5, p. 270). -/ |
| 34 | def terminalComponentBase (S : GeneralizedBlowupSequence.{u}) (k : ℕ) : |
| 35 | (terminalComponentCarrier S k).carrier := |
| 36 | ⟨(S.base k).2, mem_connectedComponent⟩ |
| 37 | |
| 38 | /-- The scaled terminal metric restricted to the actual basepoint component |
| 39 | (Definition 3.40 and Claim 11.5, pp. 61 and 270). -/ |
| 40 | noncomputable def terminalComponentMetric (S : GeneralizedBlowupSequence.{u}) (k : ℕ) : |
| 41 | (terminalComponentCarrier S k).metric := |
| 42 | basedSliceMetric ((S.flow k).slice (S.base k).1) (S.base k).2 |
| 43 | (M13.scaleSmoothMetric ((S.flow k).metric (S.base k).1) |
| 44 | (S.scale k) (S.base_scalar_pos k)) |
| 45 | |
| 46 | /-- Actual component balls project onto the frozen normalized source balls |
| 47 | (Claim 11.5, p. 270). -/ |
| 48 | theorem terminalComponentMetric_image_ball (S : GeneralizedBlowupSequence.{u}) |
| 49 | (k : ℕ) (A : ℝ) : |
| 50 | Subtype.val '' (terminalComponentMetric S k).ball (terminalComponentBase S k) A = |
| 51 | S.baseBall k A := by |
| 52 | exact (basedSliceMetric_image_ball ((S.flow k).slice (S.base k).1) (S.base k).2 |
| 53 | _ (terminalComponentBase S k) A).trans (scaled_terminal_ball_eq_baseBall S k A) |
| 54 | |
| 55 | /-- Each fixed component ball eventually has compact closure |
| 56 | (Claim 11.5 and Theorem 5.9, pp. 270 and 88--89). -/ |
| 57 | theorem eventually_terminalComponent_compact_ball |
| 58 | {S : GeneralizedBlowupSequence.{u}} {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 59 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 60 | (A : ℝ) (hA : 0 < A) : |
| 61 | ∀ᶠ k in atTop, |
| 62 | IsCompact (closure ((terminalComponentMetric S k).ball (terminalComponentBase S k) A)) := by |
| 63 | filter_upwards [H.balls_compact A hA] with k hk |
| 64 | apply basedSliceMetric_isCompact_closure_ball |
| 65 | simpa only [terminalComponentBase, scaled_terminal_ball_eq_baseBall] using hk |
| 66 | |
| 67 | /-- Every fixed radius and covariant derivative order have an eventual |
| 68 | uniform bound on the actual component (Corollary 11.4, p. 270). -/ |
| 69 | theorem eventually_terminalComponent_curvatureDerivativeNorm_le |
| 70 | (hC : RicciFlowCurvatureTheory.{u}) {S : GeneralizedBlowupSequence.{u}} |
| 71 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 72 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 73 | (hbound : GeneralizedBlowupBoundedDistance S) (A : ℝ) (hA : 0 < A) (m : ℕ) : |
| 74 | ∃ D : ℝ, 0 < D ∧ ∀ᶠ k in atTop, |
| 75 | ∀ x ∈ (terminalComponentMetric S k).ball (terminalComponentBase S k) A, |
| 76 | (terminalComponentMetric S k).leviCivitaData.curvatureDerivativeNorm m x ≤ D := by |
| 77 | obtain ⟨D, hD, htail⟩ := eventually_terminal_curvatureDerivativeNorm_le hC H hbound A hA m |
| 78 | refine ⟨D, hD, htail.mono fun k hk x hx => ?_⟩ |
| 79 | have hx' : x.val ∈ S.baseBall k A := by |
| 80 | rw [← terminalComponentMetric_image_ball S k A] |
| 81 | exact mem_image_of_mem Subtype.val hx |
| 82 | let g : RiemannianMetric 3 ((S.flow k).slice (S.base k).1).carrier := |
| 83 | M13.scaleSmoothMetric ((S.flow k).metric (S.base k).1) |
| 84 | (S.scale k) (S.base_scalar_pos k) |
| 85 | exact (basedSliceMetric_curvatureDerivativeNorm ((S.flow k).slice (S.base k).1) |
| 86 | (S.base k).2 g g.leviCivitaData m x).trans_le (hk x.val hx') |
| 87 | |
| 88 | /-- One fixed positive base radius and volume lower bound hold on the |
| 89 | actual component before extraction (Claim 11.5, p. 270). -/ |
| 90 | theorem exists_eventually_terminalComponent_volume_lower_bound |
| 91 | (hC : RicciFlowCurvatureTheory.{u}) {S : GeneralizedBlowupSequence.{u}} |
| 92 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 93 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 94 | (hbound : GeneralizedBlowupBoundedDistance S) : |
| 95 | ∃ rho v : ℝ, 0 < rho ∧ 0 < v ∧ ∀ᶠ k in atTop, |
| 96 | ENNReal.ofReal v ≤ (terminalComponentMetric S k).volumeMeasure |
| 97 | ((terminalComponentMetric S k).ball (terminalComponentBase S k) rho) := by |
| 98 | obtain ⟨rho, v, hrho, hv, htail⟩ := |
| 99 | exists_eventually_scaled_terminal_volume_lower_bound hC H hbound |
| 100 | refine ⟨rho, v, hrho, hv, htail.mono fun k hk => ?_⟩ |
| 101 | rw [calibratedMetricVolume_eq_volumeMeasure] at hk |
| 102 | exact hk.trans_eq (basedSliceMetric_volume_ball ((S.flow k).slice (S.base k).1) |
| 103 | (S.base k).2 (M13.scaleSmoothMetric ((S.flow k).metric (S.base k).1) |
| 104 | (S.scale k) (S.base_scalar_pos k)) (terminalComponentBase S k) rho).symm |
| 105 | |
| 106 | end PoincareMT.M30 |