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.PartialLimits.RegularSets.ScalarConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeCriticalRegion |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeCenteredNecks |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderUniformScalar |
| 6 | |
| 7 | /-! |
| 8 | # Positive scalar on the first actual critical-ball limit |
| 9 | |
| 10 | Both open restrictions preserve the globally normalized source scalar. |
| 11 | The original neck-region lower bound therefore passes through the actual |
| 12 | spatial embeddings. Morgan--Tian Claims 10.10-10.11, pp. 254-255; |
| 13 | `proof-work/tasks/M28/derivations/72-backward-model-on-spatial-charts.md`. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 26 | |
| 27 | variable {epsilon C A : ℝ} |
| 28 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 29 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 30 | |
| 31 | /-- The scalar of any connection on the critical restriction is the |
| 32 | original scalar divided by the original base scalar (derivation 72). -/ |
| 33 | theorem tubeCritical_scalar_eq (H : CounterexampleNeckFamily E) |
| 34 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (k : ℕ) |
| 35 | (D : LeviCivitaData (H.tubeCriticalMetric T A1 k)) |
| 36 | (x : H.tubeCriticalRegion T A1 k) : |
| 37 | D.scalarCurvature x = |
| 38 | (E (k + H.shift)).flow.scalar ⟨(E (k + H.shift)).time, x.val.val⟩ / |
| 39 | (E (k + H.shift)).flow.scalar |
| 40 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ := by |
| 41 | rw [intrinsicOpenMetric_scalarCurvature (H.tubeMetric T k) |
| 42 | (H.tubeCriticalRegion T A1 k) D (H.tubeConnection T k) x, |
| 43 | H.tube_scalar_eq, H.normalizedSlice_scalar_eq] |
| 44 | |
| 45 | /-- The same positive scalar bound holds at every actual critical-source |
| 46 | point, before any spatial extraction (Claim 10.4; derivation 72). -/ |
| 47 | theorem exists_source_criticalBall_scalar_lower_accuracy : |
| 48 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 49 | ∀ {epsilon C A : ℝ} |
| 50 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 51 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 52 | (H : CounterexampleNeckFamily E) |
| 53 | (T : ∀ k, SourceTubeData (H.segment k)), |
| 54 | epsilon ≤ epsilon₀ → ∀ (A1 : ℝ) (k : ℕ) |
| 55 | (D : LeviCivitaData (H.tubeCriticalMetric T A1 k)) |
| 56 | (x : H.tubeCriticalRegion T A1 k), |
| 57 | 8 * (max C 2) ^ 2 ≤ D.scalarCurvature x := by |
| 58 | obtain ⟨epsilon₀, hpos, hsmall, hregion⟩ := exists_source_neck_region_accuracy.{u} |
| 59 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 60 | intro epsilon C A E H T hepsilon A1 k D x |
| 61 | have h := ((hregion (E (k + H.shift)) (H.segment k) |
| 62 | (H.base_scalar_pos k) hepsilon).2.2 x.val.val |
| 63 | ((T k).carrier_subset_neckCarrierUnion x.val.property)).1 |
| 64 | rw [H.tubeCritical_scalar_eq T A1 k D x] |
| 65 | exact (le_div_iff₀ (H.base_scalar_pos k)).mpr h |
| 66 | |
| 67 | /-- Any spatial extraction of these actual source metrics has the same |
| 68 | strictly positive scalar lower bound at every limit point. The earlier |
| 69 | source index map is retained literally (Claims 10.10-10.11; derivation 72). -/ |
| 70 | theorem exists_source_criticalBall_limit_scalar_lower_accuracy : |
| 71 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 72 | ∀ {epsilon C A : ℝ} |
| 73 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 74 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 75 | (H : CounterexampleNeckFamily E) |
| 76 | (T : ∀ k, SourceTubeData (H.segment k)), |
| 77 | epsilon ≤ epsilon₀ → ∀ (A1 : ℝ) (hA1 : 0 < A1) (phi : ℕ → ℕ) |
| 78 | (G : RegularPointedMetricConvergence |
| 79 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 80 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))), |
| 81 | letI := G.limitCarrier.topologicalSpace |
| 82 | letI := G.limitCarrier.chartedSpace |
| 83 | letI := G.limitCarrier.isManifold |
| 84 | ∀ (D₀ : LeviCivitaData G.limitMetric) (q : G.limitCarrier.carrier), |
| 85 | 8 * (max C 2) ^ 2 ≤ D₀.scalarCurvature q := by |
| 86 | obtain ⟨epsilon₀, hpos, hsmall, hlower⟩ := |
| 87 | exists_source_criticalBall_scalar_lower_accuracy.{u} |
| 88 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 89 | intro epsilon C A E H T hepsilon A1 hA1 phi G |
| 90 | let := G.limitCarrier.topologicalSpace |
| 91 | let := G.limitCarrier.chartedSpace |
| 92 | let := G.limitCarrier.isManifold |
| 93 | intro D₀ q |
| 94 | let D (k : ℕ) : LeviCivitaData (H.tubeCriticalMetric T A1 (phi k)) := |
| 95 | Classical.choice (exists_leviCivitaData (H.tubeCriticalMetric T A1 (phi k))) |
| 96 | exact G.scalarCurvature_lower_bound D D₀ q _ (Eventually.of_forall |
| 97 | (fun k => hlower H T hepsilon A1 (phi (G.subsequence k)) |
| 98 | (D (G.subsequence k)) (G.embedding k q))) |
| 99 | |
| 100 | /-- A fresh original centered neck has normalized scale squared equal |
| 101 | to the reciprocal critical-source scalar, exactly at each index. |
| 102 | This uses the center identity, not an asymptotic cylinder comparison |
| 103 | (Definition 9.78; Claims 10.10-10.11; derivation 72). -/ |
| 104 | theorem source_centered_neck_scale_sq_eq_inverse_scalar |
| 105 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)) |
| 106 | (A1 : ℝ) (k : ℕ) (D : LeviCivitaData (H.tubeCriticalMetric T A1 k)) |
| 107 | (x : H.tubeCriticalRegion T A1 k) |
| 108 | (J : GeneralizedStrongNeck (E (k + H.shift)).flow (E (k + H.shift)).time epsilon) |
| 109 | (hcenter : J.center = x.val.val) (hepsilon : epsilon < 1 / 2) : |
| 110 | (E (k + H.shift)).flow.scalar |
| 111 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ * J.scale ^ 2 = |
| 112 | (D.scalarCurvature x)⁻¹ := by |
| 113 | let Q := (E (k + H.shift)).flow.scalar |
| 114 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ |
| 115 | have hQ : 0 < Q := H.base_scalar_pos k |
| 116 | have hcenterNorm := tube.neck_normalized_scalar_center |
| 117 | (strongNeck_top J hepsilon) |
| 118 | ((E (k + H.shift)).flow.connection (E (k + H.shift)).time) |
| 119 | change J.scale ^ 2 * (E (k + H.shift)).flow.scalar |
| 120 | ⟨(E (k + H.shift)).time, J.center⟩ = 1 at hcenterNorm |
| 121 | have hnormalized : (Q * J.scale ^ 2) * D.scalarCurvature x = 1 := by |
| 122 | rw [H.tubeCritical_scalar_eq T A1 k D x, ← hcenter] |
| 123 | change (Q * J.scale ^ 2) * |
| 124 | ((E (k + H.shift)).flow.scalar ⟨(E (k + H.shift)).time, J.center⟩ / Q) = 1 |
| 125 | calc |
| 126 | _ = J.scale ^ 2 * (E (k + H.shift)).flow.scalar |
| 127 | ⟨(E (k + H.shift)).time, J.center⟩ := by field_simp |
| 128 | _ = 1 := hcenterNorm |
| 129 | exact eq_inv_of_mul_eq_one_left hnormalized |
| 130 | |
| 131 | end PoincareMT.M28.CounterexampleNeckFamily |