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.Blowup.Controlled.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabControlled |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardGeneralizedConvergence |
| 4 | |
| 5 | /-! |
| 6 | # The explicit long-slab control service |
| 7 | |
| 8 | Claims 11.5--11.7 provide a common curvature and negative-defect bound on a |
| 9 | strictly shorter closed slab inside each supplied finite-horizon cylinder. |
| 10 | This file records that obligation and forwards it to the audited expanding |
| 11 | source assembly. The service is a Prop interface; it has no local |
| 12 | inhabitant until those claims are established or supplied by a lower module. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | /-- Curvature and defect bounds on shorter closed subslabs of the finite |
| 25 | horizon inputs. The threshold may depend on the radius and defect, while the |
| 26 | coefficient `B` is chosen before those two parameters. -/ |
| 27 | structure M30LongSlabControlService |
| 28 | (S : GeneralizedBlowupSequence.{u}) (kappa r₀ : ℝ) (T₀ : ℝ≥0∞) : Prop where |
| 29 | bounds : ∀ T : ℝ, 0 < T → ENNReal.ofReal T < T₀ → |
| 30 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 31 | ∀ᶠ k : ℕ in atTop, |
| 32 | ∃ Tplus : ℝ, 0 < Tplus ∧ ∃ hTplus : T < Tplus, |
| 33 | ENNReal.ofReal Tplus < T₀ ∧ |
| 34 | ∃ e : M30FiniteHorizonSlab S k A Tplus kappa r₀, |
| 35 | (∀ s (hs : s ∈ Icc (-T) 0) |
| 36 | (x : ((S.flow k).slice (S.base k).1).carrier), |
| 37 | x ∈ S.baseBall k A → |
| 38 | |(S.flow k).curvatureNorm |
| 39 | ((FiniteHorizonSlab.closedEmbedding e hTplus).pointMap s hs x)| ≤ |
| 40 | B * S.scale k) ∧ |
| 41 | (∀ s (hs : s ∈ Icc (-T) 0) |
| 42 | (x : ((S.flow k).slice (S.base k).1).carrier), |
| 43 | x ∈ S.baseBall k A → |
| 44 | ((S.flow k).connection |
| 45 | ((FiniteHorizonSlab.closedEmbedding e hTplus).pointMap |
| 46 | s hs x).1).negativeCurvaturePart |
| 47 | ((FiniteHorizonSlab.closedEmbedding e hTplus).pointMap s hs x).2 ≤ |
| 48 | eta * S.scale k) |
| 49 | |
| 50 | /-- The slab service also exposes the projected cylinder family consumed by |
| 51 | the geometric convergence assembly. Keeping this projection next to the |
| 52 | source certificate avoids repeating the endpoint restriction at each call |
| 53 | site. -/ |
| 54 | theorem M30LongSlabControlService.controlledBounds |
| 55 | {S : GeneralizedBlowupSequence.{u}} {κ r : ℝ} {T₀ : ℝ≥0∞} |
| 56 | (H : M30LongSlabControlService S κ r T₀) |
| 57 | (T : ℝ) (hT : 0 < T) (hTT : ENNReal.ofReal T < T₀) : |
| 58 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 59 | ∀ᶠ k : ℕ in atTop, |
| 60 | ∃ Tplus : ℝ, 0 < Tplus ∧ T < Tplus ∧ |
| 61 | ENNReal.ofReal Tplus < T₀ ∧ |
| 62 | Nonempty (ControlledBlowupCylinder S k A T B eta) := by |
| 63 | obtain ⟨B, hB, hfamily⟩ := H.bounds T hT hTT |
| 64 | refine ⟨B, hB, ?_⟩ |
| 65 | intro A hA eta heta |
| 66 | filter_upwards [hfamily A hA eta heta] with k hk |
| 67 | obtain ⟨Tplus, hTplusPos, hTplusT, hTplusT₀, e, hcurv, hdefect⟩ := hk |
| 68 | exact ⟨Tplus, hTplusPos, hTplusT, hTplusT₀, |
| 69 | ⟨controlledCylinderOfFiniteHorizonSlab e hTplusT hcurv hdefect⟩⟩ |
| 70 | |
| 71 | /-- The same slab service can expose the source noncollapse certificate when |
| 72 | the later volume-transfer assembly needs it. -/ |
| 73 | theorem M30LongSlabControlService.noncollapsedBounds |
| 74 | {S : GeneralizedBlowupSequence.{u}} {κ r : ℝ} {T₀ : ℝ≥0∞} |
| 75 | (H : M30LongSlabControlService S κ r T₀) |
| 76 | (T : ℝ) (hT : 0 < T) (hTT : ENNReal.ofReal T < T₀) : |
| 77 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 78 | ∀ᶠ k : ℕ in atTop, |
| 79 | ∃ Tplus : ℝ, 0 < Tplus ∧ T < Tplus ∧ |
| 80 | ENNReal.ofReal Tplus < T₀ ∧ |
| 81 | Nonempty (NoncollapsedControlledBlowupCylinder S k A T B eta κ r) := by |
| 82 | obtain ⟨B, hB, hfamily⟩ := H.bounds T hT hTT |
| 83 | refine ⟨B, hB, ?_⟩ |
| 84 | intro A hA eta heta |
| 85 | filter_upwards [hfamily A hA eta heta] with k hk |
| 86 | obtain ⟨Tplus, hTplusPos, hTplusT, hTplusT₀, e, hcurv, hdefect⟩ := hk |
| 87 | exact ⟨Tplus, hTplusPos, hTplusT, hTplusT₀, |
| 88 | ⟨noncollapsedControlledCylinderOfFiniteHorizonSlab e hTplusT hcurv hdefect⟩⟩ |
| 89 | |
| 90 | /-- The explicit long-slab service supplies the controlled-cylinder premise |
| 91 | needed by the full backward generalized-convergence theorem. -/ |
| 92 | theorem exists_backward_generalizedBlowupConvergence_of_longSlabService |
| 93 | (hShi : LocalCurvatureDerivativeEstimates.{0}) |
| 94 | (hMixed : WithinFlowJetBoundsService.{0, 0}) |
| 95 | (hFlow : WithinBilinearFlowService.{0}) |
| 96 | (hSlice : SpatialSliceJetConvergenceService.{0, 0, 0, 0, 0}) |
| 97 | (S : GeneralizedBlowupSequence.{u}) {T₀ : ℝ≥0∞} {kappa r₀ rho v : ℝ} |
| 98 | (hT₀ : 0 < T₀) (hrho : 0 < rho) (hv : 0 < v) |
| 99 | (hcompact : BlowupBaseBallsCompact S) |
| 100 | (H : M30LongSlabControlService S kappa r₀ T₀) |
| 101 | (hvolume : ∀ᶠ k : ℕ in atTop, |
| 102 | ENNReal.ofReal (v / (Real.sqrt (S.scale k)) ^ 3) ≤ |
| 103 | calibratedMetricVolume ((S.flow k).metric (S.base k).1) |
| 104 | (S.baseBall k rho)) : |
| 105 | Nonempty (GeneralizedBlowupConvergence S (blowupBackwardInterval T₀)) := by |
| 106 | refine exists_backward_generalizedBlowupConvergence hShi hMixed hFlow hSlice S hT₀ |
| 107 | hrho hv hcompact ?_ hvolume |
| 108 | intro T hT hTT |
| 109 | obtain ⟨B, hB, hfamily⟩ := H.bounds T hT hTT |
| 110 | refine ⟨B, hB, ?_⟩ |
| 111 | intro A hA eta heta |
| 112 | filter_upwards [hfamily A hA eta heta] with k hk |
| 113 | obtain ⟨Tplus, hTplusPos, hTplusT, hTplusT₀, e, hcurv, hdefect⟩ := hk |
| 114 | exact ⟨controlledCylinderOfFiniteHorizonSlab e hTplusT hcurv hdefect⟩ |
| 115 | |
| 116 | end PoincareMT.M30 |