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.AncientKappa.Compactness.LocalBounds.FiniteRadius |
| 2 | |
| 3 | /-! |
| 4 | # Local curvature control from one positive unit-ball volume |
| 5 | |
| 6 | The finite-radius estimate supplies uniform whole-past curvature bounds |
| 7 | on every terminal base ball in any fixed-kappa family with a common positive |
| 8 | unit-ball volume. Scalar normalization is not required; this applies to |
| 9 | the secondary volume-normalized sequence in the local compactness proof. |
| 10 | |
| 11 | Reference: Morgan--Tian Lemma 9.65 and Claim 9.66, pp. 225-227. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 22 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 23 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 24 | |
| 25 | local instance unitVolumeCarrierConnected (C : FlowCarrier.{0} 3) : ConnectedSpace C.carrier := |
| 26 | connectedSpace_iff_univ.mpr C.connected |
| 27 | |
| 28 | /-- A positive unit-ball volume gives local whole-past full-curvature |
| 29 | control, uniformly over all actual fixed-kappa solutions and basepoints. -/ |
| 30 | theorem m23_exists_local_curvature_bound_of_unit_ball_volume |
| 31 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 32 | {κ ν R : ℝ} (hκ : 0 < κ) (hν : 0 < ν) (hR : 0 < R) : |
| 33 | ∃ B : ℝ, 0 ≤ B ∧ ∀ (C : FlowCarrier.{0} 3) (K : AncientKappaSolution 3 C.carrier), |
| 34 | K.kappa = κ → ∀ p : C.carrier, |
| 35 | ENNReal.ofReal ν ≤ calibratedMetricVolume (K.flow.metric 0) |
| 36 | ((K.flow.metric 0).ball p 1) → |
| 37 | ∀ t : ℝ, t ≤ 0 → ∀ x ∈ (K.flow.metric 0).ball p R, |
| 38 | |(K.flow.connection t).curvatureTensorNorm x| ≤ B := by |
| 39 | have hRp : 0 < R + 1 := by linarith |
| 40 | obtain ⟨A, hA, hcurv⟩ := m23_exists_curvature_bound_of_volume_lower_bound |
| 41 | P hκ (div_pos hν (pow_pos hRp 3)) |
| 42 | refine ⟨A / (R + 1) ^ 2, div_nonneg hA (sq_nonneg _), ?_⟩ |
| 43 | intro C K hkappa p hvolume t ht x hx |
| 44 | have hunit : (K.flow.metric 0).ball p 1 ⊆ (K.flow.metric 0).ball p (R + 1) := by |
| 45 | intro q hq |
| 46 | exact lt_of_lt_of_le hq (ENNReal.ofReal_le_ofReal (by linarith)) |
| 47 | have hvolume' : ENNReal.ofReal ((ν / (R + 1) ^ 3) * (R + 1) ^ 3) ≤ |
| 48 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball p (R + 1)) := by |
| 49 | rw [div_mul_cancel₀ _ (pow_ne_zero _ hRp.ne')] |
| 50 | exact hvolume.trans (MeasureTheory.measure_mono hunit) |
| 51 | have hx' : x ∈ (K.flow.metric 0).ball p (R + 1) := |
| 52 | lt_of_lt_of_le hx (ENNReal.ofReal_le_ofReal (by linarith)) |
| 53 | have hscalar : (K.flow.connection 0).scalarCurvature x ≤ A / (R + 1) ^ 2 := by |
| 54 | apply (le_div_iff₀ (sq_pos_of_pos hRp)).mpr |
| 55 | simpa only [mul_comm] using hcurv C K hkappa p x (R + 1) hRp hx' hvolume' |
| 56 | rw [abs_of_nonneg (show 0 ≤ (K.flow.connection t).curvatureTensorNorm x from |
| 57 | Real.sqrt_nonneg _)] |
| 58 | exact (P.past_norm_le_scalar C.carrier K t 0 ht le_rfl x).trans hscalar |
| 59 | |
| 60 | end PoincareMT |