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.CurveShortening.Comparison.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Local.ConeDiskMap |
| 3 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.Conformal.Trace |
| 4 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Polar.Derivatives |
| 5 | |
| 6 | /-! |
| 7 | # Polar columns of the actual cutoff cone |
| 8 | |
| 9 | The radial and angular derivatives follow by differentiating the literal |
| 10 | polar formula. The orthonormal polar frame computes the same Dirichlet |
| 11 | density as the fixed Cartesian frame. |
| 12 | |
| 13 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 14 | 447-449. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter Bundle |
| 21 | open scoped Manifold ContDiff Topology |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | open Proofs.M58 |
| 26 | |
| 27 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 29 | |
| 30 | /-- Differentiate the literal cone formula to recover its radial interpolation column. Proof |
| 31 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem m64LocalConeDiskMap_radial_column |
| 33 | (H : ℝ × (M × M) → M) (center : M) (gamma : ℝ → M) |
| 34 | (hperiod : Function.Periodic gamma curvePeriod) {r : ℝ} (hr : 0 < r) (t : ℝ) |
| 35 | (hF : MDifferentiableAt (𝓡 2) (𝓡 n) |
| 36 | (m64LocalConeDiskMap H center gamma) (r • angularPoint t)) |
| 37 | (hH : MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 38 | (fun s => H (s, center, gamma t)) (1 - diskTimeProfile r)) : |
| 39 | mfderiv (𝓡 2) (𝓡 n) (m64LocalConeDiskMap H center gamma) |
| 40 | (r • angularPoint t) (angularPoint t) = |
| 41 | -deriv diskTimeProfile r • mfderiv 𝓘(ℝ, ℝ) (𝓡 n) |
| 42 | (fun s => H (s, center, gamma t)) (1 - diskTimeProfile r) 1 := by |
| 43 | let delta : ℝ → LoopPlane := fun s => s • angularPoint t |
| 44 | have hd : HasDerivAt delta (angularPoint t) r := by |
| 45 | simpa +instances only [one_smul] using! (hasDerivAt_id r).smul_const (angularPoint t) |
| 46 | have hdv : mfderiv 𝓘(ℝ, ℝ) (𝓡 2) delta r 1 = angularPoint t := by |
| 47 | simpa +instances only [mfderiv_eq_fderiv, fderiv_apply_one_eq_deriv] using! hd.deriv |
| 48 | let chi : ℝ → ℝ := fun s => 1 - diskTimeProfile s |
| 49 | have hc : HasDerivAt chi (-deriv diskTimeProfile r) r := by |
| 50 | simpa +instances only [zero_sub] using! (hasDerivAt_const r (1 : ℝ)).sub |
| 51 | (contDiff_diskTimeProfile.differentiable (by simp) r).hasDerivAt |
| 52 | have hcv : mfderiv 𝓘(ℝ, ℝ) 𝓘(ℝ, ℝ) chi r 1 = -deriv diskTimeProfile r := by |
| 53 | simpa +instances only [mfderiv_eq_fderiv, fderiv_apply_one_eq_deriv] using! hc.deriv |
| 54 | have heq : (m64LocalConeDiskMap H center gamma ∘ delta) =ᶠ[𝓝 r] |
| 55 | ((fun s => H (s, center, gamma t)) ∘ chi) := by |
| 56 | filter_upwards [Ioi_mem_nhds hr] with s hs |
| 57 | exact m64LocalConeDiskMap_polar H center gamma hperiod hs t |
| 58 | have he := congrArg (fun D => D (1 : ℝ)) |
| 59 | (heq.mfderiv_eq (I := 𝓘(ℝ, ℝ)) (I' := 𝓡 n)) |
| 60 | erw [mfderiv_comp_apply r hF hd.differentiableAt.mdifferentiableAt, hdv, |
| 61 | mfderiv_comp_apply r hH hc.differentiableAt.mdifferentiableAt, hcv] at he |
| 62 | apply he.trans |
| 63 | simpa +instances only [smul_eq_mul, mul_one] using! (map_smul |
| 64 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 n) (fun s => H (s, center, gamma t)) |
| 65 | (1 - diskTimeProfile r)) (-deriv diskTimeProfile r) (1 : ℝ)) |
| 66 | |
| 67 | /-- Differentiate the literal cone formula to recover its actual angular endpoint column. |
| 68 | Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 69 | theorem m64LocalConeDiskMap_angular_column |
| 70 | (H : ℝ × (M × M) → M) (center : M) (gamma : ℝ → M) |
| 71 | (hperiod : Function.Periodic gamma curvePeriod) {r : ℝ} (hr : 0 < r) (t : ℝ) |
| 72 | (hgamma : MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡 n) gamma t) |
| 73 | (hF : MDifferentiableAt (𝓡 2) (𝓡 n) |
| 74 | (m64LocalConeDiskMap H center gamma) (r • angularPoint t)) |
| 75 | (hH : MDifferentiableAt (𝓘(ℝ, ℝ).prod ((𝓡 n).prod (𝓡 n))) (𝓡 n) H |
| 76 | (1 - diskTimeProfile r, center, gamma t)) : |
| 77 | mfderiv (𝓡 2) (𝓡 n) (m64LocalConeDiskMap H center gamma) |
| 78 | (r • angularPoint t) (r • angularVector t) = |
| 79 | mfderiv (𝓘(ℝ, ℝ).prod ((𝓡 n).prod (𝓡 n))) (𝓡 n) H |
| 80 | (1 - diskTimeProfile r, center, gamma t) (0, 0, curveVelocity gamma t) := by |
| 81 | let delta : ℝ → LoopPlane := fun s => r • angularPoint s |
| 82 | have hd : HasDerivAt delta (r • angularVector t) t := |
| 83 | (hasDerivAt_angularPoint t).const_smul r |
| 84 | have hdv : mfderiv 𝓘(ℝ, ℝ) (𝓡 2) delta t 1 = r • angularVector t := by |
| 85 | simpa +instances only [mfderiv_eq_fderiv, fderiv_apply_one_eq_deriv] using! hd.deriv |
| 86 | have hinput : MDifferentiableAt 𝓘(ℝ, ℝ) |
| 87 | (𝓘(ℝ, ℝ).prod ((𝓡 n).prod (𝓡 n))) |
| 88 | (fun s => (1 - diskTimeProfile r, center, gamma s)) t := |
| 89 | mdifferentiableAt_const.prodMk (mdifferentiableAt_const.prodMk hgamma) |
| 90 | have heq : m64LocalConeDiskMap H center gamma ∘ delta = |
| 91 | (fun s => H (1 - diskTimeProfile r, center, gamma s)) := |
| 92 | funext (m64LocalConeDiskMap_polar H center gamma hperiod hr) |
| 93 | have he := mfderiv_comp_apply t hF hd.differentiableAt.mdifferentiableAt (1 : ℝ) |
| 94 | erw [heq, hdv] at he |
| 95 | have hc := mfderiv_comp_apply_of_eq t hH hinput rfl (1 : ℝ) |
| 96 | erw [mfderiv_prodMk mdifferentiableAt_const (mdifferentiableAt_const.prodMk hgamma), |
| 97 | mfderiv_prodMk mdifferentiableAt_const hgamma] at hc |
| 98 | simp only [mfderiv_const] at hc |
| 99 | exact he.symm.trans hc |
| 100 | |
| 101 | variable [IsManifold (𝓡 n) ∞ M] |
| 102 | |
| 103 | /-- The orthonormal polar frame computes the same actual half-trace energy density as the |
| 104 | Cartesian frame. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 105 | theorem m64EnergyDensity_polar_frame (g : RiemannianMetric n M) |
| 106 | (f : LoopPlane → M) (z : LoopPlane) (t : ℝ) : |
| 107 | m60EnergyDensity g f z = |
| 108 | ((g.tangentNorm (f z) (mfderiv (𝓡 2) (𝓡 n) f z (angularPoint t))) ^ 2 + |
| 109 | (g.tangentNorm (f z) (mfderiv (𝓡 2) (𝓡 n) f z (angularVector t))) ^ 2) / 2 := by |
| 110 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 111 | ⟨g.toRiemannianMetric⟩ |
| 112 | let D := mfderiv (𝓡 2) (𝓡 n) f z |
| 113 | let B : LinearMap.BilinForm ℝ LoopPlane := |
| 114 | (g.inner (f z)).toBilinForm.compl₁₂ D.toLinearMap D.toLinearMap |
| 115 | let w : Fin 2 → LoopPlane := ![angularPoint t, angularVector t] |
| 116 | have hw (i j : Fin 2) : inner ℝ (w i) (w j) = |
| 117 | (1 : ℝ) * (if i = j then 1 else 0) := by |
| 118 | fin_cases i <;> fin_cases j <;> |
| 119 | simp only [PiLp.inner_apply, Fin.sum_univ_two] <;> |
| 120 | norm_num [w, angularPoint, angularVector] <;> |
| 121 | nlinarith [Real.sin_sq_add_cos_sq t] |
| 122 | have hh := M60.sum_bilinear_conformal_basis B (EuclideanSpace.basisFun (Fin 2) ℝ) |
| 123 | w (by simp) zero_lt_one hw |
| 124 | simp only [B, w, ContinuousLinearMap.toBilinForm_apply, |
| 125 | LinearMap.compl₁₂_apply, Fin.sum_univ_two, ContinuousLinearMap.coe_coe, |
| 126 | Matrix.cons_val_zero, Matrix.cons_val_one, one_mul] at hh |
| 127 | have hinner (v : LoopPlane) : g.inner (f z) (D v) (D v) = |
| 128 | (g.tangentNorm (f z) (D v)) ^ 2 := by |
| 129 | change inner ℝ (D v) (D v) = ‖D v‖ ^ 2 |
| 130 | exact real_inner_self_eq_norm_sq _ |
| 131 | erw [hinner (angularPoint t), hinner (angularVector t)] at hh |
| 132 | unfold m60EnergyDensity |
| 133 | rw [Matrix.trace_fin_two] |
| 134 | change (1 / 2 : ℝ) * (g.inner (f z) (D _) (D _) + g.inner (f z) (D _) (D _)) = _ |
| 135 | erw [← hh] |
| 136 | ring |
| 137 | |
| 138 | end PoincareMT |