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.IntrinsicComparison.Area.Density |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Normal.Strip |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.WithLp |
| 4 | |
| 5 | /-! |
| 6 | # The actual uniform normal-strip area density |
| 7 | |
| 8 | The product-parameter normal map is transferred to the Euclidean source |
| 9 | used by Riemannian volume. Its constructed metric lower bound yields the |
| 10 | area-density estimate through the first boundary-contact time. |
| 11 | |
| 12 | Morgan--Tian context: Claim 19.37, printed pp. 468-469, in the proof of Proposition |
| 13 | 19.35. This module supplies actual normal-geodesic data or its coordinate and measure |
| 14 | transport. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Topology Manifold ContDiff Bundle Matrix |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 27 | normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | /-- The product-coordinate lower bound transfers through the actual coordinate differential, |
| 30 | with its area normalization unchanged. Source/construction: Morgan--Tian Claim 19.37, |
| 31 | printed pp. 468-469. -/ |
| 32 | theorem m64Intrinsic_normal_map_density_lower |
| 33 | (G : RiemannianMetric 2 AnnulusCoordinates) |
| 34 | {u : ℝ × ℝ → AnnulusCoordinates} {a t c speed : ℝ} |
| 35 | (hu : DifferentiableAt ℝ u (a, t)) |
| 36 | (hbound : ∀ v : ℝ × ℝ, c ^ 2 * (speed ^ 2 * v.1 ^ 2 + v.2 ^ 2) ≤ |
| 37 | G.inner (u (a, t)) (fderiv ℝ u (a, t) v) (fderiv ℝ u (a, t) v)) : |
| 38 | c ^ 2 * speed ≤ G.pullbackVolumeDensity |
| 39 | (fun z : AnnulusCoordinates => u (z 0, z 1)) !₂[a, t] := by |
| 40 | let P : AnnulusCoordinates → ℝ × ℝ := fun z => (z 0, z 1) |
| 41 | have hP : HasFDerivAt P |
| 42 | ((PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0).prod |
| 43 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 1)) !₂[a, t] := |
| 44 | (PiLp.hasFDerivAt_apply (𝕜 := ℝ) 2 !₂[a, t] 0).prodMk |
| 45 | (PiLp.hasFDerivAt_apply (𝕜 := ℝ) 2 !₂[a, t] 1) |
| 46 | have hchain := hu.hasFDerivAt.comp !₂[a, t] hP |
| 47 | have hd (v : AnnulusCoordinates) : |
| 48 | mfderiv (𝓡 2) (𝓡 2) (fun z : AnnulusCoordinates => u (z 0, z 1)) !₂[a, t] v = |
| 49 | fderiv ℝ u (a, t) (v 0, v 1) := by |
| 50 | rw [mfderiv_eq_fderiv] |
| 51 | change fderiv ℝ (u ∘ P) !₂[a, t] v = fderiv ℝ u (a, t) (v 0, v 1) |
| 52 | rw [hchain.fderiv] |
| 53 | rfl |
| 54 | apply m64Intrinsic_pullbackDensity_lower G |
| 55 | intro v |
| 56 | rw [hd] |
| 57 | exact hbound (v 0, v 1) |
| 58 | |
| 59 | /-- The public Gaussian upper bound produces a uniform normal map with the actual |
| 60 | area-density lower bound up to every good point's first exit. No global injectivity is |
| 61 | asserted at this stage. Source/construction: Morgan--Tian Claim 19.37, printed pp. 468-469. -/ |
| 62 | theorem m64Intrinsic_exists_uniform_normal_density |
| 63 | (K : ℝ) {delta alpha : ℝ} (hdelta : 0 < delta) (hdelta1 : delta < 1) |
| 64 | (halpha : 0 ≤ alpha) : |
| 65 | ∃ R : ℝ, 0 < R ∧ R < 1 / 10 ∧ |
| 66 | ∀ N : IntrinsicAnnulus, N.GaussianCurvatureBound K → |
| 67 | ∃ u : ℝ × ℝ → AnnulusCoordinates, |
| 68 | ContDiff ℝ ∞ u ∧ (∀ s, u (s, 0) = intrinsicAnnulusBoundary 1 s) ∧ |
| 69 | ∀ a : ℝ, intrinsicGeodesicCurvature N.metric N.connection 1 a ≤ alpha → |
| 70 | ∃ b : ℝ, 0 < b ∧ b ≤ R ∧ |
| 71 | (∀ t ∈ Ioo (0 : ℝ) b, 1 < ‖u (a, t)‖ ∧ ‖u (a, t)‖ < 2) ∧ |
| 72 | u (a, b) ∈ standardAnnulusDomain ∧ |
| 73 | (b = R ∨ ‖u (a, b)‖ = 1 ∨ ‖u (a, b)‖ = 2) ∧ |
| 74 | ∀ t ∈ Icc (0 : ℝ) b, |
| 75 | (1 - delta) ^ 2 * intrinsicBoundarySpeed N.metric 1 a ≤ |
| 76 | N.metric.pullbackVolumeDensity |
| 77 | (fun z : AnnulusCoordinates => u (z 0, z 1)) !₂[a, t] := by |
| 78 | obtain ⟨R, hR, hRsmall, hstrip⟩ := |
| 79 | m64Intrinsic_exists_uniform_normal_strip K hdelta hdelta1 halpha |
| 80 | refine ⟨R, hR, hRsmall, ?_⟩ |
| 81 | intro N hK |
| 82 | obtain ⟨_, u, _, hu, _, hinit, _, hpoint⟩ := hstrip N hK |
| 83 | refine ⟨u, hu, hinit, ?_⟩ |
| 84 | intro a ha |
| 85 | obtain ⟨b, _, _, hb, hbR, _, _, _, _, _, hinside, hlast, hcontact, hmetric⟩ := hpoint a ha |
| 86 | refine ⟨b, hb, hbR, hinside, hlast, hcontact, ?_⟩ |
| 87 | intro t ht |
| 88 | exact m64Intrinsic_normal_map_density_lower N.metric |
| 89 | (hu.differentiable (by simp) (a, t)) (hmetric t ht).1 |
| 90 | |
| 91 | end PoincareMT |