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.NeckGeometry.NeckMinimizerSameLevel |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeData |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.NeckGeometry.SourceNeckRegion |
| 5 | |
| 6 | /-! |
| 7 | # Carrier points have regional-minimizer path connectors |
| 8 | |
| 9 | Every active neck of the actual finite source chain is one of the selected |
| 10 | source necks, and its center occurs on the retained regional minimum. The |
| 11 | two untrimmed path endpoints lie outside that neck. The regional |
| 12 | same-level minimizer therefore gives a path point at the same axial level |
| 13 | as any carrier point, with the universal intrinsic-distance error. |
| 14 | |
| 15 | This is the concrete carrier-to-spine producer used by the critical-ball |
| 16 | small-scale argument. It does not assert compactness, a fixed-index end, |
| 17 | or a radial extension of the retained path. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.M28 |
| 29 | |
| 30 | open PoincareMT.EpsilonNeck |
| 31 | |
| 32 | theorem exists_source_neck_path_connector_accuracy : |
| 33 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 34 | ∀ {epsilon C A D₀ D : ℝ} |
| 35 | {E : SameTimeCounterexample.{u} epsilon C A D₀ D} |
| 36 | (S : CounterexampleNeckSegment E), |
| 37 | 0 < E.flow.scalar ⟨E.time, E.basepoint⟩ → epsilon ≤ epsilon₀ → |
| 38 | ∀ T : SourceTubeData S, |
| 39 | ∀ i : ℤ, i ∈ T.chain.shape.active → |
| 40 | ∀ x : (E.flow.slice E.time).carrier, |
| 41 | x ∈ (T.chain.neck i).carrier → |
| 42 | ∃ v ∈ Icc (0 : ℝ) 1, |
| 43 | S.path v ∈ (T.chain.neck i).carrier ∧ |
| 44 | ((T.chain.neck i).coordinate_inverse (S.path v)).2 = |
| 45 | ((T.chain.neck i).coordinate_inverse x).2 ∧ |
| 46 | ∃ c ∈ Ioo (0 : ℝ) 1, ∃ d ∈ Ioo (0 : ℝ) 1, |
| 47 | v ∈ Icc c d ∧ |
| 48 | MapsTo S.path (Icc c d) (T.chain.neck i).carrier ∧ |
| 49 | MapsTo S.path (Icc (min v ((T.list.node i).1)) |
| 50 | (max v ((T.list.node i).1))) (T.chain.neck i).carrier ∧ |
| 51 | intrinsicEDist (E.flow.metric E.time) |
| 52 | (T.chain.neck i).carrier x (S.path v) ≤ |
| 53 | ENNReal.ofReal ((T.chain.neck i).scale * |
| 54 | Real.sqrt (1 + epsilon) * Real.sqrt 2 * (Real.pi + 1)) := by |
| 55 | obtain ⟨epsilonR, hRpos, hRsmall, hregion⟩ := |
| 56 | exists_source_neck_region_accuracy.{u} |
| 57 | obtain ⟨epsilonE, hEpos, hEsmall, hend⟩ := |
| 58 | exists_source_neck_endpoint_exclusion_accuracy.{u} |
| 59 | refine ⟨min (1 / 1000 : ℝ) (min epsilonR epsilonE), |
| 60 | lt_min (by norm_num) (lt_min hRpos hEpos), |
| 61 | min_le_left _ _, ?_⟩ |
| 62 | intro epsilon C A D₀ D E S hQ hsmall T i hi x hx |
| 63 | have hsmall₁ : epsilon ≤ (1 / 1000 : ℝ) := |
| 64 | hsmall.trans (min_le_left _ _) |
| 65 | have hsmallR : epsilon ≤ epsilonR := |
| 66 | hsmall.trans ((min_le_right _ _).trans (min_le_left _ _)) |
| 67 | have hsmallE : epsilon ≤ epsilonE := |
| 68 | hsmall.trans ((min_le_right _ _).trans (min_le_right _ _)) |
| 69 | have hiL : i ∈ T.list.active := by |
| 70 | rw [T.shape_eq] at hi |
| 71 | change 0 ≤ i ∧ i ≤ (T.list.nodes.length : ℤ) - 1 at hi ⊢ |
| 72 | exact hi |
| 73 | have hWnode : T.chain.neck i = (T.list.node i).2 := by |
| 74 | rw [T.neck_eq] |
| 75 | exact T.list.neckOfList_eq_node i |
| 76 | obtain ⟨N, hN, hchoice, hcenter⟩ := T.list.node_provenance hiL |
| 77 | have hWsubsetN : (T.chain.neck i).carrier ⊆ N.carrier := by |
| 78 | rw [hWnode] |
| 79 | rcases hchoice with hchoice | hchoice |
| 80 | · intro y hy |
| 81 | simpa only [hchoice] using hy |
| 82 | · intro y hy |
| 83 | simpa only [hchoice, reversed_carrier] using hy |
| 84 | have hWregion : (T.chain.neck i).carrier ⊆ S.source_region.carrier := by |
| 85 | have hU := (hregion E S hQ hsmallR).2.1 |
| 86 | exact fun y hy => hU ⟨N, hN, hWsubsetN hy⟩ |
| 87 | have hWunion : (T.chain.neck i).carrier ⊆ S.neckCarrierUnion := by |
| 88 | intro y hy |
| 89 | exact ⟨N, hN, hWsubsetN hy⟩ |
| 90 | have hε : (T.chain.neck i).epsilon ≤ (1 / 1000 : ℝ) := by |
| 91 | rw [T.chain.epsilon_eq i hi] |
| 92 | exact hsmall₁ |
| 93 | have htime := T.list.node_time_mem hiL |
| 94 | have ht0 : (0 : ℝ) < (T.list.node i).1 := |
| 95 | S.lower_pos.trans_le htime.1 |
| 96 | have ht1 : (T.list.node i).1 < 1 := |
| 97 | htime.2.trans_lt S.upper_lt_one |
| 98 | have hcenter' : S.path (T.list.node i).1 = (T.chain.neck i).center := by |
| 99 | rw [hWnode] |
| 100 | exact T.list.node_center hiL |
| 101 | have h0out : S.path 0 ∉ (T.chain.neck i).carrier := by |
| 102 | intro hmem |
| 103 | exact (hend E S hQ hsmallE).1 (hWunion hmem) |
| 104 | have h1out : S.path 1 ∉ (T.chain.neck i).carrier := by |
| 105 | intro hmem |
| 106 | exact (hend E S hQ hsmallE).2 (hWunion hmem) |
| 107 | obtain ⟨c, hc, d, hd, v, hv, hpathW, hlocal, hlevel, hdist⟩ := |
| 108 | exists_neck_minimizer_same_level (T.chain.neck i) hε hWregion |
| 109 | ht0 ht1 S.path_smooth S.source_region.path_mem |
| 110 | S.source_region.minimizing hcenter' h0out h1out hx |
| 111 | refine ⟨v, ⟨?_, ?_⟩, hpathW hv, hlevel, ?_⟩ |
| 112 | · exact (lt_of_lt_of_le hc.1 hv.1).le |
| 113 | · exact (le_trans hv.2 hd.2.le) |
| 114 | · refine ⟨c, ⟨hc.1, hc.2.trans ht1⟩, d, ⟨ht0.trans hd.1, hd.2⟩, ?_⟩ |
| 115 | refine ⟨hv, hpathW, hlocal, ?_⟩ |
| 116 | simpa only [T.chain.epsilon_eq i hi] using hdist |
| 117 | |
| 118 | end PoincareMT.M28 |