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.SourceCriticalBallInitialNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallForwardNeck |
| 4 | |
| 5 | /-! |
| 6 | # Persistence of one actual fixed initial sphere |
| 7 | |
| 8 | Choose one of the proved initial limiting necks, then keep it fixed while |
| 9 | the original retained embeddings carry it forward. All sufficiently late |
| 10 | images of its central sphere are central spheres of actual twice-accuracy |
| 11 | necks with the original zero-node centers and scales. Source: Morgan--Tian |
| 12 | Proposition 10.7, 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 | -- One fixed neck precedes every later source index in the output quantifiers. |
| 27 | /-- There is one actual initial limiting neck whose fixed central sphere |
| 28 | persists through the same retained raw-stage maps as the central sphere of |
| 29 | an actual twice-accuracy neck. No new subsequence or assumed forward |
| 30 | comparison occurs. Source: Proposition 10.7, pp. 253-254; M28 derivation 109. -/ |
| 31 | theorem exists_retained_initial_sphere_persistence_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 ∧ ∃ N : EpsilonNeck |
| 50 | ((E (W.high_index (G.subsequence k) + H.shift)).flow.metric |
| 51 | (E (W.high_index (G.subsequence k) + H.shift)).time), |
| 52 | N.epsilon = 2 * epsilon ∧ |
| 53 | N.center = ((W.tube (W.high_index (G.subsequence k))).list.node 0).2.center ∧ |
| 54 | N.scale = ((W.tube (W.high_index (G.subsequence k))).list.node 0).2.scale ∧ |
| 55 | N.connection = |
| 56 | ((W.tube (W.high_index (G.subsequence k))).list.node 0).2.connection ∧ |
| 57 | N.carrier = (H.regularRawStageDiffeomorph W.tube W.radius W.radius_pos |
| 58 | W.high_index G k) '' L.region (-(2 * epsilon)⁻¹) (2 * epsilon)⁻¹ ∧ |
| 59 | N.central_sphere = (H.regularRawStageDiffeomorph W.tube W.radius W.radius_pos |
| 60 | W.high_index G k) '' L.central_sphere ∧ |
| 61 | ∀ z : RoundCylinderSpace, N.coordinate_map z = |
| 62 | H.regularRawStageDiffeomorph W.tube W.radius W.radius_pos |
| 63 | W.high_index G k (L.coordinate_map z) := by |
| 64 | obtain ⟨epsilon₀, hpos, hsmall, hinit⟩ := exists_retained_initial_neck_accuracy.{u} |
| 65 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 66 | intro epsilon C A E H hepsilon W G |
| 67 | let := G.limitCarrier.topologicalSpace |
| 68 | let := G.limitCarrier.chartedSpace |
| 69 | let := G.limitCarrier.isManifold |
| 70 | intro D₀ |
| 71 | obtain ⟨j, hj⟩ := hinit H hepsilon W G D₀ |
| 72 | obtain ⟨k₀, _, L, hLeps, hLcenter, hLscale, hLconnection, hLstage, _⟩ := hj.exists |
| 73 | have hepspos : 0 < epsilon := by linarith [L.epsilon_pos] |
| 74 | have htheta : L.epsilon < 2 * epsilon := by rw [hLeps]; linarith |
| 75 | have hhalf : 2 * epsilon < 1 / 2 := by linarith [hepsilon.trans hsmall] |
| 76 | refine ⟨j, L, hLeps, hLcenter, hLscale, hLconnection, hLstage, ?_⟩ |
| 77 | exact (eventually_ge_atTop j).and |
| 78 | (H.eventually_exists_regularRawStage_forward_neck W.tube W.radius W.radius_pos |
| 79 | W.high_index G L j hLstage hLcenter hLscale (2 * epsilon) htheta hhalf) |
| 80 | |
| 81 | end PoincareMT.M28.CounterexampleNeckFamily |