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.Flow.Basic |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M45InitialControl.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M45 initial control on raw surgery flows |
| 11 | |
| 12 | Claim 15.1 and the discussion before Definition 15.7, pp. 353 and 360, |
| 13 | apply to the actual initial metric. The conclusion controls only times |
| 14 | in the supplied flow's domain, which may have an included regular endpoint. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | /-- Initial curvature and full volume estimates on every actual raw flow. |
| 26 | The scalar coefficient 18 is the elementary bound `|R| <= 9 |Rm|` in |
| 27 | dimension three. No later canonical or analytic control is a premise. -/ |
| 28 | def M45InitialSurgeryControl (epsilon kappa0 : ℝ) : Prop := |
| 29 | ∀ F : SurgeryFlowData.{u}, |
| 30 | Disjoint F.surgery_times (Set.Icc 0 (1 / 16 : ℝ)) ∧ |
| 31 | ∀ t ∈ F.time_domain, t ≤ 1 / 16 → ∀ x : (F.slice t).carrier, |
| 32 | (F.connection t).curvatureTensorNorm x ≤ 2 ∧ |
| 33 | |(F.connection t).scalarCurvature x| ≤ 18 ∧ |
| 34 | ∀ r : ℝ, 0 < r → r ≤ epsilon → |
| 35 | ENNReal.ofReal (kappa0 * r ^ 3) ≤ |
| 36 | calibratedMetricVolume (F.metric t) ((F.metric t).ball x r) |
| 37 | |
| 38 | end PoincareMT |