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.Normal.Expansion |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Normal.Metric |
| 3 | |
| 4 | /-! |
| 5 | # The uniform normal-strip metric estimate |
| 6 | |
| 7 | On every interval before first boundary exit, the actual normal map has |
| 8 | pullback metric at least `(1 - delta)^2` times the boundary product metric. |
| 9 | The chosen radius is uniform in the intrinsic annulus. All differential, |
| 10 | Jacobi, initial-turning, and orthogonality facts are produced internally. |
| 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 |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 27 | normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | /-- Claim 19.37's uniform metric estimate for the actual normal geodesic family, restricted |
| 30 | to any shorter interval before annulus exit. Source/construction: Morgan--Tian Claim 19.37, |
| 31 | printed pp. 468-469. -/ |
| 32 | theorem m64Intrinsic_exists_uniform_normal_metric_radius |
| 33 | (K : ℝ) {delta alpha : ℝ} (hdelta : 0 < delta) (hdelta1 : delta < 1) |
| 34 | (halpha : 0 ≤ alpha) : |
| 35 | ∃ R : ℝ, 0 < R ∧ R < 1 / 10 ∧ |
| 36 | ∀ b : ℝ, 0 < b → b ≤ R → ∀ (N : IntrinsicAnnulus) (radius : ℝ), radius ≠ 0 → |
| 37 | N.GaussianCurvatureBound K → |
| 38 | ∀ (u : ℝ × ℝ → AnnulusCoordinates) (S I : Set ℝ), |
| 39 | IsOpen S → IsOpen I → Icc (0 : ℝ) b ⊆ I → |
| 40 | ContMDiffOn 𝓘(ℝ, ℝ × ℝ) (𝓡 2) ∞ u (S ×ˢ I) → |
| 41 | (∀ s ∈ S, N.metric.IsGeodesicOn (fun t => u (s, t)) I) → |
| 42 | (∀ s ∈ S, u (s, 0) = intrinsicAnnulusBoundary radius s) → |
| 43 | ∀ normal : ℝ → AnnulusCoordinates, ContDiff ℝ ∞ normal → |
| 44 | (∀ s, N.metric.inner (intrinsicAnnulusBoundary radius s) |
| 45 | (normal s) (normal s) = 1) → |
| 46 | (∀ s, N.metric.inner (intrinsicAnnulusBoundary radius s) (normal s) |
| 47 | (curveVelocity (n := 2) (intrinsicAnnulusBoundary radius) s) = 0) → |
| 48 | (∀ s ∈ S, curveVelocity (n := 2) (fun t => u (s, t)) 0 = normal s) → |
| 49 | ∀ a ∈ S, |
| 50 | intrinsicGeodesicCurvature N.metric N.connection radius a ≤ alpha → |
| 51 | (∀ t ∈ Ioo (0 : ℝ) b, u (a, t) ∈ standardAnnulusDomain) → |
| 52 | ∀ t ∈ Icc (0 : ℝ) b, |
| 53 | (∀ v : ℝ × ℝ, |
| 54 | (1 - delta) ^ 2 * |
| 55 | ((intrinsicBoundarySpeed N.metric radius a) ^ 2 * v.1 ^ 2 + v.2 ^ 2) ≤ |
| 56 | N.metric.inner (u (a, t)) |
| 57 | (fderiv ℝ u (a, t) v) (fderiv ℝ u (a, t) v)) ∧ |
| 58 | Function.Injective (fderiv ℝ u (a, t)) := by |
| 59 | obtain ⟨R, hR, hRsmall, hexpansion⟩ := |
| 60 | m64Intrinsic_exists_uniform_normal_expansion_subinterval_radius K hdelta hdelta1 halpha |
| 61 | refine ⟨R, hR, hRsmall, ?_⟩ |
| 62 | intro b hb hbR N radius hradius hK u S I hS hI hsub hu hgeo hboundary |
| 63 | normal hnormal hunit horth hvelocity a ha hturn hmap |
| 64 | obtain ⟨W, hW⟩ := hexpansion b hb hbR N radius hradius hK u S I hS hI hsub hu |
| 65 | hgeo hboundary normal hnormal hunit horth hvelocity a ha hturn hmap |
| 66 | have hunit0 : N.metric.inner (u (a, 0)) |
| 67 | (curveVelocity (n := 2) (fun t => u (a, t)) 0) |
| 68 | (curveVelocity (n := 2) (fun t => u (a, t)) 0) = 1 := by |
| 69 | erw [hvelocity a ha, hboundary a ha] |
| 70 | exact hunit a |
| 71 | have hunitTime := m64Intrinsic_geodesic_velocity_unit N hb (hgeo a ha) hsub hunit0 |
| 72 | have horthTime := m64Intrinsic_normal_variation_orthogonal N hS hI hu hgeo hboundary |
| 73 | hnormal hunit horth hvelocity ha hb hsub |
| 74 | intro t ht |
| 75 | have hdiff : DifferentiableAt ℝ u (a, t) := (hu.contDiffOn.contDiffAt |
| 76 | ((hS.prod hI).mem_nhds ⟨ha, hsub ht⟩)).differentiableAt (by simp) |
| 77 | exact m64Intrinsic_normal_variation_metric_lower N hdiff (sub_pos.mpr hdelta1) |
| 78 | (by linarith) (m64Intrinsic_boundarySpeed_pos N hradius a) |
| 79 | (hunitTime t ht) (horthTime t ht) (hW t ht).2.2.2.2 |
| 80 | |
| 81 | end PoincareMT |