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.StandardCap.Geometry |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/M45ModelAnalytics.lean` at |
| 5 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | /-! |
| 10 | # M45 primitive analytic estimates for geometric models |
| 11 | |
| 12 | These are supporting conclusions of M45, derived from Morgan--Tian |
| 13 | Definition 2.16, Eq. (2.1), p. 30, and Definitions 2.18 and 9.76, |
| 14 | pp. 31 and 231. Four intrinsic spatial metric jets control the displayed |
| 15 | gradient and absolute spatial evolution expression. The round case uses |
| 16 | the quantitative positive scalar lower bound after normalization. |
| 17 | See `reviews/contracts/2026-09-15-model-analytic-margin-round1.md`. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open scoped Manifold ContDiff Bundle |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | /-- Primitive scalar, gradient and absolute spatial evolution bounds at x. |
| 29 | The last expression becomes the scalar time derivative under Ricci flow. -/ |
| 30 | def M45PointwiseAnalyticEstimate |
| 31 | {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 33 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (x : M) (B : ℝ) : Prop := |
| 34 | 0 < D.scalarCurvature x ∧ |
| 35 | scalarGradientNorm g D x ≤ B * D.scalarCurvature x ^ (3 / 2 : ℝ) ∧ |
| 36 | |D.laplacian D.scalarCurvature x + 2 * D.ricciNormSq x| ≤ |
| 37 | B * D.scalarCurvature x ^ 2 |
| 38 | |
| 39 | /-- Universal model bounds, chosen before every actual metric and certificate. |
| 40 | No estimate on an arbitrary canonical component or surgery flow is asserted. -/ |
| 41 | structure M45ModelAnalyticBounds where |
| 42 | neck_constant : ℝ |
| 43 | neck_constant_pos : 0 < neck_constant |
| 44 | round_constant : ℝ |
| 45 | round_constant_pos : 0 < round_constant |
| 46 | neck : |
| 47 | ∀ {M : Type u} [TopologicalSpace M] |
| 48 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M], |
| 49 | ∀ (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (N : EpsilonNeck g), |
| 50 | N.epsilon ≤ 1 / 200 → |
| 51 | M45PointwiseAnalyticEstimate g D N.center neck_constant |
| 52 | round : |
| 53 | ∀ {M : Type u} [TopologicalSpace M] |
| 54 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M], |
| 55 | ∀ (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (epsilon : ℝ) |
| 56 | (N : SingularRoundComponent g epsilon), |
| 57 | epsilon ≤ 1 / 200 → ∀ x ∈ N.carrier, |
| 58 | M45PointwiseAnalyticEstimate g D x round_constant |
| 59 | /-- Explicit Type-0 application at normalized time zero. Four spatial |
| 60 | jets suffice even when the supplied interval is a singleton. -/ |
| 61 | standard_neck : |
| 62 | ∀ (atlas : StandardCylinderAtlas) {g₀ : StandardInitialMetric} |
| 63 | (F : MaximalStandardCapFlow g₀) (t epsilon : ℝ) (x : StandardCapSpace) |
| 64 | (I : Set ℝ), |
| 65 | StandardEvolvingNeck atlas F t epsilon x I → |
| 66 | epsilon ≤ 1 / 200 → 0 ∈ I → |
| 67 | M45PointwiseAnalyticEstimate (F.metric t) (F.connection t) x neck_constant |
| 68 | |
| 69 | end PoincareMT |