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.Spacetime.Rescaling.Bounds |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Interval.Homeomorph |
| 3 | |
| 4 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/ScaleBounds.lean`, |
| 5 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 6 | |
| 7 | /-! |
| 8 | # Quantitative scale identities |
| 9 | |
| 10 | The horizontal and slice calculus compares exactly the supplied sets and |
| 11 | balls. Positive finite factors cancel also for infinite extended-real volume. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ParabolicRescaling |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 23 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 24 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 25 | |
| 26 | theorem parabolicScaleBounds (P : ParabolicSpacetimeRescaling R Q hQ a) |
| 27 | (H : ParabolicHorizontalCalculus P) : ParabolicScaleBounds P where |
| 28 | curvature_bound D D' E K := by |
| 29 | simp only [H.norm_eq D D', div_le_div_iff_of_pos_right hQ] |
| 30 | parabolic_curvature_bound D D' E r _hr := by |
| 31 | have hradius : 1 / (Real.sqrt Q * r) ^ 2 = (1 / r ^ 2) / Q := by |
| 32 | rw [mul_pow, Real.sq_sqrt hQ.le, div_div, mul_comm] |
| 33 | simp only [H.norm_eq D D', hradius, div_le_div_iff_of_pos_right hQ] |
| 34 | volume_bound t x r κ _hr _hκ := by |
| 35 | have hs : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 36 | have hfactor : Real.rpow Q ((n : ℝ) / 2) = Real.sqrt Q ^ n := by |
| 37 | rw [Real.rpow_eq_pow, Real.rpow_div_two_eq_sqrt (n : ℝ) hQ.le, Real.rpow_natCast] |
| 38 | have hvolume := (H.slice_calculus t).volume_image ((R.slices t).metricOnPoints.ball x r) |
| 39 | rw [(H.slice_calculus t).ball_image] at hvolume |
| 40 | rw [hvolume, hfactor] |
| 41 | have hleft : ENNReal.ofReal (κ * (Real.sqrt Q * r) ^ n) = |
| 42 | ENNReal.ofReal (Real.sqrt Q ^ n) * ENNReal.ofReal (κ * r ^ n) := by |
| 43 | rw [mul_pow] |
| 44 | have heq : κ * (Real.sqrt Q ^ n * r ^ n) = Real.sqrt Q ^ n * (κ * r ^ n) := by ring |
| 45 | rw [heq, ENNReal.ofReal_mul (pow_nonneg hs.le n)] |
| 46 | rw [hleft] |
| 47 | exact ENNReal.mul_le_mul_iff_right |
| 48 | (ENNReal.ofReal_pos.mpr (pow_pos hs n)).ne' ENNReal.ofReal_ne_top |
| 49 | scale_cutoff r r₀ := by |
| 50 | have hs : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 51 | simp only [mul_pos_iff_of_pos_left hs, mul_le_mul_iff_right₀ hs] |
| 52 | base_normalization D D' p hscalar htime := by |
| 53 | constructor |
| 54 | · change P.atlasRescaling.atlas.time p = 0 |
| 55 | rw [P.atlasRescaling.time_eq] |
| 56 | change parabolicTime Q a (R.spacetime.timeFunction p) = 0 |
| 57 | rw [← htime] |
| 58 | simp only [parabolicTime, sub_self, mul_zero] |
| 59 | · rw [H.scalar_eq D D' p, ← hscalar, div_self hQ.ne'] |
| 60 | |
| 61 | end PoincareMT.ParabolicRescaling |