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.Construction.Coordinates.ApproximationCoefficients |
| 2 | import PoincareLib.Geometry.Riemannian.Coordinates.CompactFamily |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Harmonic.Perturbation |
| 4 | |
| 5 | /-! |
| 6 | # Compact-uniform ellipticity in the original cap coordinates |
| 7 | |
| 8 | The metric comparison theorem propagates the fixed initial coefficients. |
| 9 | On each compact spatial set their positive lower and finite upper bounds |
| 10 | are independent of approximation index and included time. This is the |
| 11 | fixed-chart limit estimate for Morgan-Tian Theorem 12.5, p. 297. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M34.CompactCapApproximation |
| 20 | |
| 21 | variable {g0 : StandardInitialMetric} (A : CompactCapApproximation g0) |
| 22 | |
| 23 | /-- Metric comparison retains the exact initial coefficients in every |
| 24 | fixed cap chart (Theorem 12.5, p. 297). -/ |
| 25 | theorem coefficients_exp_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 26 | (k : ℕ) {t : ℝ} (ht : t ∈ Icc 0 A.time) {x : StandardCapSpace} |
| 27 | (hx : x ∈ compactCapSource g0 k) (v : StandardCapSpace) : |
| 28 | Real.exp (-6 * A.curvature_bound 0 * t) * g0.metric.euclideanCoefficients x v v ≤ |
| 29 | A.coefficients k t x v v ∧ |
| 30 | A.coefficients k t x v v ≤ |
| 31 | Real.exp (6 * A.curvature_bound 0 * t) * g0.metric.euclideanCoefficients x v v := by |
| 32 | have h := P.metric_comparison 3 (CompactCapDouble g0 k) (Icc 0 A.time) |
| 33 | (A.flow k) 0 t (A.curvature_bound 0) ⟨le_rfl, A.time_pos.le⟩ ht ht.1 |
| 34 | (A.bound_pos 0).le (fun s hs q => A.full_curvature_le k ⟨hs.1, hs.2.trans ht.2⟩ q) |
| 35 | (compactCapChart g0 k x) (mfderiv (𝓡 3) (𝓡 3) (compactCapChart g0 k) x v) |
| 36 | change Real.exp (-2 * (3 : ℝ) * A.curvature_bound 0 * (t - 0)) * |
| 37 | A.coefficients k 0 x v v ≤ A.coefficients k t x v v ∧ |
| 38 | A.coefficients k t x v v ≤ |
| 39 | Real.exp (2 * (3 : ℝ) * A.curvature_bound 0 * (t - 0)) * |
| 40 | A.coefficients k 0 x v v at h |
| 41 | rw [A.coefficients_zero k hx] at h |
| 42 | norm_num at h ⊢ |
| 43 | exact h |
| 44 | |
| 45 | /-- A compact set has uniform positive lower and finite upper coefficient |
| 46 | bounds at every index wherever its chart is defined (Theorem 12.5, p. 297). -/ |
| 47 | theorem exists_compact_ellipticity (P : RicciFlowCurvatureTheory.{0}) |
| 48 | {K : Set StandardCapSpace} (hK : IsCompact K) : |
| 49 | ∃ a b : ℝ, 0 < a ∧ 0 ≤ b ∧ ∀ k t, t ∈ Icc 0 A.time → |
| 50 | ∀ x ∈ K, x ∈ compactCapSource g0 k → ∀ v : StandardCapSpace, |
| 51 | a * ‖v‖ ^ 2 ≤ A.coefficients k t x v v ∧ |
| 52 | A.coefficients k t x v v ≤ b * ‖v‖ ^ 2 := by |
| 53 | have hcont : ContinuousOn g0.metric.euclideanCoefficients K := |
| 54 | fun x _ => (g0.metric.contDiffAt_euclideanCoefficients x).continuousAt.continuousWithinAt |
| 55 | obtain ⟨a, ha, hlower⟩ := exists_uniform_bilinear_family_lower_bound hK hcont |
| 56 | (fun x _ v hv => g0.metric.pos x v hv) |
| 57 | have hnorm : ∃ b : ℝ, ∀ x ∈ K, ‖g0.metric.euclideanCoefficients x‖ ≤ b := |
| 58 | hK.exists_bound_of_continuousOn (f := g0.metric.euclideanCoefficients) hcont |
| 59 | obtain ⟨b, hb⟩ := hnorm |
| 60 | have hupper (x : StandardCapSpace) (hx : x ∈ K) (v : StandardCapSpace) : |
| 61 | g0.metric.euclideanCoefficients x v v ≤ max b 0 * ‖v‖ ^ 2 := by |
| 62 | calc |
| 63 | _ ≤ ‖g0.metric.euclideanCoefficients x v v‖ := le_abs_self _ |
| 64 | _ ≤ ‖g0.metric.euclideanCoefficients x‖ * ‖v‖ * ‖v‖ := |
| 65 | (g0.metric.euclideanCoefficients x).le_opNorm₂ v v |
| 66 | _ = ‖g0.metric.euclideanCoefficients x‖ * ‖v‖ ^ 2 := by ring |
| 67 | _ ≤ max b 0 * ‖v‖ ^ 2 := |
| 68 | mul_le_mul_of_nonneg_right ((hb x hx).trans (le_max_left _ _)) (sq_nonneg _) |
| 69 | refine ⟨Real.exp (-6 * A.curvature_bound 0 * A.time) * a, |
| 70 | Real.exp (6 * A.curvature_bound 0 * A.time) * max b 0, |
| 71 | mul_pos (Real.exp_pos _) ha, by positivity, ?_⟩ |
| 72 | intro k t ht x hx hsource v |
| 73 | have hnonneg : 0 ≤ g0.metric.euclideanCoefficients x v v := |
| 74 | (mul_nonneg ha.le (sq_nonneg _)).trans (hlower x hx v) |
| 75 | have hcomparison := A.coefficients_exp_bounds P k ht hsource v |
| 76 | have htime := mul_le_mul_of_nonneg_left ht.2 |
| 77 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 6) (A.bound_pos 0).le) |
| 78 | constructor |
| 79 | · calc |
| 80 | _ = Real.exp (-6 * A.curvature_bound 0 * A.time) * (a * ‖v‖ ^ 2) := by ring |
| 81 | _ ≤ Real.exp (-6 * A.curvature_bound 0 * A.time) * |
| 82 | g0.metric.euclideanCoefficients x v v := |
| 83 | mul_le_mul_of_nonneg_left (hlower x hx v) (Real.exp_pos _).le |
| 84 | _ ≤ Real.exp (-6 * A.curvature_bound 0 * t) * |
| 85 | g0.metric.euclideanCoefficients x v v := |
| 86 | mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr (by linarith)) hnonneg |
| 87 | _ ≤ _ := hcomparison.1 |
| 88 | · calc |
| 89 | _ ≤ Real.exp (6 * A.curvature_bound 0 * t) * |
| 90 | g0.metric.euclideanCoefficients x v v := hcomparison.2 |
| 91 | _ ≤ Real.exp (6 * A.curvature_bound 0 * A.time) * |
| 92 | g0.metric.euclideanCoefficients x v v := |
| 93 | mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr htime) hnonneg |
| 94 | _ ≤ Real.exp (6 * A.curvature_bound 0 * A.time) * (max b 0 * ‖v‖ ^ 2) := |
| 95 | mul_le_mul_of_nonneg_left (hupper x hx v) (Real.exp_pos _).le |
| 96 | _ = _ := by ring |
| 97 | |
| 98 | /-- A quadratic upper bound controls the full coefficient norm |
| 99 | (Theorem 12.5, p. 297). -/ |
| 100 | theorem norm_coefficients_le (k : ℕ) (t : ℝ) (x : StandardCapSpace) |
| 101 | {b : ℝ} (hb : 0 ≤ b) (hupper : ∀ v, A.coefficients k t x v v ≤ b * ‖v‖ ^ 2) : |
| 102 | ‖A.coefficients k t x‖ ≤ b := by |
| 103 | apply HarmonicCoordinates.norm_bilinear_le_of_quadratic _ hb |
| 104 | · intro u v |
| 105 | exact ((A.flow k).metric t).symm _ _ _ |
| 106 | · intro v |
| 107 | have hn : 0 ≤ A.coefficients k t x v v := by |
| 108 | let w := mfderiv (𝓡 3) (𝓡 3) (compactCapChart g0 k) x v |
| 109 | change 0 ≤ ((A.flow k).metric t).inner (compactCapChart g0 k x) w w |
| 110 | by_cases hw : w = 0 |
| 111 | · simp [hw] |
| 112 | · exact (((A.flow k).metric t).pos _ _ hw).le |
| 113 | rw [abs_of_nonneg hn] |
| 114 | exact hupper v |
| 115 | |
| 116 | end PoincareMT.M34.CompactCapApproximation |