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.Control.SmallNecks |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Separation.Scale |
| 3 | |
| 4 | /-! |
| 5 | # Proposition 2.19 for the Chapter 15 threshold |
| 6 | |
| 7 | Morgan--Tian, Proposition 2.19 and Lemma 2.20, pp. 31-33. The lower M20 |
| 8 | proof already establishes the uniform threshold using soul separation and |
| 9 | Busemann flux. This adapter retains M45's orthonormal-pair formulation and |
| 10 | its connection-equality filter without strengthening any hypothesis. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M45 |
| 20 | |
| 21 | /-- Proposition 2.19, pp. 31-33, supplies the first threshold in |
| 22 | the minimum of Section 15.1.1, p. 354. -/ |
| 23 | theorem smallNeckThreshold : |
| 24 | ∃ epsilon₁ : ℝ, 0 < epsilon₁ ∧ M45SmallNeckScaleBound.{u} epsilon₁ := by |
| 25 | obtain ⟨epsilon₁, hpos, _, hbound⟩ := |
| 26 | RiemannianMetric.exists_universal_neck_scale_lower_bound.{u} |
| 27 | refine ⟨epsilon₁, hpos, ?_⟩ |
| 28 | intro M _ _ _ _ _ _ _ _ _ g D hcomplete hpositive epsilon hepsilon hsmall |
| 29 | cases isEmpty_or_nonempty M with |
| 30 | | inl hempty => |
| 31 | exact ⟨1, zero_lt_one, fun N _ _ => isEmptyElim N.center⟩ |
| 32 | | inr hnonempty => |
| 33 | obtain ⟨scale₀, hscale₀, hscale⟩ := hbound M g D hcomplete |
| 34 | (fun x v w hv hw hvw => hpositive x v w ⟨hv, hw, hvw⟩) |
| 35 | epsilon hepsilon hsmall |
| 36 | exact ⟨scale₀, hscale₀, fun N _ hN => hscale N hN⟩ |
| 37 | |
| 38 | end PoincareMT.M45 |