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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseCapture |
| 4 | import PoincareLib.Geometry.Riemannian.Distance.Basic |
| 5 | |
| 6 | /-! |
| 7 | # Actual finite source-center balls |
| 8 | |
| 9 | The literal zero-time embedding sends a fixed limit ball into a finite |
| 10 | physical base ball. Its point-map identity transports the dependent source |
| 11 | slice without choosing a new center. Source: MT Proposition 17.1; reviewed |
| 12 | limit-noncollapse generalized-final derivation, section 5. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | /-- A forward metric estimate places the actual zero-time point in the |
| 26 | physical base ball, retaining the dependent point-map equality. -/ |
| 27 | theorem limitNoncollapse_source_center_of_forward_bound |
| 28 | {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 29 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 30 | (e : GeneralizedFlowCylinder F C origin scale I U) (hU : IsOpen U) |
| 31 | (h0 : 0 ∈ I) (g : RiemannianMetric 3 C.carrier) |
| 32 | (o x : C.carrier) (p : F.point) (hp : e.pointMap 0 h0 o = p) |
| 33 | {r : ℝ} (hx : x ∈ g.ball o r) (hsource : g.ball o r ⊆ U) |
| 34 | (hbound : ∀ y ∈ g.ball o r, ∀ v : TangentSpace (𝓡 3) y, |
| 35 | e.pullbackInner 0 h0 y v v ≤ 2 * g.inner y v v) : |
| 36 | ∃ y ∈ (F.metric p.1).ball p.2 (2 * r / Real.sqrt scale), |
| 37 | e.pointMap 0 h0 x = (⟨p.1, y⟩ : F.point) := by |
| 38 | subst p |
| 39 | let f := e.spatialOpenPartialHomeomorph hU 0 h0 |
| 40 | let h := F.metric (origin + 0 / scale) |
| 41 | have hC : 0 < 2 / Real.sqrt scale := div_pos two_pos (Real.sqrt_pos.mpr e.scale_pos) |
| 42 | have himage := g.image_ball_subset_ball_of_tangentNorm_le h f o hC hsource |
| 43 | (fun y hy => ((e.forward_smooth 0 h0 y hy).contMDiffAt |
| 44 | (hU.mem_nhds hy)).of_le (by simp)) |
| 45 | (fun y hy v => limitNoncollapse_forward_tangent_bound g h v |
| 46 | (mfderiv (𝓡 3) (𝓡 3) (e.forward 0 h0) y v) e.scale_pos (hbound y hy v)) |
| 47 | refine ⟨e.forward 0 h0 x, ?_, rfl⟩ |
| 48 | have hmem := himage ⟨x, hx, rfl⟩ |
| 49 | have hr : (2 / Real.sqrt scale) * r = 2 * r / Real.sqrt scale := by ring |
| 50 | change h.edist (e.forward 0 h0 o) (e.forward 0 h0 x) < _ at hmem ⊢ |
| 51 | simpa only [hr] using hmem |
| 52 | |
| 53 | section Convergence |
| 54 | |
| 55 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 56 | (C : GeneralizedBlowupConvergence S J) |
| 57 | |
| 58 | private local instance : TopologicalSpace C.limit.carrier.carrier := |
| 59 | C.limit.carrier.topologicalSpace |
| 60 | private local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.limit.carrier.carrier := |
| 61 | C.limit.carrier.chartedSpace |
| 62 | private local instance : IsManifold (𝓡 3) ∞ C.limit.carrier.carrier := C.limit.carrier.isManifold |
| 63 | |
| 64 | /-- Every fixed limit point has an eventual actual source center in one |
| 65 | finite normalized base ball. The radius precedes the index and the actual |
| 66 | point-map equality is retained for finite-slab worldline uniqueness. -/ |
| 67 | theorem limitNoncollapse_eventually_source_center (p : C.limit.sliceCarrier.carrier) : |
| 68 | ∃ A : ℝ, 0 < A ∧ ∀ᶠ k : ℕ in atTop, |
| 69 | p ∈ C.exhaustion.space k ∧ |
| 70 | ∀ h0 : 0 ∈ Icc (-C.exhaustion.time k) 0, |
| 71 | ∃ y ∈ S.baseBall (C.subsequence k) A, |
| 72 | (C.embedding k).pointMap 0 h0 p = |
| 73 | (⟨(S.base (C.subsequence k)).1, y⟩ : (S.flow (C.subsequence k)).point) := by |
| 74 | let : T3Space C.limit.carrier.carrier := C.limit.carrier.t3Space |
| 75 | let : ConnectedSpace C.limit.carrier.carrier := C.limit.connectedSpace |
| 76 | let g := C.limit.flow.metric 0 |
| 77 | let r := (g.edist C.limit.base p).toReal + 1 |
| 78 | have hr : 0 < r := by dsimp only [r]; positivity |
| 79 | have hp : p ∈ g.ball C.limit.base r := by |
| 80 | change g.edist C.limit.base p < ENNReal.ofReal r |
| 81 | rw [← ENNReal.ofReal_toReal (g.edist_ne_top C.limit.base p)] |
| 82 | exact ENNReal.ofReal_lt_ofReal_iff hr |>.mpr (by dsimp only [r]; linarith) |
| 83 | have hK : IsCompact (closure (g.ball C.limit.base r)) := |
| 84 | Proofs.M09.isCompact_closure_metric_ball g (C.limit.complete 0 C.limit.zero_mem) |
| 85 | C.limit.base r |
| 86 | refine ⟨2 * r, mul_pos two_pos hr, ?_⟩ |
| 87 | filter_upwards [limitNoncollapse_compact_inner_zero C hK] with k hk |
| 88 | refine ⟨hk.1 (subset_closure hp), ?_⟩ |
| 89 | intro h0 |
| 90 | exact limitNoncollapse_source_center_of_forward_bound (C.embedding k) |
| 91 | (C.exhaustion.space_open k) h0 g C.limit.base p (S.base (C.subsequence k)) |
| 92 | (C.base_preserving k h0) hp (fun _ hy => hk.1 (subset_closure hy)) |
| 93 | (fun y hy v => (hk.2 y (subset_closure hy) v).2) |
| 94 | |
| 95 | end Convergence |
| 96 | |
| 97 | end PoincareMT.M47 |