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.Actual.NormalComparison |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Uniform.ComparisonConstants |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Uniform.NormalGeometry |
| 4 | |
| 5 | /-! The original intrinsic small-annulus comparison, with uniform constants. |
| 6 | Source: MT Proposition 19.35, pp. 467-481; the central-regional-descent, |
| 7 | local-inverse-self-return and uniform-comparison-constants derivations. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | set_option autoImplicit false |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Topology ContDiff Manifold Bundle Matrix |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 19 | normedSpaceTangentSpaceVectorSpace |
| 20 | |
| 21 | /-- Proposition 19.35 with the frozen absolute-turning formulation and |
| 22 | the original quantifier order. The positive area threshold depends only |
| 23 | on delta, r and K, and all geometric producers are discharged. |
| 24 | Source: MT pp. 467-481, with the recorded M64 focusing and length-loss repairs. -/ |
| 25 | theorem m64IntrinsicAnnulusComparison : M64IntrinsicAnnulusComparison := by |
| 26 | intro delta r K hdelta hdeltaSmall hr |
| 27 | have hdelta1 : delta < 1 := hdeltaSmall.trans (by norm_num) |
| 28 | obtain ⟨q, alpha, hq, hqr, _, hmodel, halpha0, halpha, hsmall, hrhoSmall⟩ := |
| 29 | m64Intrinsic_exists_comparison_base_scale K hdelta hdeltaSmall hr |
| 30 | obtain ⟨R0, hR0, _, hnormal⟩ := |
| 31 | m64Intrinsic_exists_uniform_normal_geometry K hdelta hdelta1 halpha0 |
| 32 | obtain ⟨h, mu, hh, hhq, hhR0, hmu, hmuArea, hbudget⟩ := |
| 33 | m64Intrinsic_exists_comparison_area_cutoff K hdeltaSmall hq hR0 |
| 34 | refine ⟨mu, hmu, ?_⟩ |
| 35 | intro N hK hfirst hturn harea |
| 36 | obtain ⟨normal, e, height, _, he, hheight, _, _, _, hn, hbase, hderiv, |
| 37 | hstop, htube, hmetric⟩ := hnormal h hh hhR0 N hK |
| 38 | have horth (p : ℝ) : N.metric.inner (intrinsicAnnulusBoundary 1 p) |
| 39 | (deriv (intrinsicAnnulusBoundary 1) p) (normal p) = 0 := by |
| 40 | rw [N.metric.symm] |
| 41 | simpa only [m64Intrinsic_curveVelocity_eq_deriv] using (hn p).2.1 |
| 42 | have hgeo (p : ℝ) : |
| 43 | N.metric.IsGeodesicOn (fun t => e !₂[p, t]) (Icc 0 (height p)) := by |
| 44 | obtain ⟨S, I, _, _, hp, hsub, hgeodesic⟩ := htube p |
| 45 | exact fun t ht => hgeodesic p hp t (hsub ht) |
| 46 | have himage (p : ℝ) : ∀ t ∈ Icc 0 (height p), e !₂[p, t] ∈ standardAnnulusDomain := by |
| 47 | intro t ht |
| 48 | rcases eq_or_lt_of_le ht.1 with ht0 | htpos |
| 49 | · rw [← ht0, hbase p] |
| 50 | change 1 ≤ ‖intrinsicAnnulusBoundary 1 p‖ ∧ ‖intrinsicAnnulusBoundary 1 p‖ ≤ 2 |
| 51 | rw [m64Intrinsic_inner_boundary_norm] |
| 52 | exact ⟨le_rfl, by norm_num⟩ |
| 53 | · rcases lt_or_eq_of_le ht.2 with htlt | hteq |
| 54 | · exact ⟨((hstop p).2.2.1 t ⟨htpos, htlt⟩).1.le, |
| 55 | ((hstop p).2.2.1 t ⟨htpos, htlt⟩).2.le⟩ |
| 56 | · simpa only [hteq] using (hstop p).2.2.2.1 |
| 57 | exact (m64Intrinsic_comparison_of_actual_normal_geometry N hK hdelta hdeltaSmall |
| 58 | hq hqr hh hhq hturn halpha.symm.le hsmall hrhoSmall (hqr.trans_lt hfirst) |
| 59 | harea hbudget hmodel (harea.trans_le hmuArea) e he normal height hheight hbase hderiv |
| 60 | (fun p => (hn p).1) horth (fun p => (hn p).2.2) |
| 61 | (fun p => ⟨(hstop p).1, (hstop p).2.2.2.2⟩) (fun p => (hstop p).2.1) |
| 62 | (fun p => (hstop p).2.2.1) himage hgeo (fun p hp t ht => (hmetric p hp t ht).1)).le |
| 63 | |
| 64 | end PoincareMT |