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.Curvature.Operator.Bounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Basic |
| 3 | import PoincareLib.Geometry.RicciFlow.Pinching.Definitions |
| 4 | import PoincareLib.Topology.Manifold.NeckCap.Theory |
| 5 | |
| 6 | /-! |
| 7 | Adapted from Mapher `PoincareMT/Definitions/M45SmallNecks.lean` at |
| 8 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 9 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 10 | -/ |
| 11 | |
| 12 | /-! |
| 13 | Proposition 2.19, printed pp. 31--33: sufficiently small necks in a connected, |
| 14 | complete, strictly positively sectionally curved three-manifold have a positive |
| 15 | lower scale bound. The bound depends on the selected metric and epsilon. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | def M45SmallNeckScaleBound (epsilon₁ : ℝ) : Prop := |
| 27 | ∀ {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 29 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 30 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M], |
| 31 | ∀ (g : RiemannianMetric 3 M) (D : LeviCivitaData g), |
| 32 | MetricComplete g → |
| 33 | (∀ x : M, ∀ v w : TangentSpace (𝓡 3) x, |
| 34 | LeviCivitaData.IsOrthonormalPair g x v w → |
| 35 | 0 < D.sectionalCurvature x v w) → |
| 36 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon₁ → |
| 37 | ∃ scale₀ : ℝ, 0 < scale₀ ∧ |
| 38 | ∀ N : EpsilonNeck g, N.connection = D → N.epsilon = epsilon → |
| 39 | scale₀ ≤ N.scale |
| 40 | |
| 41 | end PoincareMT |