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.SourceCriticalBallInitialRadius |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallInitialCore |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.MetricConvergence |
| 5 | |
| 6 | /-! |
| 7 | # Compact-stage capture of the retained initial neck core |
| 8 | |
| 9 | The whole closed three-quarter core of an actual original first neck is |
| 10 | eventually captured in one fixed stage of the same spatial limit. Its |
| 11 | source packet, witnesses and extraction are unchanged. Morgan--Tian |
| 12 | Proposition 10.7, first paragraph, p. 253; M28 derivation 87. |
| 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 | -- The retained packet and limit keep two dependent source selections literal. |
| 27 | /-- One compact limit stage captures every point of the closed |
| 28 | three-quarter core of the retained first neck, at all sufficiently late |
| 29 | original source indices (Proposition 10.7, p. 253; derivation 87). |
| 30 | The stage precedes both the source index and the point of the core. -/ |
| 31 | theorem exists_retained_initial_neck_capture_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 | let i := fun k => W.high_index (G.subsequence k) |
| 42 | ∃ j : ℕ, ∀ᶠ k in atTop, j ≤ k ∧ |
| 43 | ∃ N ∈ (H.segment (i k)).cover.necks, N.epsilon = epsilon ∧ |
| 44 | N.center = (H.segment (i k)).path (H.segment (i k)).lower ∧ |
| 45 | ∀ x ∈ N.carrier, |(N.coordinate_inverse x).2| ≤ 3 * N.epsilon⁻¹ / 4 → |
| 46 | x ∈ (fun y => (G.embedding k y).val.val) '' G.exhaustion j := by |
| 47 | obtain ⟨epsilon₀, hpos, hsmall, hradius⟩ := |
| 48 | exists_retained_criticalBall_large_radius_accuracy.{u} |
| 49 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 50 | intro epsilon C A E H hepsilon W G |
| 51 | let i := fun k => W.high_index (G.subsequence k) |
| 52 | dsimp only |
| 53 | have hepspos : 0 < epsilon := |
| 54 | (H.segment 0).cover_epsilon ▸ (H.segment 0).cover.epsilon_pos |
| 55 | have hCpos : 0 < max C 2 := lt_of_lt_of_le (by norm_num) (le_max_right _ _) |
| 56 | have hdelta : 0 < (4 * max C 2)⁻¹ * epsilon⁻¹ / 32 := by positivity |
| 57 | have hlarge : (7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹ ≤ W.radius := |
| 58 | hradius (E := E) H hepsilon W |
| 59 | have hfirst (n : ℕ) := |
| 60 | tubeCritical_contains_initial_neck (E := E) H W.tube (hepsilon.trans hsmall) |
| 61 | (Acrit := W.radius) hlarge n |
| 62 | choose neck hneck hepsNeck hcenterNeck hcriticalNeck using hfirst |
| 63 | obtain ⟨j, hcoverage⟩ := |
| 64 | G.regular_component_coverage ((4 * max C 2)⁻¹ * epsilon⁻¹ / 32) hdelta |
| 65 | refine ⟨j, ?_⟩ |
| 66 | filter_upwards [hcoverage] with k hk |
| 67 | let N := neck (i k) |
| 68 | have hN := hneck (i k) |
| 69 | have hepsN := hepsNeck (i k) |
| 70 | have hcenter := hcenterNeck (i k) |
| 71 | have hNcritical := hcriticalNeck (i k) |
| 72 | refine ⟨hk.1, N, hN, hepsN, hcenter, ?_⟩ |
| 73 | intro x hx hheight |
| 74 | obtain ⟨y, hy, hxy⟩ := hNcritical hx |
| 75 | have hregular := H.tubeCritical_initial_neck_core_component W.tube W.radius |
| 76 | W.radius_pos (i k) N hepsN hcenter hNcritical ⟨y, hy⟩ |
| 77 | (by simpa only [hxy] using hx) (by simpa only [hxy] using hheight) |
| 78 | obtain ⟨q, hq, hqz⟩ := hk.2 hregular |
| 79 | refine ⟨q, hq, ?_⟩ |
| 80 | exact (congrArg (fun z : H.tubeCriticalRegion W.tube W.radius (i k) => z.val.val) |
| 81 | hqz).trans hxy |
| 82 | |
| 83 | end PoincareMT.M28.CounterexampleNeckFamily |