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.Harnack.Noncompact.AncientVolume.Splitting.CompleteCoverage |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 3 | |
| 4 | /-! |
| 5 | # Minimizing lines in the constructed ancient limit |
| 6 | |
| 7 | Restricting an ancient pointed limit to a finite window retains the same |
| 8 | carrier and metric. Completeness supplies source-ball coverage, so source |
| 9 | arcs with asymptotically real-line distances give a line in that very limit. |
| 10 | This is the line transport in Kleiner--Lott, Proposition 41.13, p. 2678, |
| 11 | and Appendix G, p. 2852 (corrected 2013). |
| 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 |
| 19 | |
| 20 | namespace PoincareMT.AncientPointedGeometricConvergence |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 23 | FlowCarrier.isManifold |
| 24 | |
| 25 | /-- Source arcs produce an intrinsic minimizing line through the base point |
| 26 | of the same complete ancient flow supplied by pointed compactness. -/ |
| 27 | theorem exists_isometric_line_of_source_arcs |
| 28 | {n : ℕ} {C : ℕ → FlowCarrier.{0} n} {J : ℕ → Set ℝ} |
| 29 | (F : ∀ k, RicciFlow n (C k).carrier (J k)) {p : ∀ k, (C k).carrier} {T : ℝ} |
| 30 | (G : AncientPointedGeometricConvergence C (fun k => (F k).metric) p T) |
| 31 | (hT : 0 < T) |
| 32 | (htime : ∀ a b : ℝ, b < T → ∀ᶠ k in atTop, Icc a b ⊆ J k) |
| 33 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) |
| 34 | (arc : ∀ k, ℝ → (C k).carrier) (hbase : ∀ k, arc k 0 = p k) |
| 35 | (hdist : ∀ s t : ℝ, Tendsto (fun k => |
| 36 | (((F k).metric 0).edist (arc k s) (arc k t)).toReal) atTop (𝓝 |s - t|)) : |
| 37 | letI := G.limitCarrier.metricSpaceOf (G.limitFlow.metric 0) |
| 38 | ∃ gamma : ℝ → G.limitCarrier.carrier, Isometry gamma ∧ gamma 0 = G.base := by |
| 39 | obtain ⟨a, b, ha, hb, hbT, _⟩ := exists_ancient_window_of_isCompact hT |
| 40 | isCompact_singleton (singleton_subset_iff.mpr hT) |
| 41 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 42 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 43 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 44 | have hcover := W.source_ball_coverage_of_metricComplete_zero ⟨ha, hb⟩ hcomplete |
| 45 | obtain ⟨gamma, hi, hzero, _⟩ := W.exists_isometric_line_of_source_arcs |
| 46 | ⟨ha, hb⟩ hcover (fun k => arc (G.subsequence (k + N))) |
| 47 | (fun k => hbase (G.subsequence (k + N))) |
| 48 | (fun s t => (hdist s t).comp |
| 49 | (G.subsequence_strictMono.tendsto_atTop.comp (tendsto_add_atTop_nat N))) |
| 50 | exact ⟨gamma, hi, hzero⟩ |
| 51 | |
| 52 | end PoincareMT.AncientPointedGeometricConvergence |