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.Analysis.Radial.ArcDerivative |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Varying.FocusingArc |
| 3 | |
| 4 | /-! The original normal side supplies the radial field's endpoint pairing. |
| 5 | Source: MT Remark 19.42; short-geodesic-digons derivation, Section 12. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 17 | normedSpaceTangentSpaceVectorSpace |
| 18 | |
| 19 | /-- Equality with the original reversed normal side forces every pushed scalar radial field |
| 20 | to be orthogonal to the actual boundary unit tangent. Source: MT Remark 19.42; digon |
| 21 | derivation, Section 12. Source/construction: |
| 22 | proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, Section 12. -/ |
| 23 | theorem m64Intrinsic_normal_polar_endpoint_orthogonal |
| 24 | (N : IntrinsicAnnulus) {e : AnnulusCoordinates → AnnulusCoordinates} |
| 25 | {v : AnnulusCoordinates} (he : DifferentiableAt ℝ e v) |
| 26 | {gamma : ℝ → AnnulusCoordinates} (hg : DifferentiableAt ℝ gamma 0) {T a : ℝ} |
| 27 | (hvalue : ∀ t ∈ Icc (0 : ℝ) 1, e (t • v) = gamma (T - T * t)) |
| 28 | (horth : N.metric.inner (intrinsicAnnulusBoundary 1 a) |
| 29 | (deriv (intrinsicAnnulusBoundary 1) a) (deriv gamma 0) = 0) (c : ℝ) : |
| 30 | N.metric.inner (intrinsicAnnulusBoundary 1 a) (fderiv ℝ e v (c • v)) |
| 31 | (intrinsicBoundaryUnitTangent N.metric 1 a) = 0 := by |
| 32 | have hd := m64_radial_terminal_derivative_of_closed_reverse he hg hvalue |
| 33 | have ho : N.metric.inner (intrinsicAnnulusBoundary 1 a) (deriv gamma 0) |
| 34 | (deriv (intrinsicAnnulusBoundary 1) a) = 0 := by |
| 35 | rw [N.metric.symm] |
| 36 | exact horth |
| 37 | simp only [map_smul, hd, intrinsicBoundaryUnitTangent, |
| 38 | m64Intrinsic_curveVelocity_eq_deriv, smul_apply, smul_eq_mul, ho, mul_zero] |
| 39 | |
| 40 | end PoincareMT |