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.StandardCap.Existence.Noncollapsing.UniformInitialCoordinates |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.EarlySlabComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Coordinates.CoordinateMetricBounds |
| 4 | |
| 5 | /-! |
| 6 | # Uniform small-ball volume on each fixed early slab |
| 7 | |
| 8 | Actual coordinate balls have a uniform initial cubic volume lower bound. |
| 9 | The fixed-slab metric comparison controls both their evolving diameter |
| 10 | and the change of calibrated volume. |
| 11 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped Manifold ContDiff ENNReal |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | /-- Before any fixed included time, all sufficiently small actual balls |
| 22 | have one positive cubic volume bound, independent of center and time |
| 23 | (Proposition 12.13, pp. 304-306). -/ |
| 24 | theorem partialFlow_early_small_ball_volume {g0 : StandardInitialMetric} |
| 25 | (F : PartialStandardCapFlow g0) (P : RicciFlowCurvatureTheory.{0}) |
| 26 | {T : ℝ} (hT : T ∈ Ico 0 F.lifetime) : |
| 27 | ∃ r0 kappa : ℝ, 0 < r0 ∧ 0 < kappa ∧ ∀ t ∈ Icc 0 T, |
| 28 | ∀ q : StandardCapSpace, ∀ r : ℝ, 0 < r → r ≤ r0 → |
| 29 | ENNReal.ofReal (kappa * r ^ 3) ≤ |
| 30 | calibratedMetricVolume (F.flow.metric t) ((F.flow.metric t).ball q r) := by |
| 31 | obtain ⟨delta, b, v0, hdelta, hb, hv0, hcharts⟩ := |
| 32 | uniform_initial_coordinate_volume g0.cylindrical_end |
| 33 | obtain ⟨c, hc, hnorm⟩ := partialFlow_uniform_tangentNorm_comparison F P hT |
| 34 | have hcpos : 0 < c := zero_lt_one.trans_le hc |
| 35 | let d : ℝ := c * Real.sqrt b |
| 36 | have hd : 0 < d := mul_pos hcpos (Real.sqrt_pos.mpr hb) |
| 37 | let kappa : ℝ := v0 / (c ^ 3 * d ^ 3) |
| 38 | have hkappa : 0 < kappa := div_pos hv0 (mul_pos (pow_pos hcpos _) (pow_pos hd _)) |
| 39 | refine ⟨delta * d, kappa, mul_pos hdelta hd, hkappa, ?_⟩ |
| 40 | intro t ht q r hr hr0 |
| 41 | let rho : ℝ := r / d |
| 42 | have hrho : 0 < rho := div_pos hr hd |
| 43 | have hrhodelta : rho ≤ delta := (div_le_iff₀ hd).mpr hr0 |
| 44 | obtain ⟨f, hf0, hsource, hcoeff, hvolume⟩ := hcharts q |
| 45 | have hf : ContMDiffOn (𝓡 3) (𝓡 3) 1 f (Metric.ball 0 (2 * delta)) := |
| 46 | (f.contMDiffOn_toFun.of_le (by simp)).mono hsource |
| 47 | have hdiff : ∀ z ∈ Metric.ball 0 (2 * delta), ∀ w : StandardCapSpace, |
| 48 | (F.flow.metric t).tangentNorm (f z) (mfderiv (𝓡 3) (𝓡 3) f z w) ≤ d * ‖w‖ := by |
| 49 | intro z hz w |
| 50 | have h0 := tangentNorm_mfderiv_le_of_pullbackMetricForm_norm_le |
| 51 | g0.metric f z hb.le (hcoeff z hz) w |
| 52 | calc |
| 53 | _ ≤ c * g0.metric.tangentNorm (f z) (mfderiv (𝓡 3) (𝓡 3) f z w) := |
| 54 | (hnorm t ht (f z) (mfderiv (𝓡 3) (𝓡 3) f z w)).2 |
| 55 | _ ≤ c * (Real.sqrt b * ‖w‖) := mul_le_mul_of_nonneg_left h0 hcpos.le |
| 56 | _ = d * ‖w‖ := by dsimp [d]; ring |
| 57 | have himage := coordinate_ball_subset_metric_ball (F.flow.metric t) f |
| 58 | hdelta hd hrho hrhodelta hf hdiff |
| 59 | have hdrho : d * rho = r := by dsimp [rho]; field_simp |
| 60 | rw [hf0, hdrho] at himage |
| 61 | let A : Set StandardCapSpace := f '' Metric.ball 0 rho |
| 62 | have hmeasure : ENNReal.ofReal (v0 * rho ^ 3) ≤ |
| 63 | ENNReal.ofReal c ^ 3 * calibratedMetricVolume (F.flow.metric t) A := |
| 64 | (hvolume rho ⟨hrho, hrhodelta⟩).trans |
| 65 | (calibratedMetricVolume_le_of_tangentNorm_le (F.flow.metric t) g0.metric hcpos |
| 66 | (fun x w => (hnorm t ht x w).1) A) |
| 67 | have hc3 : 0 < c ^ 3 := pow_pos hcpos _ |
| 68 | have hdiv : ENNReal.ofReal (v0 * rho ^ 3) / ENNReal.ofReal (c ^ 3) ≤ |
| 69 | calibratedMetricVolume (F.flow.metric t) A := by |
| 70 | apply (ENNReal.div_le_iff (ENNReal.ofReal_pos.mpr hc3).ne' ENNReal.ofReal_ne_top).mpr |
| 71 | simpa only [ENNReal.ofReal_pow hcpos.le, mul_comm] using hmeasure |
| 72 | calc |
| 73 | ENNReal.ofReal (kappa * r ^ 3) = ENNReal.ofReal ((v0 * rho ^ 3) / c ^ 3) := by |
| 74 | congr 1 |
| 75 | dsimp [kappa, rho] |
| 76 | field_simp |
| 77 | _ = ENNReal.ofReal (v0 * rho ^ 3) / ENNReal.ofReal (c ^ 3) := |
| 78 | ENNReal.ofReal_div_of_pos hc3 |
| 79 | _ ≤ calibratedMetricVolume (F.flow.metric t) A := hdiv |
| 80 | _ ≤ _ := measure_mono himage |
| 81 | |
| 82 | end PoincareMT.M34 |