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.Induction.Schedules.Models.RoundBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.StandardGeometry.StandardNecks |
| 3 | |
| 4 | /-! |
| 5 | # Universal primitive analytic bounds for the canonical models |
| 6 | |
| 7 | Choose the Euclidean neck constants once, then instantiate the same |
| 8 | transport theorem on the physical Type-u carrier and the Type-0 standard |
| 9 | cap. Morgan--Tian Definition 2.16, equation (2.1), p. 30, Definition 2.18, |
| 10 | p. 31, and Definition 9.76, p. 231. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M45 |
| 20 | |
| 21 | /-- Positive universal neck and round constants yield every literal |
| 22 | primitive model field, including the explicit Type-0 standard-neck field. |
| 23 | Source: Definitions 2.16, 2.18 and 9.76, pp. 30-31 and 231. -/ |
| 24 | theorem model_analytic_bounds_nonempty : Nonempty M45ModelAnalyticBounds.{u} := by |
| 25 | obtain ⟨Cg, hCg, hgradient⟩ := |
| 26 | exists_model_scalar_differential_bound_of_coordinate_jets modelNeckCoordinateBound |
| 27 | obtain ⟨Ce, hCe, hevolution⟩ := M44.exists_scalar_evolution_bound_of_coordinate_jets 3 |
| 28 | (show (0 : ℝ) < 1 / 2 by norm_num) modelNeckCoordinateBound |
| 29 | obtain ⟨Cr, hCr, hround⟩ := exists_model_round_analytic_bound.{u} |
| 30 | refine ⟨{ |
| 31 | neck_constant := max Cg Ce |
| 32 | neck_constant_pos := lt_of_lt_of_le hCg (le_max_left _ _) |
| 33 | round_constant := Cr |
| 34 | round_constant_pos := hCr |
| 35 | neck := ?_ |
| 36 | round := hround |
| 37 | standard_neck := ?_ |
| 38 | }⟩ |
| 39 | · intro M _ _ _ g D N hsmall |
| 40 | exact model_neck_analytic hCg hCe |
| 41 | (fun gE DE => hgradient gE DE 0) (fun gE DE => hevolution gE DE 0) g D N hsmall |
| 42 | · intro atlas g₀ F t epsilon x I N hsmall hzero |
| 43 | exact model_neck_analytic hCg hCe |
| 44 | (fun gE DE => hgradient gE DE 0) (fun gE DE => hevolution gE DE 0) |
| 45 | (F.metric t) (F.connection t) (N.staticAtZero hzero).toEpsilonNeck hsmall |
| 46 | |
| 47 | /-- The selected universal primitive model analytic bounds for M45. |
| 48 | The choice concerns numerical witnesses before any actual metric or flow. |
| 49 | Source: Definitions 2.16, 2.18 and 9.76, pp. 30-31 and 231. -/ |
| 50 | noncomputable def modelAnalyticBounds : M45ModelAnalyticBounds.{u} := |
| 51 | Classical.choice model_analytic_bounds_nonempty |
| 52 | |
| 53 | end PoincareMT.M45 |