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.Density |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Measurable.Contact |
| 3 | |
| 4 | /-! |
| 5 | # A measurable first-contact domain for the constructed normal strip |
| 6 | |
| 7 | The inward initial derivative gives entry into the annulus for every base |
| 8 | point. First contact therefore supplies one measurable height function. |
| 9 | Uniqueness identifies its values with the good-point Jacobi intervals, |
| 10 | retaining the actual metric, density, and differential injectivity bounds. |
| 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 MeasureTheory |
| 22 | open scoped Topology Manifold ContDiff Bundle Matrix |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 27 | normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | /-- The public Gaussian upper bound produces the jointly smooth normal map and its |
| 30 | measurable first-contact heights. At each good base point, the full metric lower bound holds |
| 31 | through this same selected height. Source/construction: Morgan--Tian Claim 19.37, printed |
| 32 | pp. 468-469. -/ |
| 33 | theorem m64Intrinsic_exists_uniform_measurable_normal_strip |
| 34 | (K : ℝ) {delta alpha : ℝ} (hdelta : 0 < delta) (hdelta1 : delta < 1) |
| 35 | (halpha : 0 ≤ alpha) : |
| 36 | ∃ R : ℝ, 0 < R ∧ R < 1 / 10 ∧ |
| 37 | ∀ N : IntrinsicAnnulus, N.GaussianCurvatureBound K → |
| 38 | ∃ (u : ℝ × ℝ → AnnulusCoordinates) (height : ℝ → ℝ), |
| 39 | ContDiff ℝ ∞ u ∧ Measurable height ∧ |
| 40 | (∀ s, u (s, 0) = intrinsicAnnulusBoundary 1 s) ∧ |
| 41 | (∀ s, 0 < height s ∧ height s ≤ R ∧ |
| 42 | (∀ t ∈ Ioo (0 : ℝ) (height s), 1 < ‖u (s, t)‖ ∧ ‖u (s, t)‖ < 2) ∧ |
| 43 | u (s, height s) ∈ standardAnnulusDomain ∧ |
| 44 | (height s = R ∨ ‖u (s, height s)‖ = 1 ∨ ‖u (s, height s)‖ = 2)) ∧ |
| 45 | ∀ a : ℝ, intrinsicGeodesicCurvature N.metric N.connection 1 a ≤ alpha → |
| 46 | ∃ S I : Set ℝ, IsOpen S ∧ IsOpen I ∧ a ∈ S ∧ Icc (0 : ℝ) (height a) ⊆ I ∧ |
| 47 | (∀ s ∈ S, N.metric.IsGeodesicOn (fun t => u (s, t)) I) ∧ |
| 48 | ∀ t ∈ Icc (0 : ℝ) (height a), |
| 49 | (∀ v : ℝ × ℝ, |
| 50 | (1 - delta) ^ 2 * |
| 51 | ((intrinsicBoundarySpeed N.metric 1 a) ^ 2 * v.1 ^ 2 + v.2 ^ 2) ≤ |
| 52 | N.metric.inner (u (a, t)) |
| 53 | (fderiv ℝ u (a, t) v) (fderiv ℝ u (a, t) v)) ∧ |
| 54 | Function.Injective (fderiv ℝ u (a, t)) ∧ |
| 55 | (1 - delta) ^ 2 * intrinsicBoundarySpeed N.metric 1 a ≤ |
| 56 | N.metric.pullbackVolumeDensity |
| 57 | (fun z : AnnulusCoordinates => u (z 0, z 1)) !₂[a, t] := by |
| 58 | obtain ⟨R, hR, hRsmall, hstrip⟩ := |
| 59 | m64Intrinsic_exists_uniform_normal_strip K hdelta hdelta1 halpha |
| 60 | refine ⟨R, hR, hRsmall, ?_⟩ |
| 61 | intro N hK |
| 62 | obtain ⟨normal, u, _, hu, hn, hinit, hvelocity, hpoint⟩ := hstrip N hK |
| 63 | obtain ⟨height, hheight, hcontact⟩ := m64Intrinsic_exists_measurable_contact_times |
| 64 | hu.continuous hR (fun a => m64Intrinsic_inward_curve_enters_annulus |
| 65 | (hinit a) (hvelocity a) (hn a).2.2) |
| 66 | refine ⟨u, height, hu, hheight, hinit, hcontact, ?_⟩ |
| 67 | intro a ha |
| 68 | obtain ⟨b, S, I, hb, hbR, hS, hI, haS, hsub, hgeo, |
| 69 | hinside, _, hend, hmetric⟩ := hpoint a ha |
| 70 | have heq : b = height a := m64Intrinsic_first_annulus_contact_unique |
| 71 | hb (hcontact a).1 hbR (hcontact a).2.1 hinside (hcontact a).2.2.1 |
| 72 | hend (hcontact a).2.2.2.2 |
| 73 | subst b |
| 74 | refine ⟨S, I, hS, hI, haS, hsub, hgeo, ?_⟩ |
| 75 | intro t ht |
| 76 | exact ⟨(hmetric t ht).1, (hmetric t ht).2, |
| 77 | m64Intrinsic_normal_map_density_lower N.metric |
| 78 | (hu.differentiable (by simp) (a, t)) (hmetric t ht).1⟩ |
| 79 | |
| 80 | end PoincareMT |