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.CanonicalInduction.Seed.Normalized.SeedNormalizedAccess |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Normalized.SeedNormalizedFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Noncollapse.Ordinary |
| 4 | |
| 5 | /-! |
| 6 | # One M15 density for every finite positive history age |
| 7 | |
| 8 | The genuine parabolic normalization cancels the age-scaled seed volume. |
| 9 | The M15 data are fixed at maximal age one before the original history. |
| 10 | MT Theorem 8.1 and the Uniform Seed note, pp. 392-394. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M47 |
| 22 | |
| 23 | /-- A seed with its actual age-scaled volume gives the original ball |
| 24 | density using uniform M15 data chosen at normalized age one. -/ |
| 25 | theorem seedM15_normalized_history_volume |
| 26 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 27 | (hM13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 28 | (hM14 : GeneralizedLGeometryTheory.{u} 3) |
| 29 | (hOrdinary : M14OrdinaryProviders.{u} 3) |
| 30 | {l0 V : ℝ} (U : M15GeneralizedUniformData.{u} 3 1 l0 V) |
| 31 | {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 33 | [T3Space M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 34 | [CompactSpace M] [ConnectedSpace M] |
| 35 | {b T tau r : ℝ} (hbt : b < T) (F : RicciFlow 3 M (Icc b T)) (x : M) |
| 36 | (htau : 0 < tau) (htauAge : tau < T - b) |
| 37 | (E : Set M) (hE : IsOpen E) |
| 38 | (haccess : ∀ y ∈ E, reducedLength F T x y tau ≤ l0) |
| 39 | (hvolume : ENNReal.ofReal (V * Real.sqrt (T - b) ^ 3) ≤ |
| 40 | calibratedMetricVolume (F.metric (T - tau)) E) |
| 41 | (hr : 0 < r) (hrtau : r ^ 2 ≤ tau) |
| 42 | (hcurv : ∀ s ∈ Icc (T - r ^ 2) T, ∀ y ∈ (F.metric T).ball x r, |
| 43 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) : |
| 44 | ENNReal.ofReal (U.kappa * r ^ 3) ≤ |
| 45 | calibratedMetricVolume (F.metric T) ((F.metric T).ball x r) := by |
| 46 | have hd : 0 < T - b := sub_pos.mpr hbt |
| 47 | have hsqrt : 0 < Real.sqrt (T - b) := Real.sqrt_pos.mpr hd |
| 48 | have hsqrt2 : Real.sqrt (T - b) ^ 2 = T - b := Real.sq_sqrt hd.le |
| 49 | let sigma := tau / (T - b) |
| 50 | let rho := r / Real.sqrt (T - b) |
| 51 | have hsigma : 0 < sigma := div_pos htau hd |
| 52 | have hsigmaOne : sigma < 1 := (div_lt_one hd).mpr htauAge |
| 53 | have hrho : 0 < rho := div_pos hr hsqrt |
| 54 | have hclock : (T - b) * sigma = tau := by dsimp only [sigma]; field_simp |
| 55 | have hrho2 : (T - b) * rho ^ 2 = r ^ 2 := by |
| 56 | dsimp only [rho] |
| 57 | rw [div_pow, hsqrt2, mul_div_cancel₀ _ hd.ne'] |
| 58 | have hrhoAge : rho ^ 2 ≤ sigma := by nlinarith [hrtau] |
| 59 | obtain ⟨G, hG⟩ := exists_seed_normalized_flow hM13 hbt F |
| 60 | have hback (s : ℝ) : b + (T - b) * (1 - s) = T - (T - b) * s := by ring |
| 61 | have hmetric (s : ℝ) (_hs : s ∈ Icc (0 : ℝ) sigma) |
| 62 | (y : M) (v w : TangentSpace (𝓡 3) y) : |
| 63 | (G.metric (1 - s)).inner y v w = |
| 64 | (T - b)⁻¹ * (F.metric (T - (T - b) * s)).inner y v w := by |
| 65 | simpa only [hback] using (hG (1 - s)).1 y v w |
| 66 | have hscalar (s : ℝ) (_hs : s ∈ Icc (0 : ℝ) sigma) (y : M) : |
| 67 | (G.connection (1 - s)).scalarCurvature y = |
| 68 | (T - b) * (F.connection (T - (T - b) * s)).scalarCurvature y := by |
| 69 | exact ((hG (1 - s)).2.1 y).trans |
| 70 | (congrArg (fun t : ℝ => (T - b) * (F.connection t).scalarCurvature y) (hback s)) |
| 71 | have hnormalizedAccess (y : M) (hy : y ∈ E) : reducedLength G 1 x y sigma ≤ l0 := by |
| 72 | have h := seed_compact_normalized_access hOrdinary hbt hsigma hsigmaOne.le |
| 73 | F G hmetric hscalar x y |
| 74 | rw [hclock] at h |
| 75 | exact h.trans (haccess y hy) |
| 76 | have hseedClock : b + (T - b) * (1 - sigma) = T - tau := by rw [hback, hclock] |
| 77 | have hfactorPos : 0 < (Real.sqrt (T - b))⁻¹ ^ 3 := by positivity |
| 78 | have hnormalizedVolume : ENNReal.ofReal V ≤ |
| 79 | calibratedMetricVolume (G.metric (1 - sigma)) E := by |
| 80 | rw [(hG (1 - sigma)).2.2.2.2 E, hseedClock] |
| 81 | calc |
| 82 | ENNReal.ofReal V = ENNReal.ofReal ((Real.sqrt (T - b))⁻¹ ^ 3) * |
| 83 | ENNReal.ofReal (V * Real.sqrt (T - b) ^ 3) := by |
| 84 | rw [← ENNReal.ofReal_mul hfactorPos.le] |
| 85 | congr 1 |
| 86 | field_simp |
| 87 | _ ≤ _ := mul_le_mul_right hvolume _ |
| 88 | have hterminal : b + (T - b) * (1 : ℝ) = T := by ring |
| 89 | have hball : (G.metric 1).ball x rho = (F.metric T).ball x r := by |
| 90 | simpa only [rho, hterminal] using (hG 1).2.2.2.1 x r |
| 91 | have hnormalizedCurv : ∀ s ∈ Icc (1 - rho ^ 2) 1, |
| 92 | ∀ y ∈ (G.metric 1).ball x rho, (G.connection s).curvatureTensorNorm y ≤ rho⁻¹ ^ 2 := by |
| 93 | intro s hs y hy |
| 94 | rw [hball] at hy |
| 95 | have ht : b + (T - b) * s ∈ Icc (T - r ^ 2) T := by |
| 96 | constructor <;> nlinarith [hs.1, hs.2] |
| 97 | rw [(hG s).2.2.1 y] |
| 98 | calc |
| 99 | _ ≤ (T - b) * r⁻¹ ^ 2 := mul_le_mul_of_nonneg_left (hcurv _ ht y hy) hd.le |
| 100 | _ = rho⁻¹ ^ 2 := by |
| 101 | dsimp only [rho] |
| 102 | rw [inv_div, div_pow, hsqrt2] |
| 103 | simp only [inv_pow, div_eq_mul_inv] |
| 104 | have hbound := PoincareMT.M47.seedM15_ordinary_volume hM12 hM13 hM14 hOrdinary U |
| 105 | (by norm_num : (0 : ℝ) < 1) G x hsigma (by simpa only [sub_zero] using hsigmaOne) |
| 106 | hsigmaOne.le E hE hnormalizedAccess hnormalizedVolume hrho hrhoAge hnormalizedCurv |
| 107 | rw [hball, (hG 1).2.2.2.2, hterminal] at hbound |
| 108 | have hleft : ENNReal.ofReal (U.kappa * rho ^ 3) = |
| 109 | ENNReal.ofReal ((Real.sqrt (T - b))⁻¹ ^ 3) * ENNReal.ofReal (U.kappa * r ^ 3) := by |
| 110 | rw [← ENNReal.ofReal_mul hfactorPos.le] |
| 111 | congr 1 |
| 112 | dsimp only [rho] |
| 113 | simp only [div_eq_mul_inv, mul_pow] |
| 114 | ring |
| 115 | rw [hleft] at hbound |
| 116 | exact (ENNReal.mul_le_mul_iff_right (ENNReal.ofReal_pos.mpr hfactorPos).ne' |
| 117 | ENNReal.ofReal_ne_top).mp hbound |
| 118 | |
| 119 | end PoincareMT.Proofs.M47 |