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.Persistence.SourceNames.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Initial.InitialCurvatureBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Initial.InitialJetConvergence |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Initial.InitialPhaseBounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Coordinates.NormalizedComparison |
| 6 | |
| 7 | /-! |
| 8 | # Uniform initial estimates on a fixed cap buffer |
| 9 | |
| 10 | The actual M36 comparison gives common ellipticity, metric jets and |
| 11 | covariant curvature bounds on each fixed compact coordinate buffer. |
| 12 | All constants precede the physical carrier, metric and comparison. |
| 13 | Morgan--Tian, Claim 16.6 and Theorem 3.29 in Lemma 16.8, pp. 371-373; |
| 14 | see M44 derivation 40. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Topology BigOperators |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M44 |
| 26 | |
| 27 | local notation "E" => StandardCapSpace |
| 28 | |
| 29 | noncomputable local instance comparisonCoefficientNormedGroup : |
| 30 | NormedAddCommGroup (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | |
| 32 | noncomputable local instance comparisonCoefficientNormedSpace : |
| 33 | NormedSpace ℝ (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | /-- Finite intrinsic initial comparison provides all finite ordinary |
| 36 | metric jets on a fixed compact buffer, with common ellipticity. |
| 37 | Source: Claim 16.6 and Lemma 16.8, pp. 371-373; M44 derivation 40. -/ |
| 38 | theorem exists_initial_comparison_metric_bounds (g₀ : StandardInitialMetric) |
| 39 | {K : Set E} (hK : IsCompact K) (m : ℕ) : |
| 40 | ∃ delta a Z : ℝ, 0 < delta ∧ 0 < a ∧ 1 ≤ Z ∧ |
| 41 | ∀ (S : GeneralizedSliceCarrier.{u}) (g : RiemannianMetric 3 S.carrier) |
| 42 | (tip : S.carrier) (scale eta : ℝ) (Q : SurgeryCapClose g₀ S g tip scale eta), |
| 43 | eta ≤ delta → K ⊆ g₀.metric.ball 0 eta⁻¹ ∧ |
| 44 | ∀ x ∈ K, (∀ v : E, a * ‖v‖ ^ 2 ≤ Q.normalizedCoefficients x v v) ∧ |
| 45 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j Q.normalizedCoefficients x‖ ≤ Z := by |
| 46 | classical |
| 47 | obtain ⟨delta, hdelta, hdomain⟩ := exists_initial_comparison_domain_threshold g₀ hK m |
| 48 | obtain ⟨a, ha, hlower⟩ := SurgeryCapClose.exists_normalized_uniform_lower_bound g₀ hK |
| 49 | obtain ⟨B, hB, hmodel⟩ := M36.exists_compact_local_jet_bound hK |
| 50 | (fun x _ => g₀.metric.contDiffAt_euclideanCoefficients x) m |
| 51 | choose C hC herror using fun j : Fin (m + 1) => |
| 52 | SurgeryCapClose.exists_normalized_coefficient_jet_bound.{u} g₀ hK j.val |
| 53 | let Z := B + ∑ j : Fin (m + 1), C j |
| 54 | have hsum : 0 ≤ ∑ j : Fin (m + 1), C j := |
| 55 | Finset.sum_nonneg (fun j _ => (hC j).le) |
| 56 | refine ⟨min delta (1 / 2), a, Z, lt_min hdelta (by norm_num), ha, |
| 57 | hB.trans (le_add_of_nonneg_right hsum), ?_⟩ |
| 58 | intro S g tip scale eta Q hsmall |
| 59 | obtain ⟨horder, hsub⟩ := hdomain eta Q.eta_pos (hsmall.trans (min_le_left _ _)) |
| 60 | have hhalf : eta ≤ 1 / 2 := hsmall.trans (min_le_right _ _) |
| 61 | refine ⟨hsub, ?_⟩ |
| 62 | intro x hx |
| 63 | refine ⟨hlower S g tip scale eta Q hhalf hsub x hx, ?_⟩ |
| 64 | intro j hj |
| 65 | let i : Fin (m + 1) := ⟨j, Nat.lt_succ_of_le hj⟩ |
| 66 | have hnorm := herror i S g tip scale eta Q (hj.trans horder) hsub x hx |
| 67 | have hQ := Q.contDiffOn_normalizedCoefficients.contDiffAt |
| 68 | (Q.toPartialDiffeomorph.open_source.mem_nhds (hsub hx)) |
| 69 | have hg := g₀.metric.contDiffAt_euclideanCoefficients x |
| 70 | rw [iteratedFDeriv_sub_apply |
| 71 | (hQ.of_le (by exact_mod_cast le_top)) (hg.of_le (by exact_mod_cast le_top))] at hnorm |
| 72 | calc |
| 73 | _ ≤ ‖iteratedFDeriv ℝ j Q.normalizedCoefficients x - |
| 74 | iteratedFDeriv ℝ j g₀.metric.euclideanCoefficients x‖ + |
| 75 | ‖iteratedFDeriv ℝ j g₀.metric.euclideanCoefficients x‖ := norm_le_norm_sub_add _ _ |
| 76 | _ ≤ C i * eta + B := add_le_add hnorm (hmodel j hj x hx) |
| 77 | _ ≤ C i + B := add_le_add |
| 78 | (mul_le_of_le_one_right (hC i).le (by linarith only [hhalf])) le_rfl |
| 79 | _ ≤ Z := by |
| 80 | have hi := Finset.single_le_sum (fun k _ => (hC k).le) (Finset.mem_univ i) |
| 81 | dsimp [Z] |
| 82 | linarith only [hi] |
| 83 | |
| 84 | /-- All actual initial curvature derivatives on a fixed comparison |
| 85 | buffer are bounded uniformly after height normalization. The connection |
| 86 | is the actual one for that physical metric. Source: Theorem 3.29 in |
| 87 | Lemma 16.8, pp. 372-373; M44 derivation 40. -/ |
| 88 | theorem exists_initial_comparison_curvature_bounds (g₀ : StandardInitialMetric) |
| 89 | {K : Set E} (hK : IsCompact K) (m : ℕ) : |
| 90 | ∃ delta C : ℝ, 0 < delta ∧ 1 ≤ C ∧ |
| 91 | ∀ (S : GeneralizedSliceCarrier.{u}) (g : RiemannianMetric 3 S.carrier) |
| 92 | (tip : S.carrier) (scale eta : ℝ) (Q : SurgeryCapClose g₀ S g tip scale eta), |
| 93 | eta ≤ delta → ∀ D : LeviCivitaData Q.normalizedMetric, |
| 94 | ∀ x ∈ K, ∀ j ≤ m, D.curvatureDerivativeNorm j (Q.map x) ≤ C := by |
| 95 | obtain ⟨delta, a, Z, hdelta, ha, _, hmetric⟩ := |
| 96 | exists_initial_comparison_metric_bounds.{u} g₀ hK (m + 2) |
| 97 | obtain ⟨C, hC, hbound⟩ := exists_uniform_pullback_curvature_bound m ha Z |
| 98 | refine ⟨delta, C, hdelta, hC, ?_⟩ |
| 99 | intro S g tip scale eta Q hsmall D x hx j hj |
| 100 | obtain ⟨hsub, hmetric⟩ := hmetric S g tip scale eta Q hsmall |
| 101 | have heq : Q.normalizedMetric.pullbackCoefficients Q.map = Q.normalizedCoefficients := by |
| 102 | funext y |
| 103 | ext v w |
| 104 | rfl |
| 105 | have hinv : ∀ y ∈ Q.toPartialDiffeomorph.source, |
| 106 | (mfderiv (𝓡 3) (𝓡 3) Q.map y).IsInvertible := by |
| 107 | intro y hy |
| 108 | have hd := Q.toPartialDiffeomorph.isLocalDiffeomorphAt (𝓡 3) (𝓡 3) ∞ hy |
| 109 | exact ⟨hd.mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 110 | apply hbound Q.normalizedMetric D Q.toPartialDiffeomorph.open_source Q.map_smooth |
| 111 | hinv x (hsub hx) ?_ ?_ j hj |
| 112 | · rw [heq] |
| 113 | exact (hmetric x hx).1 |
| 114 | · rw [heq] |
| 115 | exact (hmetric x hx).2 |
| 116 | |
| 117 | end PoincareMT.M44 |