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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallInitialSpherePersistence |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.SameCenterSphereGraph |
| 4 | |
| 5 | /-! |
| 6 | # Actual narrow source graphs of one fixed limiting sphere |
| 7 | |
| 8 | Forward persistence gives actual source necks with the original initial |
| 9 | center and scale. Their graph representation lies strictly within the |
| 10 | one-thirty-second initial slab. The limiting sphere is chosen once before |
| 11 | the eventual source index. Source: Morgan--Tian Proposition 10.7, |
| 12 | pp. 253-254; M28 derivation 109. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 24 | |
| 25 | set_option maxHeartbeats 2400000 in |
| 26 | -- Every graph is attached to the same fixed sphere and original retained source map. |
| 27 | /-- One actual initial limiting sphere has a smooth narrow graph in the |
| 28 | literal zero node at every sufficiently late retained source index. This |
| 29 | constructs the graph from convergence and actual neck comparison. Source: |
| 30 | Proposition 10.7, pp. 253-254; M28 derivation 109. -/ |
| 31 | theorem exists_retained_initial_sphere_graph_accuracy : |
| 32 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 33 | ∀ {epsilon C A : ℝ} |
| 34 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 35 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 36 | (H : CounterexampleNeckFamily E), epsilon ≤ epsilon₀ → |
| 37 | ∀ (W : CriticalBallSourcePacket H) |
| 38 | (G : RegularPointedMetricConvergence |
| 39 | (fun k => H.tubeCriticalMetric W.tube W.radius (W.high_index k)) |
| 40 | (fun k => H.tubeCriticalBase W.tube W.radius W.radius_pos (W.high_index k))), |
| 41 | letI := G.limitCarrier.topologicalSpace |
| 42 | letI := G.limitCarrier.chartedSpace |
| 43 | letI := G.limitCarrier.isManifold |
| 44 | ∀ D₀ : LeviCivitaData G.limitMetric, |
| 45 | ∃ j : ℕ, ∃ L : EpsilonNeck G.limitMetric, |
| 46 | L.epsilon = 3 * epsilon / 2 ∧ L.center = G.base ∧ |
| 47 | L.scale = (4 * max C 2)⁻¹ ∧ L.connection = D₀ ∧ |
| 48 | L.carrier ⊆ G.exhaustion j ∧ |
| 49 | ∀ᶠ k in atTop, j ≤ k ∧ ∃ f : UnitTwoSphere → ℝ, |
| 50 | ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) ∞ f ∧ |
| 51 | (∀ p, |f p| < epsilon⁻¹ / 32) ∧ |
| 52 | (H.regularRawStageDiffeomorph W.tube W.radius W.radius_pos |
| 53 | W.high_index G k) '' L.central_sphere = |
| 54 | range (fun p : UnitTwoSphere => |
| 55 | ((W.tube (W.high_index (G.subsequence k))).list.node 0).2.coordinate_map |
| 56 | (p, f p)) := by |
| 57 | obtain ⟨epsilonP, hPpos, hPsmall, hpersist⟩ := |
| 58 | exists_retained_initial_sphere_persistence_accuracy.{u} |
| 59 | obtain ⟨epsilonG, hGpos, _, hgraph⟩ := exists_same_center_neck_sphere_graph_accuracy.{u} |
| 60 | refine ⟨min epsilonP (epsilonG / 2), lt_min hPpos (half_pos hGpos), |
| 61 | (min_le_left _ _).trans hPsmall, ?_⟩ |
| 62 | intro epsilon C A E H hepsilon W G |
| 63 | let := G.limitCarrier.topologicalSpace |
| 64 | let := G.limitCarrier.chartedSpace |
| 65 | let := G.limitCarrier.isManifold |
| 66 | intro D₀ |
| 67 | obtain ⟨j, L, hLeps, hLcenter, hLscale, hLconnection, hLstage, htail⟩ := |
| 68 | hpersist H (hepsilon.trans (min_le_left _ _)) W G D₀ |
| 69 | have hepspos : 0 < epsilon := by linarith [L.epsilon_pos] |
| 70 | have hsmall : 2 * epsilon ≤ epsilonG := by |
| 71 | linarith [hepsilon.trans (min_le_right _ _)] |
| 72 | refine ⟨j, L, hLeps, hLcenter, hLscale, hLconnection, hLstage, ?_⟩ |
| 73 | filter_upwards [htail] with k hk |
| 74 | obtain ⟨hjk, N, hNeps, hcenter, hscale, _, _, hsphere, _⟩ := hk |
| 75 | let N₀ := ((W.tube (W.high_index (G.subsequence k))).list.node 0).2 |
| 76 | have hN₀eps : N₀.epsilon = epsilon := |
| 77 | (W.tube (W.high_index (G.subsequence k))).initial_node_geometry.1 |
| 78 | obtain ⟨f, hf, hheight, himage⟩ := hgraph _ _ N₀.connection N₀ N |
| 79 | (by rw [hN₀eps]; linarith) (by rw [hNeps]; exact hsmall) hcenter hscale |
| 80 | refine ⟨hjk, f, hf, ?_, hsphere.symm.trans himage⟩ |
| 81 | intro p |
| 82 | simpa only [hN₀eps] using hheight p |
| 83 | |
| 84 | end PoincareMT.M28.CounterexampleNeckFamily |