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.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Normalization |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Removal.Sphere.AngularProjection |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Removal.Sphere.SphereNullhomotopy |
| 5 | |
| 6 | /-! |
| 7 | # A whole transported birth ball cannot lie in the later neck |
| 8 | |
| 9 | The actual positive sectional margin on its immersed collar sphere |
| 10 | forces a local homeomorphism under angular projection. Transport of |
| 11 | the entire birth ball makes that same projection nullhomotopic. |
| 12 | The physical version records the upper bound on the later central |
| 13 | scalar needed to compare the two metric scales. |
| 14 | Morgan--Tian, Claim 16.10, pp. 374-375; M44 derivation 46. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Topology ContinuousMap |
| 22 | |
| 23 | namespace PoincareMT.M44 |
| 24 | |
| 25 | open M36 |
| 26 | |
| 27 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 28 | |
| 29 | /-- Angular projection of a continuous transport whose entire |
| 30 | domain lies in the actual neck. Source: Claim 16.10, pp. 374-375; |
| 31 | M44 derivation 46. -/ |
| 32 | def neckTransportAngularMap |
| 33 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓡 3) ∞ M] |
| 34 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) |
| 35 | {X : Type*} [TopologicalSpace X] (f : C(X, M)) |
| 36 | (hmem : ∀ x, f x ∈ N.carrier) : C(X, UnitTwoSphere) := |
| 37 | ⟨fun x => (N.coordinate_inverse (f x)).1, continuous_iff_continuousAt.mpr |
| 38 | (fun x => (neck_inverse_contMDiffAt N (hmem x)).continuousAt.fst.comp |
| 39 | f.continuous.continuousAt)⟩ |
| 40 | |
| 41 | /-- One uniform thinness cutoff excludes containment of a whole |
| 42 | standard birth ball whose transported sphere has the stated actual |
| 43 | normalized tangent-plane margin. Source: Claim 16.10, pp. 374-375; |
| 44 | M44 derivation 46. -/ |
| 45 | theorem exists_sphere_neck_obstruction_cutoff {k : ℝ} (hk : 0 < k) : |
| 46 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ |
| 47 | ∀ {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 48 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 49 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g), N.epsilon ≤ epsilon0 → |
| 50 | ∀ (g0 : StandardInitialMetric) (R : ℝ), 0 < R → |
| 51 | ∀ (sphere : C(UnitTwoSphere, g0.metric.ball 0 R)) |
| 52 | (transport : C(g0.metric.ball 0 R, M)), |
| 53 | (∀ x, transport x ∈ N.carrier) → |
| 54 | ContMDiff (𝓡 2) (𝓡 3) ∞ (transport.comp sphere) → |
| 55 | (∀ z, Function.Injective (mfderiv (𝓡 2) (𝓡 3) (transport.comp sphere) z)) → |
| 56 | (∀ z, ∀ u v : TangentSpace (𝓡 2) z, |
| 57 | let f := transport.comp sphere |
| 58 | let Df := mfderiv (𝓡 2) (𝓡 3) f z |
| 59 | let h := normalizedNeckMetric N |
| 60 | 0 < h.inner (f z) (Df u) (Df u) * h.inner (f z) (Df v) (Df v) - |
| 61 | (h.inner (f z) (Df u) (Df v)) ^ 2 → |
| 62 | k < (normalizedNeckConnection N).sectionalCurvature (f z) (Df u) (Df v)) → |
| 63 | False := by |
| 64 | obtain ⟨epsilon0, hepsilon0, hcut⟩ := exists_neck_sphere_angular_cutoff hk |
| 65 | refine ⟨epsilon0, hepsilon0, ?_⟩ |
| 66 | intro M _ _ _ _ g N hsmall g0 R hR sphere transport hmem hf himm hlower |
| 67 | have hlocal := hcut N hsmall (transport.comp sphere) hf |
| 68 | (fun z => hmem (sphere z)) himm hlower |
| 69 | apply sphere_factor_through_standard_ball_not_localHomeomorph g0 hR sphere |
| 70 | (neckTransportAngularMap N transport hmem) |
| 71 | simpa only [neckTransportAngularMap, neckSphereAngularMap, |
| 72 | ContinuousMap.coe_mk, ContinuousMap.coe_comp, Function.comp_def] using hlocal |
| 73 | |
| 74 | /-- A normalized positive Gram determinant is positive also in |
| 75 | the physical neck metric. Source: the scale comparison of |
| 76 | Claim 16.10; M44 derivation 46. -/ |
| 77 | theorem normalizedNeck_gram_pos_iff |
| 78 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓡 3) ∞ M] |
| 79 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) (x : M) |
| 80 | (u v : TangentSpace (𝓡 3) x) : |
| 81 | (0 < (normalizedNeckMetric N).inner x u u * (normalizedNeckMetric N).inner x v v - |
| 82 | ((normalizedNeckMetric N).inner x u v) ^ 2) ↔ |
| 83 | 0 < g.inner x u u * g.inner x v v - (g.inner x u v) ^ 2 := by |
| 84 | simp only [normalizedNeckMetric, m01RescaledMetric_inner] |
| 85 | rw [show (N.connection.scalarCurvature N.center * g.inner x u u) * |
| 86 | (N.connection.scalarCurvature N.center * g.inner x v v) - |
| 87 | (N.connection.scalarCurvature N.center * g.inner x u v) ^ 2 = |
| 88 | (N.connection.scalarCurvature N.center) ^ 2 * |
| 89 | (g.inner x u u * g.inner x v v - (g.inner x u v) ^ 2) by ring] |
| 90 | exact mul_pos_iff_of_pos_left (sq_pos_of_pos N.scalar_center_pos) |
| 91 | |
| 92 | /-- Physical tangent-plane and central-scalar bounds imply the |
| 93 | normalized margin with the correct quotient of scales. Source: |
| 94 | Claim 16.10, pp. 374-375; M44 derivation 46. -/ |
| 95 | theorem normalizedNeck_sectional_lower |
| 96 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓡 3) ∞ M] |
| 97 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) |
| 98 | {k Q : ℝ} (hk : 0 ≤ k) (hQ : N.connection.scalarCurvature N.center ≤ Q) |
| 99 | {x : M} {u v : TangentSpace (𝓡 3) x} |
| 100 | (hlower : k < N.connection.sectionalCurvature x u v) : |
| 101 | k / Q < (normalizedNeckConnection N).sectionalCurvature x u v := by |
| 102 | rw [normalizedNeck_sectional] |
| 103 | exact (div_le_div_of_nonneg_left hk N.scalar_center_pos hQ).trans_lt |
| 104 | ((div_lt_div_iff_of_pos_right N.scalar_center_pos).mpr hlower) |
| 105 | |
| 106 | /-- The whole-ball obstruction in physical units, at a cutoff |
| 107 | chosen before the ambient flow, sphere, and transport. Source: |
| 108 | Claim 16.10, pp. 374-375; M44 derivation 46. -/ |
| 109 | theorem exists_physical_sphere_neck_obstruction_cutoff {k Q : ℝ} |
| 110 | (hk : 0 < k) (hQ : 0 < Q) : |
| 111 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ |
| 112 | ∀ {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 113 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 114 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g), N.epsilon ≤ epsilon0 → |
| 115 | N.connection.scalarCurvature N.center ≤ Q → |
| 116 | ∀ (g0 : StandardInitialMetric) (R : ℝ), 0 < R → |
| 117 | ∀ (sphere : C(UnitTwoSphere, g0.metric.ball 0 R)) |
| 118 | (transport : C(g0.metric.ball 0 R, M)), |
| 119 | (∀ x, transport x ∈ N.carrier) → |
| 120 | ContMDiff (𝓡 2) (𝓡 3) ∞ (transport.comp sphere) → |
| 121 | (∀ z, Function.Injective (mfderiv (𝓡 2) (𝓡 3) (transport.comp sphere) z)) → |
| 122 | (∀ z, ∀ u v : TangentSpace (𝓡 2) z, |
| 123 | let f := transport.comp sphere |
| 124 | let Df := mfderiv (𝓡 2) (𝓡 3) f z |
| 125 | 0 < g.inner (f z) (Df u) (Df u) * g.inner (f z) (Df v) (Df v) - |
| 126 | (g.inner (f z) (Df u) (Df v)) ^ 2 → |
| 127 | k < N.connection.sectionalCurvature (f z) (Df u) (Df v)) → |
| 128 | False := by |
| 129 | obtain ⟨epsilon0, hepsilon0, hcut⟩ := exists_sphere_neck_obstruction_cutoff (div_pos hk hQ) |
| 130 | refine ⟨epsilon0, hepsilon0, ?_⟩ |
| 131 | intro M _ _ _ _ g N hsmall hcenter g0 R hR sphere transport hmem hf himm hlower |
| 132 | apply hcut N hsmall g0 R hR sphere transport hmem hf himm |
| 133 | intro z u v |
| 134 | dsimp only |
| 135 | intro hgram |
| 136 | exact normalizedNeck_sectional_lower N hk.le hcenter |
| 137 | (hlower z u v ((normalizedNeck_gram_pos_iff N _ _ _).mp hgram)) |
| 138 | |
| 139 | end PoincareMT.M44 |