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.AuxiliaryContradiction |
| 2 | |
| 3 | /-! |
| 4 | # Curvature from a positive finite-radius volume ratio |
| 5 | |
| 6 | On actual three-dimensional ancient solutions with fixed kappa, a positive |
| 7 | volume ratio bounds the scale-invariant scalar curvature throughout that |
| 8 | ball. This is the kappa-solution specialization of the volume-curvature |
| 9 | estimate used in normalized local compactness. |
| 10 | |
| 11 | Reference: Morgan--Tian Corollary 9.62, pp. 223-224; Lemma 9.65, pp. 225-227. |
| 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 ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 23 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 24 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 25 | |
| 26 | local instance finiteRadiusCarrierConnected (C : FlowCarrier.{0} 3) : ConnectedSpace C.carrier := |
| 27 | connectedSpace_iff_univ.mpr C.connected |
| 28 | |
| 29 | /-- The finite-radius volume-curvature estimate, with one constant for all |
| 30 | actual solutions, carriers, centers, radii and points at fixed kappa and |
| 31 | positive volume ratio. -/ |
| 32 | theorem m23_exists_curvature_bound_of_volume_lower_bound |
| 33 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 34 | {κ ν : ℝ} (hκ : 0 < κ) (hν : 0 < ν) : |
| 35 | ∃ A : ℝ, 0 ≤ A ∧ ∀ (C : FlowCarrier.{0} 3) (K : AncientKappaSolution 3 C.carrier), |
| 36 | K.kappa = κ → ∀ (p x : C.carrier) (r : ℝ), 0 < r → |
| 37 | x ∈ (K.flow.metric 0).ball p r → |
| 38 | ENNReal.ofReal (ν * r ^ 3) ≤ calibratedMetricVolume (K.flow.metric 0) |
| 39 | ((K.flow.metric 0).ball p r) → |
| 40 | r ^ 2 * (K.flow.connection 0).scalarCurvature x ≤ A := by |
| 41 | classical |
| 42 | by_contra hn |
| 43 | have hbad (A : ℝ) (hA : 0 ≤ A) : |
| 44 | ∃ (C : FlowCarrier.{0} 3) (K : AncientKappaSolution 3 C.carrier), K.kappa = κ ∧ |
| 45 | ∃ (p x : C.carrier) (r : ℝ), 0 < r ∧ x ∈ (K.flow.metric 0).ball p r ∧ |
| 46 | ENNReal.ofReal (ν * r ^ 3) ≤ calibratedMetricVolume (K.flow.metric 0) |
| 47 | ((K.flow.metric 0).ball p r) ∧ |
| 48 | A < r ^ 2 * (K.flow.connection 0).scalarCurvature x := by |
| 49 | by_contra hbad |
| 50 | apply hn |
| 51 | refine ⟨A, hA, ?_⟩ |
| 52 | intro C K hkappa p x r hr hx hvolume |
| 53 | by_contra hbound |
| 54 | exact hbad ⟨C, K, hkappa, p, x, r, hr, hx, hvolume, lt_of_not_ge hbound⟩ |
| 55 | choose C K hkappa p x r hr hx hvolume hscale using |
| 56 | fun k : ℕ ↦ hbad (k : ℝ) (Nat.cast_nonneg k) |
| 57 | obtain ⟨S, _, _, hbound, hvolume⟩ := |
| 58 | m23_exists_controlled_sequence_of_unbounded_curvature_scale P C K hκ hν.le |
| 59 | hkappa p x r hr hx hvolume |
| 60 | (tendsto_atTop_mono (fun k ↦ (hscale k).le) tendsto_natCast_atTop_atTop) |
| 61 | exact S.false_of_eventually_bounded_curvature_and_positive_volume_ratio |
| 62 | P (by norm_num) (div_pos hν (by norm_num)) hbound hvolume |
| 63 | |
| 64 | end PoincareMT |