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.Noncollapse.Compat.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ParabolicRescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Homothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.CylinderMetric |
| 5 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 6 | import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.QuadraticRicci |
| 7 | |
| 8 | /-! |
| 9 | # Ordinary metric comparison in the actual seed cylinder |
| 10 | |
| 11 | Morgan--Tian Lemma 3.15 and Claim 16.27, pp. 42 and 393. |
| 12 | Only the actual tracked point and vector need a curvature bound. The |
| 13 | ordinary comparison therefore applies on each surgery-free subinterval |
| 14 | of the whole tracked region, without a global curvature hypothesis. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M04 |
| 26 | export PoincareMT.RicciFlowAnalysis (abs_ricci_le_curvatureTensorNorm) |
| 27 | end PoincareMT.M04 |
| 28 | |
| 29 | namespace PoincareMT.Proofs.M46 |
| 30 | |
| 31 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 32 | normedSpaceTangentSpaceVectorSpace |
| 33 | |
| 34 | /-- Each ordinary part has the same exponential constant 6K. The |
| 35 | quadratic values are those of the actual cylinder differential. -/ |
| 36 | theorem cylinderQuadratic_exp_bounds_on_slab |
| 37 | {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 38 | {origin : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 39 | (e : SurgeryFlowCylinder F C origin 1 I U) (hU : IsOpen U) |
| 40 | {x : C.carrier} (hx : x ∈ U) (v : TangentSpace (𝓡 3) x) |
| 41 | {a b K : ℝ} (ha : a ∈ I) (hb : b ∈ I) (hab : a < b) |
| 42 | (hfree : Disjoint F.surgery_times (Ioc (origin + a / 1) (origin + b / 1))) |
| 43 | (hRm : ∀ t (ht : t ∈ Icc a b), |
| 44 | (F.connection (origin + t / 1)).curvatureTensorNorm |
| 45 | (e.forward t (e.interval_connected.out ha hb ht) x) ≤ K) : |
| 46 | Real.exp (-(6 * K) * (b - a)) * cylinderQuadratic e x v a ≤ |
| 47 | cylinderQuadratic e x v b ∧ |
| 48 | cylinderQuadratic e x v b ≤ |
| 49 | Real.exp ((6 * K) * (b - a)) * cylinderQuadratic e x v a := by |
| 50 | have hab' : origin + a / 1 < origin + b / 1 := by |
| 51 | simpa only [div_one] using add_lt_add_right hab origin |
| 52 | have hparam (t : ℝ) (ht : t ∈ Icc (origin + a / 1) (origin + b / 1)) : |
| 53 | ∃ s ∈ Icc a b, origin + s / 1 = t := by |
| 54 | refine ⟨t - origin, ?_, by simp⟩ |
| 55 | simp only [div_one] at ht |
| 56 | constructor <;> linarith [ht.1, ht.2] |
| 57 | have hJ : Icc (origin + a / 1) (origin + b / 1) ⊆ F.time_domain := by |
| 58 | intro t ht |
| 59 | obtain ⟨s, hs, rfl⟩ := hparam t ht |
| 60 | exact e.time_subset (mem_image_of_mem _ (e.interval_connected.out ha hb hs)) |
| 61 | let S := F.regular_slabs _ _ hab' hJ hfree |
| 62 | let f := (S.identify ⟨origin + a / 1, ⟨le_rfl, hab'.le⟩⟩).symm ∘ e.forward a ha |
| 63 | let V := mfderiv (𝓡 3) (𝓡 3) f x v |
| 64 | have hRic (t : ℝ) (ht : t ∈ Icc (origin + a / 1) (origin + b / 1)) : |
| 65 | |(S.flow.connection t).ricci (f x) V V| ≤ (3 * K) * (S.flow.metric t).inner (f x) V V := by |
| 66 | obtain ⟨s, hs, rfl⟩ := hparam t ht |
| 67 | have hsI := e.interval_connected.out ha hb hs |
| 68 | have hmap := e.slab_compatibility _ _ hab' hJ hfree a ha s hsI |
| 69 | ⟨le_rfl, hab'.le⟩ ht x hx |
| 70 | change S.identify ⟨origin + s / 1, ht⟩ (f x) = e.forward s hsI x at hmap |
| 71 | have hnorm := M13.homothety_curvatureTensorNorm_eq |
| 72 | (S.flow.metric (origin + s / 1)) (F.metric (origin + s / 1)) |
| 73 | (S.identify ⟨origin + s / 1, ht⟩) 1 zero_lt_one |
| 74 | (M44.regularSlab_metricHomothety F S ⟨origin + s / 1, ht⟩) |
| 75 | (S.flow.connection (origin + s / 1)) (F.connection (origin + s / 1)) (f x) |
| 76 | have hcurvature := hRm s hs |
| 77 | rw [← hmap, hnorm, div_one] at hcurvature |
| 78 | have hq : 0 ≤ (S.flow.metric (origin + s / 1)).inner (f x) V V := by |
| 79 | by_cases hV : V = 0 |
| 80 | · simp [hV] |
| 81 | · exact ((S.flow.metric (origin + s / 1)).pos (f x) V hV).le |
| 82 | have h := (M04.abs_ricci_le_curvatureTensorNorm |
| 83 | (S.flow.connection (origin + s / 1)) (f x) V).trans |
| 84 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hcurvature |
| 85 | (by norm_num : (0 : ℝ) ≤ 3)) hq) |
| 86 | simpa only [Nat.cast_ofNat] using h |
| 87 | have hbounds := S.flow.metric_inner_self_exp_bounds (convex_Icc _ _) (Subset.refl _) |
| 88 | (f x) V (3 * K) hRic ⟨le_rfl, hab'.le⟩ ⟨hab'.le, le_rfl⟩ |
| 89 | rw [cylinderQuadratic_eq_slab e hU hx v hab' hJ hfree a a ha ha |
| 90 | ⟨le_rfl, hab'.le⟩ ⟨le_rfl, hab'.le⟩, |
| 91 | cylinderQuadratic_eq_slab e hU hx v hab' hJ hfree a b ha hb |
| 92 | ⟨le_rfl, hab'.le⟩ ⟨hab'.le, le_rfl⟩] |
| 93 | have hconstant : 2 * (3 * K) = 6 * K := by ring |
| 94 | simpa only [div_one, add_sub_add_left_eq_sub, |
| 95 | abs_of_nonneg (sub_nonneg.mpr hab.le), hconstant] using hbounds |
| 96 | |
| 97 | end PoincareMT.Proofs.M46 |