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.SourceCriticalBallRawCoefficients |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.FiniteChartBounds |
| 4 | |
| 5 | /-! |
| 6 | # Finite atlas bounds for the actual normalized raw-stage metrics |
| 7 | |
| 8 | The retained convergence estimates transfer to the raw-stage charts on |
| 9 | their actual open germs. A fixed stage containing every compact chart |
| 10 | region supplies one common domain tail, including boundary points of |
| 11 | those regions. Source: Morgan--Tian Proposition 10.7, p. 253; |
| 12 | M28 derivation 106. |
| 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 | variable {epsilon C A : ℝ} |
| 26 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 27 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 28 | (H : CounterexampleNeckFamily E) |
| 29 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 30 | (phi : ℕ → ℕ) |
| 31 | (G : RegularPointedMetricConvergence |
| 32 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 33 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) |
| 34 | {ι : Type*} [Finite ι] |
| 35 | |
| 36 | /-- One finite atlas in a fixed stage gives common positive ellipticity |
| 37 | and finite jet bounds for the actual normalized raw metrics. Source: |
| 38 | Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 39 | theorem exists_eventual_regularRawStage_finite_chart_bounds : |
| 40 | letI := G.limitCarrier.topologicalSpace |
| 41 | letI := G.limitCarrier.chartedSpace |
| 42 | letI := G.limitCarrier.isManifold |
| 43 | ∀ (q : ι → G.limitCarrier.carrier) (K : ι → Set (EuclideanSpace ℝ (Fin 3))) |
| 44 | (j : ℕ), (∀ i, IsCompact (K i)) → |
| 45 | (∀ i, K i ⊆ (extChartAt (𝓡 3) (q i)).target) → |
| 46 | (∀ i y, y ∈ K i → (extChartAt (𝓡 3) (q i)).symm y ∈ G.exhaustion j) → |
| 47 | ∀ m : ℕ, ∃ a b B : ℝ, 0 < a ∧ 0 < b ∧ 1 ≤ B ∧ |
| 48 | ∀ᶠ k in atTop, ∀ i y, y ∈ K i → |
| 49 | (∀ v : EuclideanSpace ℝ (Fin 3), |
| 50 | a * ‖v‖ ^ 2 ≤ (H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 51 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 52 | (extChartAt (𝓡 3) (q i)).symm) y v v ∧ |
| 53 | (H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 54 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 55 | (extChartAt (𝓡 3) (q i)).symm) y v v ≤ b * ‖v‖ ^ 2) ∧ |
| 56 | ∀ r ≤ m, ‖iteratedFDeriv ℝ r |
| 57 | ((H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 58 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 59 | (extChartAt (𝓡 3) (q i)).symm)) y‖ ≤ B := by |
| 60 | let := G.limitCarrier.topologicalSpace |
| 61 | let := G.limitCarrier.chartedSpace |
| 62 | let := G.limitCarrier.isManifold |
| 63 | intro q K j hK htarget hstage m |
| 64 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ |
| 65 | (fun k => subset_closure.trans (G.exhaustion_step k)) |
| 66 | obtain ⟨a, b, B, ha, hb, hB, htail⟩ := |
| 67 | G.exists_eventual_finite_chart_bounds q K hK htarget m |
| 68 | refine ⟨a, b, B, ha, hb, hB, ?_⟩ |
| 69 | filter_upwards [htail, eventually_ge_atTop j] with k hk hjk |
| 70 | intro i y hy |
| 71 | have heq := H.regularRawStage_coefficients_germ T A1 hA1 phi G k (q i) y |
| 72 | (htarget i hy) (hmono hjk (hstage i y hy)) |
| 73 | constructor |
| 74 | · intro v |
| 75 | rw [heq.eq_of_nhds] |
| 76 | exact (hk i y hy).1 v |
| 77 | · intro r hr |
| 78 | rw [(heq.iteratedFDeriv ℝ r).eq_of_nhds] |
| 79 | exact (hk i y hy).2 r hr |
| 80 | |
| 81 | /-- The same original retained sequence has a common finite atlas error |
| 82 | tail for its normalized raw coefficients. The equality differentiated |
| 83 | here holds on an open germ, not just on the compact test set. Source: |
| 84 | Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 85 | theorem eventually_regularRawStage_finite_chart_jet_error : |
| 86 | letI := G.limitCarrier.topologicalSpace |
| 87 | letI := G.limitCarrier.chartedSpace |
| 88 | letI := G.limitCarrier.isManifold |
| 89 | ∀ (q : ι → G.limitCarrier.carrier) (K : ι → Set (EuclideanSpace ℝ (Fin 3))) |
| 90 | (j : ℕ), (∀ i, IsCompact (K i)) → |
| 91 | (∀ i, K i ⊆ (extChartAt (𝓡 3) (q i)).target) → |
| 92 | (∀ i y, y ∈ K i → (extChartAt (𝓡 3) (q i)).symm y ∈ G.exhaustion j) → |
| 93 | ∀ (m : ℕ) (delta : ℝ), 0 < delta → |
| 94 | ∀ᶠ k in atTop, ∀ i y, y ∈ K i → ∀ r ≤ m, |
| 95 | ‖iteratedFDeriv ℝ r |
| 96 | ((H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 97 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 98 | (extChartAt (𝓡 3) (q i)).symm)) y - |
| 99 | iteratedFDeriv ℝ r |
| 100 | (G.limitMetric.pullbackCoefficients (extChartAt (𝓡 3) (q i)).symm) y‖ ≤ delta := by |
| 101 | let := G.limitCarrier.topologicalSpace |
| 102 | let := G.limitCarrier.chartedSpace |
| 103 | let := G.limitCarrier.isManifold |
| 104 | intro q K j hK htarget hstage m delta hdelta |
| 105 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ |
| 106 | (fun k => subset_closure.trans (G.exhaustion_step k)) |
| 107 | filter_upwards [G.eventually_finite_chart_jet_error q K hK htarget m delta hdelta, |
| 108 | eventually_ge_atTop j] with k hk hjk |
| 109 | intro i y hy r hr |
| 110 | have heq := H.regularRawStage_coefficients_germ T A1 hA1 phi G k (q i) y |
| 111 | (htarget i hy) (hmono hjk (hstage i y hy)) |
| 112 | rw [(heq.iteratedFDeriv ℝ r).eq_of_nhds] |
| 113 | exact hk i y hy r hr |
| 114 | |
| 115 | end PoincareMT.M28.CounterexampleNeckFamily |