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.Geometry.Metric.CalibratedMetricComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.PartialFlowCompleteness |
| 3 | |
| 4 | /-! |
| 5 | # Uniform comparison on a fixed early slab |
| 6 | |
| 7 | One compact time interval supplies a single comparison constant before |
| 8 | time, point, tangent vector, and measurable set are chosen. The bounds |
| 9 | refer to the actual initial and evolving metrics and calibrated measures. |
| 10 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | variable {g0 : StandardInitialMetric} (F : PartialStandardCapFlow g0) |
| 21 | |
| 22 | /-- The same positive constant compares both tangent norms on an entire |
| 23 | available closed time slab (Proposition 12.13, pp. 304-306). -/ |
| 24 | theorem partialFlow_uniform_tangentNorm_comparison (P : RicciFlowCurvatureTheory.{0}) |
| 25 | {T : ℝ} (hT : T ∈ Ico 0 F.lifetime) : |
| 26 | ∃ c : ℝ, 1 ≤ c ∧ ∀ t ∈ Icc 0 T, ∀ x v : StandardCapSpace, |
| 27 | g0.metric.tangentNorm x v ≤ c * (F.flow.metric t).tangentNorm x v ∧ |
| 28 | (F.flow.metric t).tangentNorm x v ≤ c * g0.metric.tangentNorm x v := by |
| 29 | obtain ⟨K, hK, hfull⟩ := F.curvature_locally_bounded T hT.1 hT.2 |
| 30 | let c : ℝ := Real.exp (3 * K * T) |
| 31 | have hc : 1 ≤ c := Real.one_le_exp (mul_nonneg (by positivity) hT.1) |
| 32 | refine ⟨c, hc, ?_⟩ |
| 33 | intro t ht x v |
| 34 | have htime : t ∈ Ico 0 F.lifetime := ⟨ht.1, ht.2.trans_lt hT.2⟩ |
| 35 | have hbound : ∀ s ∈ Icc 0 t, ∀ y : StandardCapSpace, |
| 36 | (F.flow.connection s).curvatureTensorNorm y ≤ K := |
| 37 | fun s hs y => (le_abs_self _).trans (hfull s ⟨hs.1, hs.2.trans ht.2⟩ y) |
| 38 | have hexp : Real.exp (3 * K * t) ≤ c := by |
| 39 | apply Real.exp_le_exp.mpr |
| 40 | exact mul_le_mul_of_nonneg_left ht.2 (by positivity) |
| 41 | constructor |
| 42 | · exact (partialFlow_initial_tangentNorm_le F P htime hK hbound x v).trans |
| 43 | (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 44 | · have h := Real.sqrt_le_sqrt (partialFlow_exp_bounds F P htime hK hbound x v).2 |
| 45 | have heq : Real.exp (6 * K * t) = Real.exp (3 * K * t) ^ 2 := by |
| 46 | rw [← Real.exp_nat_mul] |
| 47 | congr 1 |
| 48 | norm_num |
| 49 | ring |
| 50 | rw [heq, Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq (Real.exp_nonneg _)] at h |
| 51 | exact h.trans (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 52 | |
| 53 | /-- One closed-slab constant controls actual distance and volume in both |
| 54 | directions, with no finiteness condition on the set (Proposition 12.13). -/ |
| 55 | theorem partialFlow_uniform_metric_volume_comparison (P : RicciFlowCurvatureTheory.{0}) |
| 56 | {T : ℝ} (hT : T ∈ Ico 0 F.lifetime) : |
| 57 | ∃ c : ℝ, 1 ≤ c ∧ ∀ t ∈ Icc 0 T, |
| 58 | (∀ x y, g0.metric.edist x y ≤ ENNReal.ofReal c * (F.flow.metric t).edist x y) ∧ |
| 59 | (∀ x y, (F.flow.metric t).edist x y ≤ ENNReal.ofReal c * g0.metric.edist x y) ∧ |
| 60 | (∀ A, calibratedMetricVolume g0.metric A ≤ |
| 61 | ENNReal.ofReal c ^ 3 * calibratedMetricVolume (F.flow.metric t) A) ∧ |
| 62 | (∀ A, calibratedMetricVolume (F.flow.metric t) A ≤ |
| 63 | ENNReal.ofReal c ^ 3 * calibratedMetricVolume g0.metric A) := by |
| 64 | obtain ⟨c, hc, hnorm⟩ := partialFlow_uniform_tangentNorm_comparison F P hT |
| 65 | have hcpos : 0 < c := zero_lt_one.trans_le hc |
| 66 | refine ⟨c, hc, fun t ht => ?_⟩ |
| 67 | exact ⟨edist_le_of_tangentNorm_le _ _ hcpos (fun x v => (hnorm t ht x v).1), |
| 68 | edist_le_of_tangentNorm_le _ _ hcpos (fun x v => (hnorm t ht x v).2), |
| 69 | calibratedMetricVolume_le_of_tangentNorm_le _ _ hcpos |
| 70 | (fun x v => (hnorm t ht x v).1), |
| 71 | calibratedMetricVolume_le_of_tangentNorm_le _ _ hcpos |
| 72 | (fun x v => (hnorm t ht x v).2)⟩ |
| 73 | |
| 74 | end PoincareMT.M34 |