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.PartialScalarConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.StaticLimit.StaticTerminalReadout |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Terminal.TerminalSourceBounds |
| 4 | |
| 5 | /-! |
| 6 | # Actual terminal scalar convergence and short-control readout |
| 7 | |
| 8 | Morgan--Tian Claim 11.5 and the conclusion of Theorem 11.1, pp. 270--271. |
| 9 | The same static embeddings retain the original normalized scalar uniformly |
| 10 | on compact sets. A separately proved global limit bound then supplies the |
| 11 | radius-independent short controls, using all-radius compact capture. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency 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.chartedSpace |
| 25 | FlowCarrier.isManifold |
| 26 | |
| 27 | /-- The original normalized terminal scalars converge uniformly on every |
| 28 | compact set along the actual static embeddings (Theorem 11.1, p. 271). -/ |
| 29 | theorem tendstoUniformlyOn_terminal_normalized_scalar |
| 30 | (S : GeneralizedBlowupSequence.{u}) |
| 31 | (G : PartialPointedMetricConvergence (terminalComponentMetric S) |
| 32 | (terminalComponentBase S) 1) |
| 33 | (D : LeviCivitaData G.limitMetric) (K : Set G.limitCarrier.carrier) |
| 34 | (hK : IsCompact K) : |
| 35 | TendstoUniformlyOn |
| 36 | (fun k x => (S.flow (G.subsequence k)).scalar |
| 37 | ⟨(S.base (G.subsequence k)).1, (G.embedding k x).val⟩ / S.scale (G.subsequence k)) |
| 38 | D.scalarCurvature atTop K := by |
| 39 | simpa only [terminalComponentMetric_scalarCurvature] using |
| 40 | G.tendstoUniformlyOn_scalarCurvature |
| 41 | (fun k => (terminalComponentMetric S k).leviCivitaData) D K hK |
| 42 | |
| 43 | /-- The actual limit connection has scalar one at the retained basepoint |
| 44 | (Claim 11.5, p. 270). -/ |
| 45 | theorem terminal_static_limit_base_scalar |
| 46 | (S : GeneralizedBlowupSequence.{u}) |
| 47 | (G : PartialPointedMetricConvergence (terminalComponentMetric S) |
| 48 | (terminalComponentBase S) 1) |
| 49 | (D : LeviCivitaData G.limitMetric) : D.scalarCurvature G.base = 1 := by |
| 50 | have h := (G.tendstoUniformlyOn_scalarCurvature |
| 51 | (fun k => (terminalComponentMetric S k).leviCivitaData) D |
| 52 | {G.base} isCompact_singleton).tendsto_at (mem_singleton G.base) |
| 53 | have hsource (k : ℕ) : |
| 54 | (terminalComponentMetric S (G.subsequence k)).leviCivitaData.scalarCurvature |
| 55 | (G.embedding k G.base) = 1 := by |
| 56 | rw [G.base_preserving] |
| 57 | exact terminalComponentMetric_base_scalar S (G.subsequence k) _ |
| 58 | have hconst : Tendsto (fun _ : ℕ => (1 : ℝ)) atTop (𝓝 (D.scalarCurvature G.base)) := by |
| 59 | simpa only [hsource] using h |
| 60 | exact tendsto_nhds_unique hconst tendsto_const_nhds |
| 61 | |
| 62 | /-- All-radius coverage and a global bound on the actual static scalar |
| 63 | give common short controls on its original selected sequence |
| 64 | (Theorem 11.1 after Claim 11.7, p. 271). -/ |
| 65 | theorem shortControls_of_static_terminal_limit_bound |
| 66 | (hC : RicciFlowCurvatureTheory.{u}) {S : GeneralizedBlowupSequence.{u}} |
| 67 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 68 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 69 | (G : PartialPointedMetricConvergence (terminalComponentMetric S) |
| 70 | (terminalComponentBase S) 1) |
| 71 | (D : LeviCivitaData G.limitMetric) |
| 72 | (hcoverage : ∀ A : ℝ, 0 < A → ∃ l : ℕ, ∀ᶠ k in atTop, |
| 73 | (terminalComponentMetric S (G.subsequence k)).ball |
| 74 | (terminalComponentBase S (G.subsequence k)) A ⊆ |
| 75 | G.embedding k '' G.exhaustion l) |
| 76 | {B : ℝ} (hbound : ∀ x : G.limitCarrier.carrier, D.scalarCurvature x ≤ B) : |
| 77 | Nonempty (ShortControlledBlowupHypotheses |
| 78 | (reindexedBlowupSequence S G.subsequence G.subsequence_strictMono) kappa r₀) := |
| 79 | shortControls_of_terminal_scalar_convergence hC H G.subsequence G.subsequence_strictMono |
| 80 | G.limitCarrier G.limitMetric D (fun k x => (G.embedding k x).val) |
| 81 | (exists_eventually_terminal_source_compact_capture S G hcoverage) |
| 82 | (tendstoUniformlyOn_terminal_normalized_scalar S G D) hbound |
| 83 | |
| 84 | end PoincareMT.M30 |