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.SourceCriticalBallScalar |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.CriticalBall.CriticalBallLocalShiProducer |
| 4 | |
| 5 | /-! |
| 6 | # Curvature derivatives on the actual regular critical ball |
| 7 | |
| 8 | The source scalar split and centered strong-neck Shi estimate supply the |
| 9 | regular-set curvature hypothesis of Theorem 5.6. Every constant is uniform |
| 10 | in the source index, and the accuracy threshold precedes the source family. |
| 11 | Morgan--Tian Claim 10.6, printed p. 252; M28 derivation 70. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 23 | |
| 24 | /-- The actual source geometry bounds every curvature derivative on |
| 25 | regular components of the critical metric. No frontier-access or |
| 26 | margin-or-scale certificate is assumed (Claim 10.6; M28 derivation 70). -/ |
| 27 | theorem exists_source_criticalBall_curvature_accuracy |
| 28 | (P : RicciFlowCurvatureTheory.{u}) : |
| 29 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 30 | ∀ {epsilon C A : ℝ} |
| 31 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 32 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 33 | (H : CounterexampleNeckFamily E) |
| 34 | (T : ∀ k, SourceTubeData (H.segment k)), |
| 35 | epsilon ≤ epsilon₀ → ∀ {A1 : ℝ} (hA1 : 0 < A1) |
| 36 | (D : ∀ k, LeviCivitaData (H.tubeCriticalMetric T A1 k)), |
| 37 | (∀ r < A1, tube.eventuallyRadiusBound |
| 38 | (fun k x => ((H.tubeMetric T k).edist (H.tubeBase T k) x).toReal) |
| 39 | (fun k x => (H.tubeConnection T k).scalarCurvature x) r) → |
| 40 | ∀ delta : ℝ, 0 < delta → ∀ l : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 41 | ∀ x ∈ regularComponent (H.tubeCriticalMetric T A1 k) |
| 42 | (H.tubeCriticalBase T A1 hA1 k) delta, |
| 43 | (D k).curvatureDerivativeNorm l x ≤ B := by |
| 44 | obtain ⟨epsilonR, hRpos, hRsmall, hregular⟩ := |
| 45 | exists_source_criticalBall_scalar_accuracy.{u} |
| 46 | obtain ⟨epsilonS, hSpos, _hSsmall, hshi⟩ := |
| 47 | exists_criticalBallPointwiseShi_uniform_accuracy P |
| 48 | refine ⟨min epsilonR epsilonS, lt_min hRpos hSpos, |
| 49 | (min_le_left _ _).trans hRsmall, ?_⟩ |
| 50 | intro epsilon C A E H T hepsilon A1 hA1 D hcrit delta hdelta l |
| 51 | obtain ⟨K, _hK, hscalar⟩ := hregular H T |
| 52 | (hepsilon.trans (min_le_left _ _)) hcrit delta hdelta |
| 53 | obtain ⟨B, hB, hbound⟩ := hshi H T |
| 54 | (hepsilon.trans (min_le_right _ _)) K l |
| 55 | refine ⟨B, hB, ?_⟩ |
| 56 | filter_upwards [hscalar] with k hk x hx |
| 57 | rw [intrinsicOpenMetric_curvatureDerivativeNorm (g := H.tubeMetric T k) |
| 58 | (V := H.tubeCriticalRegion T A1 k) (DU := D k) |
| 59 | (D := H.tubeConnection T k) l x] |
| 60 | exact hbound k x (hk x (regularComponent_subset _ _ _ hx)) |
| 61 | |
| 62 | end PoincareMT.M28.CounterexampleNeckFamily |