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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderUniformScalar |
| 3 | |
| 4 | /-! |
| 5 | # Actual scale accuracy for balanced source neighbors |
| 6 | |
| 7 | Morgan--Tian Proposition A.11(1) and A.17, pp. 503 and 506. |
| 8 | The checked arbitrary scalar modulus gives a fixed one-thousandth scale |
| 9 | margin at an actual overlap point. This replaces the coarse factor-two |
| 10 | bound in the balanced-neighbor estimates; see M28 derivation 35. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M28 |
| 21 | |
| 22 | /-- The fine scale comparison for balanced neighbors follows from the |
| 23 | actual normalized scalar estimates at one common point. The accuracy is |
| 24 | chosen before either neck or its ambient geometry. -/ |
| 25 | theorem exists_neck_balanced_scale_accuracy : |
| 26 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 27 | ∀ (M : Type u) [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 29 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 30 | (g : RiemannianMetric 3 M) (_D : LeviCivitaData g) |
| 31 | (N N' : EpsilonNeck g), |
| 32 | N.epsilon ≤ epsilon₀ → N'.epsilon ≤ epsilon₀ → |
| 33 | (N.carrier ∩ N'.carrier).Nonempty → |
| 34 | (999 / 1000 : ℝ) * N'.scale < N.scale ∧ |
| 35 | N.scale < (1001 / 1000 : ℝ) * N'.scale := by |
| 36 | obtain ⟨epsilon₀, hpos, hsmall, hclose⟩ := |
| 37 | tube.exists_cylinder_scalar_accuracy.{u} (delta := 1 / 1000000) (by norm_num) |
| 38 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 39 | intro M _ _ _ _ g D N N' hN hN' hmeet |
| 40 | obtain ⟨x, hx, hx'⟩ := hmeet |
| 41 | have hleft := abs_lt.mp (hclose M g D N hN x hx) |
| 42 | have hright := abs_lt.mp (hclose M g D N' hN' x hx') |
| 43 | have hprod : 0 < N.scale ^ 2 * D.scalarCurvature x := by linarith |
| 44 | have hR : 0 < D.scalarCurvature x := |
| 45 | (mul_pos_iff.mp hprod).resolve_right (fun h => (not_lt_of_ge (sq_nonneg _) h.1)) |>.2 |
| 46 | have hsq : N.scale ^ 2 < (1001 / 1000 : ℝ) ^ 2 * N'.scale ^ 2 := by |
| 47 | apply (mul_lt_mul_iff_right₀ hR).mp |
| 48 | nlinarith only [hleft.2, hright.1] |
| 49 | have hsq' : N'.scale ^ 2 < (1001 / 1000 : ℝ) ^ 2 * N.scale ^ 2 := by |
| 50 | apply (mul_lt_mul_iff_right₀ hR).mp |
| 51 | nlinarith only [hright.2, hleft.1] |
| 52 | have hscale : N.scale < (1001 / 1000 : ℝ) * N'.scale := by |
| 53 | nlinarith [N.scale_pos, N'.scale_pos] |
| 54 | have hscale' : N'.scale < (1001 / 1000 : ℝ) * N.scale := by |
| 55 | nlinarith [N.scale_pos, N'.scale_pos] |
| 56 | exact ⟨by nlinarith [N.scale_pos, N'.scale_pos], hscale⟩ |
| 57 | |
| 58 | end PoincareMT.M28 |