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.Comparison.Initial.ExponentialConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Charts.SmoothChartInverse |
| 3 | |
| 4 | /-! |
| 5 | # Smooth charts from the actual normalized exponential families |
| 6 | |
| 7 | C1 convergence makes the physical differential nonsingular uniformly |
| 8 | on each smaller compact set. The injective actual exponential therefore |
| 9 | has a smooth inverse on its literal image. Morgan--Tian, Claim 16.6 |
| 10 | and Corollary 16.7, pp. 371-372; see derivation 20. |
| 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 | namespace NormalizedCapExponential |
| 26 | |
| 27 | variable {g₀ : StandardInitialMetric} {S : GeneralizedSliceCarrier.{u}} |
| 28 | {g : RiemannianMetric 3 S.carrier} {tip : S.carrier} {scale eta R : ℝ} |
| 29 | {Q : SurgeryCapClose g₀ S g tip scale eta} |
| 30 | |
| 31 | /-- The coordinate derivative factors through the actual physical |
| 32 | differential at every parameter in the exponential domain. |
| 33 | Source: Claim 16.6, pp. 371-372. -/ |
| 34 | theorem coordinateMap_fderiv (D : NormalizedCapExponential Q R) |
| 35 | {x : E} (hx : x ∈ ball 0 R) : |
| 36 | fderiv ℝ D.coordinateMap x = |
| 37 | (mfderiv (𝓡 3) (𝓡 3) Q.inverse (D.map x)).comp (mfderiv (𝓡 3) (𝓡 3) D.map x) := by |
| 38 | have hf := (D.smooth.contMDiffAt (isOpen_ball.mem_nhds hx)).mdifferentiableAt (by simp) |
| 39 | have hi := (Q.inverse_smooth.contMDiffAt |
| 40 | (Q.toPartialDiffeomorph.open_target.mem_nhds (D.map_mem x hx))).mdifferentiableAt (by simp) |
| 41 | have hd := mfderiv_comp (I := 𝓡 3) (I' := 𝓡 3) (I'' := 𝓡 3) x hi hf |
| 42 | rw [mfderiv_eq_fderiv] at hd |
| 43 | exact hd |
| 44 | |
| 45 | end NormalizedCapExponential |
| 46 | |
| 47 | variable (g₀ : StandardInitialMetric) (S : ℕ → GeneralizedSliceCarrier.{u}) |
| 48 | (g : (n : ℕ) → RiemannianMetric 3 (S n).carrier) |
| 49 | (tip : (n : ℕ) → (S n).carrier) (scale eta : ℕ → ℝ) {R : ℝ} |
| 50 | (Q : (n : ℕ) → SurgeryCapClose g₀ (S n) (g n) (tip n) (scale n) (eta n)) |
| 51 | (D : (n : ℕ) → NormalizedCapExponential (Q n) R) |
| 52 | |
| 53 | /-- The physical exponential differentials are eventually bijective |
| 54 | throughout each fixed compact parameter region. |
| 55 | Source: the exact-ball chart construction in Corollary 16.7, p. 372. -/ |
| 56 | theorem eventually_bijective_mfderiv_initial_exponentials |
| 57 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 58 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 59 | (𝓝 L.toContinuousLinearMap)) {K : Set E} (hK : IsCompact K) |
| 60 | (hKR : K ⊆ ball 0 (R / 2)) : |
| 61 | ∀ᶠ n in atTop, ∀ x ∈ K, Function.Bijective (mfderiv (𝓡 3) (𝓡 3) (D n).map x) := by |
| 62 | have hder := tendstoUniformlyOn_fderiv_adjusted_exponentials |
| 63 | g₀ S g tip scale eta Q D heta L hL hK hKR |
| 64 | filter_upwards [hder.eventually_bijective_of_tendsto_id] with n hn |
| 65 | intro x hx |
| 66 | have hxR : x ∈ ball (0 : E) R := |
| 67 | (ball_subset_ball (by linarith [(D 0).radius_pos])) (hKR hx) |
| 68 | have hcoord := ((D n).coordinateMap_smooth.contDiffAt |
| 69 | (isOpen_ball.mem_nhds hxR)).differentiableAt (by simp) |
| 70 | have hcomp := fderiv_comp x |
| 71 | ((standardFrameLogarithm_contDiff g₀ L).differentiable (by simp) _) hcoord |
| 72 | rw [(D n).coordinateMap_fderiv hxR] at hcomp |
| 73 | let A : E →L[ℝ] E := mfderiv (𝓡 3) (𝓡 3) (D n).map x |
| 74 | have hinj : Function.Injective A := by |
| 75 | intro v w hvw |
| 76 | apply (hn x hx).1 |
| 77 | rw [hcomp] |
| 78 | change fderiv ℝ (standardFrameLogarithm g₀ L) ((D n).coordinateMap x) |
| 79 | (mfderiv (𝓡 3) (𝓡 3) (Q n).inverse ((D n).map x) (A v)) = |
| 80 | fderiv ℝ (standardFrameLogarithm g₀ L) ((D n).coordinateMap x) |
| 81 | (mfderiv (𝓡 3) (𝓡 3) (Q n).inverse ((D n).map x) (A w)) |
| 82 | rw [hvw] |
| 83 | change Function.Bijective A |
| 84 | exact ⟨hinj, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank |
| 85 | (f := A.toLinearMap) rfl).mp hinj⟩ |
| 86 | |
| 87 | /-- Every smaller positive parameter ball is eventually an actual |
| 88 | smooth physical exponential chart with its full literal image. |
| 89 | Source: Claim 16.6 and Corollary 16.7, pp. 371-372. -/ |
| 90 | theorem eventually_initial_exponential_charts |
| 91 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 92 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 93 | (𝓝 L.toContinuousLinearMap)) {r : ℝ} (hr : 0 < r) (hrR : r < R / 2) : |
| 94 | ∀ᶠ n in atTop, ∃ e : PartialDiffeomorph (𝓡 3) (𝓡 3) E (S n).carrier ∞, |
| 95 | (e : E → (S n).carrier) = (D n).map ∧ |
| 96 | e.source = ball 0 r ∧ e.target = (D n).map '' ball 0 r := by |
| 97 | have hKR : closedBall (0 : E) r ⊆ ball 0 (R / 2) := closedBall_subset_ball hrR |
| 98 | have hinj := eventually_injOn_initial_exponentials g₀ S g tip scale eta Q D heta L hL |
| 99 | (isCompact_closedBall 0 r) (convex_closedBall 0 r) hKR |
| 100 | have hD := eventually_bijective_mfderiv_initial_exponentials |
| 101 | g₀ S g tip scale eta Q D heta L hL (isCompact_closedBall 0 r) hKR |
| 102 | filter_upwards [hinj, hD] with n hn hd |
| 103 | have hrR' : r ≤ R := by linarith |
| 104 | exact ⟨Poincare.partialDiffeomorphOfInjOn (D n).map (ball 0 r) isOpen_ball |
| 105 | ((D n).smooth.mono (ball_subset_ball hrR')) (hn.mono ball_subset_closedBall) |
| 106 | (fun x hx => hd x (ball_subset_closedBall hx)), rfl, rfl, rfl⟩ |
| 107 | |
| 108 | end PoincareMT.M44 |