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.Ends.SourceTubeData |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.InitialGeometry.SourceInitialBall |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.OpenGeometry.OpenNeckRestriction |
| 5 | import PoincareLib.Geometry.Riemannian.Distance.Basic |
| 6 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Geodesic.Calibration |
| 7 | |
| 8 | /-! |
| 9 | # The normalized metric on the actual selected tubes |
| 10 | |
| 11 | Claims 10.5-10.6, printed pp. 251-252. Restrict the whole-slice Q*g |
| 12 | normalization to the actual tube chosen at each index. Its first neck gives |
| 13 | a fixed regular base radius; the original short path reaches divergent |
| 14 | scalar at uniformly bounded intrinsic distance. See M28 derivation 55. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 27 | |
| 28 | variable {epsilon C A : ℝ} |
| 29 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 30 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 31 | |
| 32 | /-- The actual inclusion pullback of the global source normalization. -/ |
| 33 | def tubeMetric (H : CounterexampleNeckFamily E) |
| 34 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : |
| 35 | RiemannianMetric 3 (T k).carrierOpen := |
| 36 | intrinsicOpenMetric (H.normalizedSliceMetric k) (T k).carrierOpen |
| 37 | |
| 38 | /-- A genuine connection of that same normalized intrinsic metric. -/ |
| 39 | def tubeConnection (H : CounterexampleNeckFamily E) |
| 40 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : |
| 41 | LeviCivitaData (H.tubeMetric T k) := |
| 42 | Classical.choice (exists_leviCivitaData (H.tubeMetric T k)) |
| 43 | |
| 44 | /-- The literal retained low point in the actual source tube. -/ |
| 45 | def tubeBase (H : CounterexampleNeckFamily E) |
| 46 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : (T k).carrierOpen := |
| 47 | ⟨(H.segment k).path (H.segment k).lower, |
| 48 | (T k).path_mem (left_mem_Icc.mpr (H.segment k).lower_lt_upper.le)⟩ |
| 49 | |
| 50 | /-- The literal retained high point in that same source tube. -/ |
| 51 | def tubeHigh (H : CounterexampleNeckFamily E) |
| 52 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : (T k).carrierOpen := |
| 53 | ⟨(H.segment k).path (H.segment k).upper, |
| 54 | (T k).path_mem (right_mem_Icc.mpr (H.segment k).lower_lt_upper.le)⟩ |
| 55 | |
| 56 | /-- Restriction keeps the actual globally normalized scalar. -/ |
| 57 | theorem tube_scalar_eq (H : CounterexampleNeckFamily E) |
| 58 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) (x : (T k).carrierOpen) : |
| 59 | (H.tubeConnection T k).scalarCurvature x = |
| 60 | (H.normalizedSliceConnection k).scalarCurvature (x : _) := |
| 61 | intrinsicOpenMetric_scalarCurvature (H.normalizedSliceMetric k) |
| 62 | (T k).carrierOpen (H.tubeConnection T k) (H.normalizedSliceConnection k) x |
| 63 | |
| 64 | /-- The cylinder's connectedness makes every intrinsic source distance |
| 65 | finite before its real value is used in critical-radius selection. -/ |
| 66 | theorem tube_edist_ne_top (H : CounterexampleNeckFamily E) |
| 67 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) (x y : (T k).carrierOpen) : |
| 68 | (H.tubeMetric T k).edist x y ≠ ⊤ := by |
| 69 | let : PreconnectedSpace (T k).carrierOpen := (T k).preconnected |
| 70 | exact (H.tubeMetric T k).edist_ne_top x y |
| 71 | |
| 72 | /-- The first selected neck gives one fixed positive regular base radius |
| 73 | in the actual source tube, independently of the number of selected necks. -/ |
| 74 | theorem tube_base_regular (H : CounterexampleNeckFamily E) |
| 75 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : |
| 76 | H.tubeBase T k ∈ regularPoints (H.tubeMetric T k) |
| 77 | ((4 * max C 2)⁻¹ * epsilon⁻¹ / 8) := by |
| 78 | obtain ⟨N, _, hepsilon, hcenter, hNV⟩ := (T k).exists_initial_neck |
| 79 | have h := H.normalizedSlice_low_neck_regular k N hepsilon hcenter |
| 80 | (T k).carrierOpen hNV |
| 81 | have hp : (⟨N.center, |
| 82 | hNV (N.central_sphere_subset N.center_on_central_sphere)⟩ : (T k).carrierOpen) = |
| 83 | H.tubeBase T k := Subtype.ext hcenter |
| 84 | simpa only [hp, tubeMetric] using h |
| 85 | |
| 86 | /-- The same retained short path bounds the intrinsic distance from the |
| 87 | low point to the high point in the chosen normalized tube. -/ |
| 88 | theorem tube_high_distance_lt (H : CounterexampleNeckFamily E) |
| 89 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : |
| 90 | (H.tubeMetric T k).edist (H.tubeBase T k) (H.tubeHigh T k) < |
| 91 | ENNReal.ofReal (A + 2 * endpointConnectorBudget epsilon C) := by |
| 92 | rw [tubeMetric, intrinsicOpenMetric_edist] |
| 93 | have hpath := (H.segment k).path_smooth.mono |
| 94 | (Icc_subset_Icc (H.segment k).lower_pos.le (H.segment k).upper_lt_one.le) |
| 95 | exact (intrinsicEDist_le_pathELength (H.normalizedSliceMetric k) |
| 96 | (H.segment k).lower_lt_upper.le hpath (T k).path_mem).trans_lt |
| 97 | (H.normalizedSlice_path_length_lt k) |
| 98 | |
| 99 | /-- The actual high scalar diverges on the same intrinsic tube sequence. -/ |
| 100 | theorem tube_high_scalar_tendsto (H : CounterexampleNeckFamily E) |
| 101 | (T : ∀ k, SourceTubeData (H.segment k)) : |
| 102 | Tendsto (fun k => (H.tubeConnection T k).scalarCurvature (H.tubeHigh T k)) |
| 103 | atTop atTop := by |
| 104 | simpa only [tube_scalar_eq, tubeHigh] using H.normalizedSlice_upper_scalar_tendsto |
| 105 | |
| 106 | end CounterexampleNeckFamily |
| 107 | |
| 108 | /-- The checked ambient first-ball estimate bounds the actual scalar on |
| 109 | each intrinsic first ball; all constants precede the source index. -/ |
| 110 | theorem exists_source_tube_initial_bound_accuracy : |
| 111 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 112 | ∀ {epsilon C A : ℝ} |
| 113 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 114 | ((n : ℝ) + 1) ((n : ℝ) + 1)} (H : CounterexampleNeckFamily E) |
| 115 | (T : ∀ k, SourceTubeData (H.segment k)), epsilon ≤ epsilon₀ → |
| 116 | let r₀ := (4 * max C 2)⁻¹ * epsilon⁻¹ / 8 |
| 117 | 0 < r₀ ∧ ∀ k (x : (T k).carrierOpen), |
| 118 | x ∈ (H.tubeMetric T k).ball (H.tubeBase T k) r₀ → |
| 119 | (H.tubeConnection T k).scalarCurvature x ≤ 32 * (max C 2) ^ 2 := by |
| 120 | obtain ⟨epsilon₀, hpos, hsmall, h⟩ := exists_source_initial_ball_accuracy.{u} |
| 121 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 122 | intro epsilon C A E H T hbound |
| 123 | obtain ⟨hr, hinitial⟩ := h H hbound |
| 124 | refine ⟨hr, ?_⟩ |
| 125 | intro k x hx |
| 126 | obtain ⟨N, _, hcenter, _, _, hscalar⟩ := hinitial k |
| 127 | rw [H.tube_scalar_eq] |
| 128 | apply hscalar x |
| 129 | apply subset_closure |
| 130 | change (H.normalizedSliceMetric k).edist N.center (x : _) < _ |
| 131 | rw [hcenter] |
| 132 | have hle := RiemannianMetric.edist_le_intrinsicEDist (H.normalizedSliceMetric k) |
| 133 | ((T k).carrierOpen : Set _) ((H.tubeBase T k : (T k).carrierOpen) : _) (x : _) |
| 134 | rw [← intrinsicOpenMetric_edist] at hle |
| 135 | exact hle.trans_lt hx |
| 136 | |
| 137 | end PoincareMT.M28 |