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.Coordinates.EmbeddingConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.FlowRealization |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.PartialCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.TerminalPositivity |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Gluing |
| 6 | import PoincareLib.Geometry.Manifold.RegularLevel.OpenInclusion |
| 7 | |
| 8 | /-! |
| 9 | # Terminal Ricci flow on the retained interior carrier |
| 10 | |
| 11 | The original embedding coefficients produce positive closed chart flows. |
| 12 | Their interior metrics agree with the retained ancient limit. Continuity |
| 13 | through zero and metric descent glue them on that same carrier. |
| 14 | |
| 15 | Reference: Morgan--Tian, Theorem 9.64 and Proposition 5.14, pp. 225-229, 90-91. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter Metric |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 27 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | |
| 30 | local instance terminalConstructionConnected (C : FlowCarrier.{0} 3) : |
| 31 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 32 | |
| 33 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 34 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 35 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 36 | |
| 37 | /-- Each reference-coordinate ball supports an actual closed ancient flow |
| 38 | whose negative-time metric is the pullback of the retained interior limit. -/ |
| 39 | theorem exists_terminal_referenceChartBall_flow |
| 40 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 41 | (hcontrol : M23AllTimeCurvatureControl S) |
| 42 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) |
| 43 | (q : G.limitCarrier.carrier) {ρ : ℝ} (hρ : 0 < ρ) |
| 44 | (hchart : closedBall (extChartAt (𝓡 3) q q) ρ ⊆ (extChartAt (𝓡 3) q).target) : |
| 45 | ∃ F : RicciFlow 3 (G.referenceChartBall q ρ) (Iic 0), |
| 46 | ∀ t : ℝ, t < 0 → ∀ (x : G.referenceChartBall q ρ) |
| 47 | (v w : TangentSpace (𝓡 3) x), |
| 48 | (F.metric t).inner x v w = |
| 49 | (G.limitFlow.metric (t + 1)).inner (G.referenceChartBallMap q ρ x) |
| 50 | (mfderiv (𝓡 3) (𝓡 3) (G.referenceChartBallMap q ρ) x v) |
| 51 | (mfderiv (𝓡 3) (𝓡 3) (G.referenceChartBallMap q ρ) x w) := by |
| 52 | let c := extChartAt (𝓡 3) q |
| 53 | let U := G.referenceChartBall q ρ |
| 54 | obtain ⟨B, hB, hjet⟩ := S.exists_smooth_terminal_embedding_coefficients |
| 55 | G P hcontrol hcomplete q hρ hchart |
| 56 | obtain ⟨hsymm, hlower⟩ := S.terminal_coefficients_symmetric_positive_of_zero_jets |
| 57 | G P hcontrol hcomplete q (isCompact_closedBall (c q) ρ) hchart B (hjet 0) |
| 58 | obtain ⟨F, hF⟩ := RicciFlow.exists_ancient_limit_of_eventual_partial_chart_coefficients |
| 59 | (fun k => (S.term (G.subsequence k)).carrier) hρ |
| 60 | (fun k => (S.term (G.subsequence k)).flow.flow) |
| 61 | (G.embeddingChartPartialDiffeomorph q) |
| 62 | (G.eventually_subset_embeddingChartPartialDiffeomorph_source q |
| 63 | (isCompact_closedBall (c q) ρ) hchart) U (subset_refl _) B hB |
| 64 | (fun t ht x hx => hsymm t ht x (ball_subset_closedBall hx)) |
| 65 | (fun t ht x hx => hlower t ht x (ball_subset_closedBall hx)) hjet |
| 66 | refine ⟨F, ?_⟩ |
| 67 | intro t ht x v w |
| 68 | have hx : (x : EuclideanSpace ℝ (Fin 3)) ∈ closedBall (c q) ρ := |
| 69 | ball_subset_closedBall x.property |
| 70 | have hBvalue := AncientCompactness.tendsto_of_compact_zero_jets _ B |
| 71 | (Iic 0 ×ˢ closedBall (c q) ρ) (hjet 0) (z := (t, (x : EuclideanSpace ℝ (Fin 3)))) |
| 72 | ⟨ht.le, hx⟩ |
| 73 | have hinterior := (S.tendstoUniformlyOn_embedding_bilinear_metricJet_unshifted G q 0 |
| 74 | (K := {(t, (x : EuclideanSpace ℝ (Fin 3)))}) isCompact_singleton |
| 75 | (fun z hz => by rcases mem_singleton_iff.mp hz with rfl; exact ht) |
| 76 | (fun z hz => by rcases mem_singleton_iff.mp hz with rfl; exact hchart hx)).tendsto_at |
| 77 | (mem_singleton _) |
| 78 | have hvalue := (continuous_eval_const |
| 79 | (0 : Fin 0 → ℝ × EuclideanSpace ℝ (Fin 3))).continuousAt.tendsto.comp hinterior |
| 80 | simp only [iteratedFDeriv_zero_apply] at hvalue |
| 81 | have heq : B (t, (x : EuclideanSpace ℝ (Fin 3))) = |
| 82 | (G.limitFlow.metric (t + 1)).pullbackCoefficients c.symm x := |
| 83 | tendsto_nhds_unique hBvalue hvalue |
| 84 | have hc := (contMDiffWithinAt_extChartAt_symm_target (n := ∞) q (hchart hx)).contMDiffAt |
| 85 | (extChartAt_target_mem_nhds' (hchart hx)) |
| 86 | have hd := Poincare.Geometry.Manifold.RegularLevel.mfderiv_opens_restrict |
| 87 | U c.symm (x := x) (hc.mdifferentiableAt (by simp)) |
| 88 | rw [hF t ht.le x v w, heq] |
| 89 | change (G.limitFlow.metric (t + 1)).inner (c.symm x) |
| 90 | (mfderiv (𝓡 3) (𝓡 3) c.symm (x : EuclideanSpace ℝ (Fin 3)) v) |
| 91 | (mfderiv (𝓡 3) (𝓡 3) c.symm (x : EuclideanSpace ℝ (Fin 3)) w) = |
| 92 | (G.limitFlow.metric (t + 1)).inner (c.symm x) |
| 93 | (mfderiv (𝓡 3) (𝓡 3) (fun y : U => c.symm y) x v) |
| 94 | (mfderiv (𝓡 3) (𝓡 3) (fun y : U => c.symm y) x w) |
| 95 | rw [hd] |
| 96 | rfl |
| 97 | |
| 98 | /-- Actual source bounds extend the retained interior metric to a Ricci |
| 99 | flow through zero on its original spatial carrier. -/ |
| 100 | theorem exists_terminal_flow_on_interior_carrier |
| 101 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 102 | (hcontrol : M23AllTimeCurvatureControl S) |
| 103 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 104 | ∃ F : RicciFlow 3 G.limitCarrier.carrier (Iic 0), |
| 105 | ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1) := by |
| 106 | classical |
| 107 | choose ρ hρ hchart using G.exists_pos_referenceChartBall_radius |
| 108 | have hsmall (q : G.limitCarrier.carrier) : |
| 109 | closedBall (extChartAt (𝓡 3) q q) (ρ q) ⊆ (extChartAt (𝓡 3) q).target := |
| 110 | (closedBall_subset_closedBall (by linarith [hρ q] : ρ q ≤ 2 * ρ q)).trans (hchart q) |
| 111 | choose Fchart hFchart using fun q => S.exists_terminal_referenceChartBall_flow |
| 112 | G P hcontrol hcomplete q (hρ q) (hsmall q) |
| 113 | let Fneg : RicciFlow 3 G.limitCarrier.carrier (Iio 0) := |
| 114 | G.limitFlow.translate 1 (by |
| 115 | rintro _ ⟨t, ht, rfl⟩ |
| 116 | exact show t + 1 < 1 by have := ht; change t < 0 at this; linarith) |
| 117 | ordConnected_Iio ⟨-2, by norm_num, -1, by norm_num, by norm_num⟩ |
| 118 | obtain ⟨F, hF, _⟩ := RicciFlow.exists_terminal_extension_of_covering_chart_flows |
| 119 | Fneg Fchart (fun q => G.referenceChartBallMap q (ρ q)) |
| 120 | (fun q => G.referenceChartBallMap_isLocalDiffeomorph q (ρ q) |
| 121 | (ball_subset_closedBall.trans (hsmall q))) |
| 122 | (G.referenceChartBallMap_covers ρ hρ) (fun t ht q x v w => hFchart q t ht x v w) |
| 123 | exact ⟨F, hF⟩ |
| 124 | |
| 125 | end PoincareMT.NormalizedKappaSolutionSequence |