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.Volume |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Noncollapse.Universal.Rescaling.Closed |
| 3 | |
| 4 | /-! |
| 5 | # Curvature-normalized selected ancient solutions |
| 6 | |
| 7 | The finite-radius selection and calibrated recentering produce actual |
| 8 | rescaled ancient solutions with the original noncollapsing constant. |
| 9 | The controlled rescaled radius is exactly half the original curvature |
| 10 | scale. This is the compactness input in the volume-curvature contradiction |
| 11 | of Morgan--Tian Corollary 9.62 and Lemma 9.65, pp. 223-227. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {M : Type} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 24 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 25 | [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | |
| 27 | /-- Construct the rescaled solution used in the volume-curvature |
| 28 | contradiction. Both the factor-four past bound and the calibrated volume |
| 29 | ratios concern the same terminal balls of the same actual rescaling. -/ |
| 30 | theorem m23_exists_normalized_controlled_rescaling |
| 31 | (P : M23NormalizedKappaCompactnessPredecessors) (K : AncientKappaSolution 3 M) |
| 32 | (p x : M) {r ν : ℝ} (hr : 0 < r) (hν : 0 ≤ ν) |
| 33 | (hx : x ∈ (K.flow.metric 0).ball p r) |
| 34 | (hvolume : ENNReal.ofReal (ν * r ^ 3) ≤ |
| 35 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball p r)) : |
| 36 | ∃ G : AncientKappaSolution 3 M, ∃ q : M, ∃ L : ℝ, |
| 37 | G.kappa = K.kappa ∧ 0 < L ∧ |
| 38 | L = r * Real.sqrt ((K.flow.connection 0).scalarCurvature x) / 2 ∧ |
| 39 | (G.flow.connection 0).scalarCurvature q = 1 ∧ |
| 40 | (∀ t : ℝ, t ≤ 0 → ∀ y ∈ (G.flow.metric 0).ball q L, |
| 41 | |(G.flow.connection t).curvatureTensorNorm y| ≤ 4) ∧ |
| 42 | ∀ a : ℝ, 0 < a → a ≤ L → |
| 43 | ENNReal.ofReal ((ν / 27) * a ^ 3) ≤ |
| 44 | calibratedMetricVolume (G.flow.metric 0) ((G.flow.metric 0).ball q a) := by |
| 45 | obtain ⟨q, s, _, hs, hsr, _, hscale, hbound, hvol⟩ := |
| 46 | m23_exists_backward_controlled_point_with_volume P K p x hr hν hx hvolume |
| 47 | let Q := (K.flow.connection 0).scalarCurvature q |
| 48 | have hQ : 0 < Q := P.scalar_pos M K 0 le_rfl q |
| 49 | have hsqrt : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 50 | obtain ⟨R⟩ := P.ordinary_rescaling M closedAncientInterval K.flow Q hQ 0 |
| 51 | let G := K.closedRescale hQ (le_refl 0) R |
| 52 | let L := Real.sqrt Q * s |
| 53 | have hL : 0 < L := mul_pos hsqrt hs |
| 54 | have hball : (K.flow.metric 0).ball q s = (G.flow.metric 0).ball q L := by |
| 55 | simpa only [zero_div, add_zero, Diffeomorph.coe_refl, id_eq, image_id'] using |
| 56 | (K.closedRescale_metric_calculus hQ (le_refl 0) R 0).ball_image q s |
| 57 | refine ⟨G, q, L, rfl, hL, ?_, ?_, ?_, ?_⟩ |
| 58 | · exact (mul_comm _ _).trans hscale |
| 59 | · rw [K.closedRescale_scalar] |
| 60 | rw [show (0 : ℝ) + 0 / Q = 0 by simp] |
| 61 | exact div_self hQ.ne' |
| 62 | · intro t ht y hy |
| 63 | change |((K.closedRescale hQ (le_refl 0) R).flow.connection t).curvatureTensorNorm y| ≤ 4 |
| 64 | rw [K.closedRescale_curvature_norm, abs_div, abs_of_pos hQ] |
| 65 | apply (div_le_iff₀ hQ).mpr |
| 66 | rw [show (0 : ℝ) + t / Q = t / Q by simp] |
| 67 | exact hbound (t / Q) (div_nonpos_of_nonpos_of_nonneg ht hQ.le) y (hball.symm ▸ hy) |
| 68 | · intro a ha haL |
| 69 | have ha' : 0 < a / Real.sqrt Q := div_pos ha hsqrt |
| 70 | have has : a / Real.sqrt Q ≤ s := (div_le_iff₀ hsqrt).mpr (by |
| 71 | simpa only [L, mul_comm] using haL) |
| 72 | have hv := hvol (a / Real.sqrt Q) ha' (by linarith) |
| 73 | have hscaled := (K.closedRescale_ball_volume_lower_bound_iff |
| 74 | hQ (le_refl 0) R q (a / Real.sqrt Q) (ν / 27)).mpr hv |
| 75 | simpa only [mul_div_cancel₀ a hsqrt.ne'] using hscaled |
| 76 | |
| 77 | end PoincareMT |