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.CriticalBall.CriticalBallSourcePacket |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeLargeInitialBall |
| 4 | |
| 5 | /-! |
| 6 | # The enlarged initial radius on the retained source packet |
| 7 | |
| 8 | The actual first-pair scalar bound applies to the already retained tube. |
| 9 | Its own high witnesses force the larger radius without reselection. |
| 10 | Morgan--Tian Claim 10.5, pp. 251-252; M28 derivation 87. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 22 | |
| 23 | /-- The actual large initial-ball estimate strengthens the radius of |
| 24 | every retained source packet, using its same high witnesses (Claim 10.5; |
| 25 | derivation 87). The accuracy precedes the packet. -/ |
| 26 | theorem exists_retained_criticalBall_large_radius_accuracy : |
| 27 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 28 | ∀ {epsilon C A : ℝ} |
| 29 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 30 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 31 | (H : CounterexampleNeckFamily E), epsilon ≤ epsilon₀ → |
| 32 | ∀ W : CriticalBallSourcePacket H, |
| 33 | (7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹ ≤ W.radius := by |
| 34 | obtain ⟨epsilon₀, hpos, hsmall, hbound⟩ := |
| 35 | exists_source_tube_large_initial_bound_accuracy.{u} |
| 36 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 37 | intro epsilon C A E H hepsilon W |
| 38 | by_contra hnot |
| 39 | have hAr : W.radius < (7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹ := |
| 40 | lt_of_not_ge hnot |
| 41 | have hsmallRadius : ∀ᶠ j : ℕ in atTop, |
| 42 | W.radius + 1 / ((j : ℝ) + 1) < |
| 43 | (7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹ := by |
| 44 | have ht : Tendsto (fun j : ℕ => W.radius + 1 / ((j : ℝ) + 1)) |
| 45 | atTop (𝓝 W.radius) := by |
| 46 | simpa only [add_zero] using |
| 47 | (tendsto_const_nhds (x := W.radius)).add |
| 48 | (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) |
| 49 | exact ht.eventually (gt_mem_nhds hAr) |
| 50 | have hlarge : ∀ᶠ j : ℕ in atTop, 64 * (max C 2) ^ 2 < (j : ℝ) := |
| 51 | tendsto_natCast_atTop_atTop.eventually (eventually_gt_atTop _) |
| 52 | obtain ⟨j, hbj, hs, hd⟩ := |
| 53 | ((W.high_index_strictMono.tendsto_atTop.eventually (hbound H W.tube hepsilon)).and |
| 54 | (hsmallRadius.and hlarge)).exists |
| 55 | have hrpos : 0 < (7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹ := |
| 56 | W.radius_pos.trans hAr |
| 57 | have hball : W.high_point j ∈ (H.tubeMetric W.tube (W.high_index j)).ball |
| 58 | (H.tubeBase W.tube (W.high_index j)) |
| 59 | ((7 / 4 : ℝ) * (4 * max C 2)⁻¹ * epsilon⁻¹) := by |
| 60 | change (H.tubeMetric W.tube (W.high_index j)).edist |
| 61 | (H.tubeBase W.tube (W.high_index j)) (W.high_point j) < _ |
| 62 | have he := (ENNReal.ofReal_lt_ofReal_iff hrpos).mpr |
| 63 | ((W.high_radius_upper j).trans hs) |
| 64 | simpa only [ENNReal.ofReal_toReal |
| 65 | (H.tube_edist_ne_top W.tube (W.high_index j) _ _)] using he |
| 66 | exact (not_lt_of_ge (hbj (W.high_point j) hball)) (hd.trans (W.high_scalar_lower j)) |
| 67 | |
| 68 | end PoincareMT.M28.CounterexampleNeckFamily |