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.Limit.Exponential.ExponentialChart |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Exponential.PhysicalExponentialBalls |
| 3 | |
| 4 | /-! |
| 5 | # Actual charts with all exact nested physical ball images |
| 6 | |
| 7 | The fixed model inverse converts the actual orthonormal exponential |
| 8 | into a chart on the standard cap. Every smaller standard ball has the |
| 9 | exact corresponding normalized physical ball image. Morgan--Tian, |
| 10 | Corollary 16.7, p. 372; see derivations 20 and 21. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter Metric |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | local notation "E" => StandardCapSpace |
| 24 | |
| 25 | /-- The fixed-frame standard pole as a global smooth diffeomorphism. |
| 26 | Source: the model chart in Corollary 16.7, p. 372. -/ |
| 27 | noncomputable def standardFrameDiffeomorph (g₀ : StandardInitialMetric) (L : E ≃L[ℝ] E) : |
| 28 | Diffeomorph (𝓡 3) (𝓡 3) E E ∞ where |
| 29 | toFun := standardFrameExponential g₀ L |
| 30 | invFun := standardFrameLogarithm g₀ L |
| 31 | left_inv := standardFrameLogarithm_exponential g₀ L |
| 32 | right_inv := standardFrameExponential_logarithm g₀ L |
| 33 | contMDiff_toFun := (standardFrameExponential_contDiff g₀ L).contMDiff |
| 34 | contMDiff_invFun := (standardFrameLogarithm_contDiff g₀ L).contMDiff |
| 35 | |
| 36 | /-- Membership in a standard ball is exactly membership of its model |
| 37 | logarithm in the Euclidean ball of the same radius. |
| 38 | Source: Corollary 16.7, p. 372. -/ |
| 39 | theorem standardFrameLogarithm_mem_ball |
| 40 | (g₀ : StandardInitialMetric) (L : E ≃L[ℝ] E) |
| 41 | (hL : ∀ v w, g₀.metric.inner 0 (L v) (L w) = inner ℝ v w) |
| 42 | {r : ℝ} (hr : 0 < r) (x : E) : |
| 43 | standardFrameLogarithm g₀ L x ∈ ball 0 r ↔ x ∈ g₀.metric.ball 0 r := by |
| 44 | constructor |
| 45 | · intro hx |
| 46 | have h := mem_image_of_mem (standardFrameExponential g₀ L) hx |
| 47 | rw [standardFrameExponential_image_ball g₀ L hL hr, |
| 48 | standardFrameExponential_logarithm] at h |
| 49 | exact h |
| 50 | · intro hx |
| 51 | have h := mem_image_of_mem (standardFrameLogarithm g₀ L) hx |
| 52 | rw [standardFrameLogarithm_image_ball g₀ L hL hr] at h |
| 53 | exact h |
| 54 | |
| 55 | /-- The explicit small-tolerance cutoff supplies compact normalized |
| 56 | physical balls, uniformly in the physical carrier and metric. |
| 57 | Source: the fixed-radius step of Claim 16.6, pp. 371-372. -/ |
| 58 | theorem isCompact_normalized_ball_of_small_tolerance |
| 59 | {g₀ : StandardInitialMetric} {S : GeneralizedSliceCarrier.{u}} |
| 60 | {g : RiemannianMetric 3 S.carrier} {tip : S.carrier} {scale eta R : ℝ} |
| 61 | (Q : SurgeryCapClose g₀ S g tip scale eta) (hR : 0 < R) |
| 62 | (heta : eta ≤ min (1 / 2) (2 * R + 2)⁻¹) : |
| 63 | IsCompact (closure (Q.normalizedMetric.ball tip R)) := by |
| 64 | have hhalf : eta ≤ 1 / 2 := heta.trans (min_le_left _ _) |
| 65 | have hinv := one_div_le_one_div_of_le Q.eta_pos (heta.trans (min_le_right _ _)) |
| 66 | simp only [one_div, inv_inv] at hinv |
| 67 | have hroot : (1 / 2 : ℝ) ≤ Real.sqrt (1 - eta) := Real.le_sqrt_of_sq_le (by nlinarith) |
| 68 | have hbound : R ≤ Real.sqrt (1 - eta) * (2 * R + 1) := calc |
| 69 | R ≤ (1 / 2) * (2 * R + 1) := by linarith |
| 70 | _ ≤ Real.sqrt (1 - eta) * (2 * R + 1) := |
| 71 | mul_le_mul_of_nonneg_right hroot (by linarith) |
| 72 | exact (Q.isCompact_closure_normalized_ball (by linarith) |
| 73 | (r := 2 * R + 1) (by linarith) (by linarith)).of_isClosed_subset isClosed_closure |
| 74 | (closure_mono (fun _ hx => hx.trans_le (ENNReal.ofReal_le_ofReal hbound))) |
| 75 | |
| 76 | variable (g₀ : StandardInitialMetric) (S : ℕ → GeneralizedSliceCarrier.{u}) |
| 77 | (g : (n : ℕ) → RiemannianMetric 3 (S n).carrier) |
| 78 | (tip : (n : ℕ) → (S n).carrier) (scale eta : ℕ → ℝ) {R : ℝ} |
| 79 | (Q : (n : ℕ) → SurgeryCapClose g₀ (S n) (g n) (tip n) (scale n) (eta n)) |
| 80 | (D : (n : ℕ) → NormalizedCapExponential (Q n) R) |
| 81 | |
| 82 | /-- With a convergent orthonormal initial frame, the actual exponential |
| 83 | adjustment gives smooth standard-domain charts and all their nested |
| 84 | exact normalized physical ball images. |
| 85 | Source: Claim 16.6 and Corollary 16.7, pp. 371-372. -/ |
| 86 | theorem eventually_initial_exactBall_charts |
| 87 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 88 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 89 | (𝓝 L.toContinuousLinearMap)) |
| 90 | (hLinner : ∀ v w, g₀.metric.inner 0 (L v) (L w) = inner ℝ v w) |
| 91 | {A : ℝ} (hA : 0 < A) (hAR : A < R / 2) : |
| 92 | ∀ᶠ n in atTop, ∃ C : PartialDiffeomorph (𝓡 3) (𝓡 3) E (S n).carrier ∞, |
| 93 | (C : E → (S n).carrier) = (D n).map ∘ standardFrameLogarithm g₀ L ∧ |
| 94 | C.source = g₀.metric.ball 0 A ∧ C.target = (Q n).normalizedMetric.ball (tip n) A ∧ |
| 95 | C 0 = tip n ∧ ∀ r : ℝ, 0 < r → r ≤ A → |
| 96 | C '' g₀.metric.ball 0 r = (Q n).normalizedMetric.ball (tip n) r := by |
| 97 | have hR : 0 < R := (D 0).radius_pos |
| 98 | have hdelta : 0 < min (1 / 2 : ℝ) (2 * R + 2)⁻¹ := |
| 99 | lt_min (by norm_num) (inv_pos.mpr (by linarith)) |
| 100 | have hcompact : ∀ᶠ n in atTop, IsCompact (closure ((Q n).normalizedMetric.ball (tip n) R)) := by |
| 101 | filter_upwards [heta.eventually (gt_mem_nhds hdelta)] with n hn |
| 102 | exact isCompact_normalized_ball_of_small_tolerance (Q n) hR hn.le |
| 103 | filter_upwards [hcompact, |
| 104 | eventually_initial_exponential_charts g₀ S g tip scale eta Q D heta L hL hA hAR] |
| 105 | with n hn hchart |
| 106 | obtain ⟨e, he, hes, het⟩ := hchart |
| 107 | let C := (standardFrameDiffeomorph g₀ L).symm.toPartialDiffeomorph.trans e |
| 108 | have hmap : (C : E → (S n).carrier) = (D n).map ∘ standardFrameLogarithm g₀ L := by |
| 109 | change (fun x => e (standardFrameLogarithm g₀ L x)) = _ |
| 110 | rw [he] |
| 111 | rfl |
| 112 | have hsource : C.source = g₀.metric.ball 0 A := by |
| 113 | change univ ∩ standardFrameLogarithm g₀ L ⁻¹' e.source = _ |
| 114 | rw [hes, univ_inter] |
| 115 | ext x |
| 116 | exact standardFrameLogarithm_mem_ball g₀ L hLinner hA x |
| 117 | have htarget : C.target = (Q n).normalizedMetric.ball (tip n) A := by |
| 118 | change e.target ∩ e.symm ⁻¹' univ = _ |
| 119 | rw [preimage_univ, inter_univ, het, (D n).image_ball hn hA (by linarith)] |
| 120 | refine ⟨C, hmap, hsource, htarget, ?_, ?_⟩ |
| 121 | · rw [hmap] |
| 122 | change (D n).map (L.symm (standardRadialLogarithm g₀ 0)) = tip n |
| 123 | rw [standardRadialLogarithm_zero, map_zero, (D n).map_zero] |
| 124 | · intro r hr hrA |
| 125 | calc |
| 126 | C '' g₀.metric.ball 0 r = |
| 127 | (D n).map '' (standardFrameLogarithm g₀ L '' g₀.metric.ball 0 r) := by |
| 128 | rw [image_image, hmap] |
| 129 | rfl |
| 130 | _ = (Q n).normalizedMetric.ball (tip n) r := by |
| 131 | rw [standardFrameLogarithm_image_ball g₀ L hLinner hr] |
| 132 | exact (D n).image_ball hn hr (by linarith) |
| 133 | |
| 134 | end PoincareMT.M44 |