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.Surgery.Induction.EpochExtension.Noncollapse.RawBallCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderRestriction |
| 3 | |
| 4 | /-! |
| 5 | # The same noncollapse constant on the raw generalized flow |
| 6 | |
| 7 | Apply M15 to actual closed ball cylinders, then restrict a half-open cylinder |
| 8 | to smaller closed windows. Volume monotonicity and a scalar limit recover |
| 9 | the original radius without changing kappa or requiring finite volume. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Manifold ContDiff Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.EpochExtension.Noncollapse |
| 21 | |
| 22 | variable {F : GeneralizedRicciFlowData.{u}} (G : Spacetime.FlowBoxRicciGeometry F) |
| 23 | (hM13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 24 | |
| 25 | include hM13 |
| 26 | |
| 27 | /-- Transfer the tested closed-cylinder volume bound to the raw flow. |
| 28 | Source: Theorem 8.1, p. 169, using the exact M13 slice volume identity. -/ |
| 29 | theorem raw_closed_noncollapse {T r r0 kappa : ℝ} (x : (F.slice T).carrier) |
| 30 | (hN : M15GeneralizedNoncollapseAt G.toLGeometry (⟨T, x⟩ : F.point) r0 kappa) |
| 31 | (hr : 0 < r) (hle : r ≤ r0) |
| 32 | (e : GeneralizedFlowCylinder F (F.slice T) T 1 (Icc (-r ^ 2) 0) |
| 33 | ((F.metric T).ball x r)) |
| 34 | (hI : Icc (T - r ^ 2) T ⊆ F.interval) |
| 35 | (hbase : ∀ h y, y ∈ (F.metric T).ball x r → |
| 36 | e.pointMap 0 h y = (⟨T, y⟩ : F.point)) |
| 37 | (hcurv : ∀ s hs y, y ∈ (F.metric T).ball x r → |
| 38 | F.curvatureNorm (e.pointMap s hs y) ≤ r⁻¹ ^ 2) : |
| 39 | ENNReal.ofReal (kappa * r ^ 3) ≤ |
| 40 | calibratedMetricVolume (F.metric T) ((F.metric T).ball x r) := by |
| 41 | have h := hN r hr hle ((G.sliceIdentification T).identification x) |
| 42 | ((G.sliceIdentification T).identification_eq x) _ (rawBallSource F T x r) |
| 43 | (rawActualBallCylinder G hM13 x hr e hI hbase hcurv) |
| 44 | have hball := SliceGeometry.originalSlice_ball G hM13 T x r |
| 45 | have hvol := SliceGeometry.originalSlice_volume G hM13 T ((F.metric T).ball x r) |
| 46 | change ENNReal.ofReal (kappa * r ^ 3) ≤ |
| 47 | calibratedMetricVolume (G.realization.slices T).metricOnPoints |
| 48 | ((G.realization.slices T).metricOnPoints.ball |
| 49 | ((G.sliceIdentification T).identification x) r) at h |
| 50 | rw [← hball, hvol] at h |
| 51 | exact h |
| 52 | |
| 53 | /-- The half-open raw predicate follows from M15 on the same spacetime and |
| 54 | point. The order of the radius and kappa arguments is different in the two APIs. |
| 55 | Source: Theorem 8.1, p. 169, and Definition 9.1, p. 180. -/ |
| 56 | theorem raw_noncollapse {p : F.point} {r0 kappa : ℝ} |
| 57 | (hN : M15GeneralizedNoncollapseAt G.toLGeometry p r0 kappa) : |
| 58 | GeneralizedKappaNoncollapsedAt F p kappa r0 := by |
| 59 | rcases p with ⟨T, x⟩ |
| 60 | intro r hr hle hI e hbase hcurv |
| 61 | have hsmall (rho : ℝ) (hrho : rho ∈ Ioo 0 r) : |
| 62 | ENNReal.ofReal (kappa * rho ^ 3) ≤ |
| 63 | calibratedMetricVolume (F.metric T) ((F.metric T).ball x r) := by |
| 64 | have hsq : rho ^ 2 < r ^ 2 := by nlinarith [hrho.1, hrho.2] |
| 65 | have hJ : Icc (-rho ^ 2) 0 ⊆ Ioc (-r ^ 2) 0 := by |
| 66 | intro s hs |
| 67 | exact ⟨by linarith [hs.1], hs.2⟩ |
| 68 | have hU : (F.metric T).ball x rho ⊆ (F.metric T).ball x r := by |
| 69 | intro y hy |
| 70 | exact lt_of_lt_of_le hy (ENNReal.ofReal_le_ofReal hrho.2.le) |
| 71 | have htime : Icc (T - rho ^ 2) T ⊆ F.interval := by |
| 72 | intro t ht |
| 73 | exact hI ⟨by linarith [ht.1], ht.2⟩ |
| 74 | have hscale : r⁻¹ ^ 2 ≤ rho⁻¹ ^ 2 := by |
| 75 | gcongr <;> linarith [hrho.1, hrho.2] |
| 76 | have h := raw_closed_noncollapse G hM13 x hN hrho.1 (hrho.2.le.trans hle) |
| 77 | (e.restrict hJ hU) htime |
| 78 | (fun h y hy => hbase (hJ h) y (hU hy)) |
| 79 | (fun s hs y hy => (le_abs_self _).trans ((hcurv s (hJ hs) y (hU hy)).trans hscale)) |
| 80 | exact h.trans (measure_mono hU) |
| 81 | have hlim : Tendsto (fun rho : ℝ => ENNReal.ofReal (kappa * rho ^ 3)) (𝓝[<] r) |
| 82 | (𝓝 (ENNReal.ofReal (kappa * r ^ 3))) := |
| 83 | ENNReal.tendsto_ofReal |
| 84 | ((continuous_const.mul (continuous_id.pow 3)).continuousAt.tendsto.mono_left |
| 85 | nhdsWithin_le_nhds) |
| 86 | apply le_of_tendsto hlim |
| 87 | have hpos : Ioi (0 : ℝ) ∈ 𝓝[<] r := mem_nhdsWithin_of_mem_nhds (Ioi_mem_nhds hr) |
| 88 | filter_upwards [self_mem_nhdsWithin, hpos] with rho hlt hpos' |
| 89 | exact hsmall rho ⟨hpos', hlt⟩ |
| 90 | |
| 91 | end PoincareMT.EpochExtension.Noncollapse |