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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundModelJets |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.FiniteOrder.Pullback |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.FiniteOrder.Frame |
| 5 | |
| 6 | /-! |
| 7 | # Finite coordinate jets of an arbitrary round model |
| 8 | |
| 9 | This file is the concrete model-side producer for the round-transfer row. The |
| 10 | model curvature certificate gives a uniform bound `9` for every retained |
| 11 | covariant curvature derivative. M07's finite-order Gauss pullback theorem then |
| 12 | turns that bound into an ordinary coordinate metric-jet bound. The chart |
| 13 | hypotheses remain visible: this result does not choose an atlas or assert a |
| 14 | uniform bridge for arbitrary charts. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option maxSynthPendingDepth 12 |
| 21 | |
| 22 | open Set Filter Metric |
| 23 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M28.tube |
| 28 | |
| 29 | variable {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 31 | [IsManifold (𝓡 3) ∞ M] |
| 32 | |
| 33 | open PoincareMT.CoordinateExponential |
| 34 | open Poincare.Riemannian.RadialTransport |
| 35 | |
| 36 | /-- The arbitrary round model has a finite ordinary metric jet on every |
| 37 | normalized Gauss chart. The constant is supplied by the lower M07 theorem, |
| 38 | with the model's curvature-derivative bound `C l = 9` discharged by |
| 39 | `RoundModelJets`. |
| 40 | -/ |
| 41 | theorem exists_round_model_pullback_metric_jet_bound |
| 42 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 43 | (N : SingularRoundComponent g epsilon) |
| 44 | (m : ℕ) {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 45 | (e : EuclideanSpace ℝ (Fin 3) → N.model.carrier) |
| 46 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 47 | (hi : ∀ x ∈ ball 0 R, |
| 48 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 49 | (h0 : ∀ v w, |
| 50 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 51 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 52 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) : |
| 53 | ∃ B : ℝ, 0 ≤ B ∧ |
| 54 | ∀ x ∈ closedBall (0 : EuclideanSpace ℝ (Fin 3)) ρ, |
| 55 | ‖iteratedFDeriv ℝ m |
| 56 | (N.model_metric.pullbackCoefficients e) x‖ ≤ B := by |
| 57 | obtain ⟨B, hB, hbound⟩ := |
| 58 | CoordinateExponential.exists_uniform_pullback_metric_jet_bound |
| 59 | 3 m hρ hρR (fun _ : ℕ => (9 : ℝ)) |
| 60 | (fun _ => by norm_num) |
| 61 | refine ⟨B, hB, ?_⟩ |
| 62 | intro x hx |
| 63 | refine hbound N.model_metric N.model_connection e he hi h0 hgauss ?_ x hx |
| 64 | intro l hl y hy |
| 65 | exact singularRound_curvatureDerivativeNorm_le_nine N l (e y) |
| 66 | |
| 67 | /-- The order-two specialization used by the finite metric-two-jet curvature |
| 68 | operator. It is kept separate so downstream consumers need not unfold the |
| 69 | general finite-order producer. |
| 70 | -/ |
| 71 | theorem exists_round_model_pullback_metric_two_jet_bound |
| 72 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 73 | (N : SingularRoundComponent g epsilon) |
| 74 | {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 75 | (e : EuclideanSpace ℝ (Fin 3) → N.model.carrier) |
| 76 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 77 | (hi : ∀ x ∈ ball 0 R, |
| 78 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 79 | (h0 : ∀ v w, |
| 80 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 81 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 82 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) : |
| 83 | ∃ B : ℝ, 0 ≤ B ∧ |
| 84 | ∀ x ∈ closedBall (0 : EuclideanSpace ℝ (Fin 3)) ρ, |
| 85 | ‖iteratedFDeriv ℝ 2 |
| 86 | (N.model_metric.pullbackCoefficients e) x‖ ≤ B := by |
| 87 | simpa using exists_round_model_pullback_metric_jet_bound N 2 hρ hρR e he hi h0 hgauss |
| 88 | |
| 89 | /-- M07's radial induction also exposes a genuine finite connection-jet bound. |
| 90 | The numeric curvature envelope is fixed to the arbitrary round-model value |
| 91 | `9`; the result is a bound for every radial connection component, rather than a |
| 92 | new scalar-ratio assumption. A normalized model chart can feed its Gauss |
| 93 | extension into this producer. |
| 94 | -/ |
| 95 | theorem exists_C9_radial_connection_jet_bound |
| 96 | (r : ℝ) (m : ℕ) : |
| 97 | ∃ B : ℝ, 0 ≤ B ∧ |
| 98 | ∀ (g : RiemannianMetric 3 (EuclideanSpace ℝ (Fin 3))) |
| 99 | (D : LeviCivitaData g) |
| 100 | (b : OrthonormalBasis (Fin 3) ℝ (EuclideanSpace ℝ (Fin 3))), |
| 101 | (∀ v w : EuclideanSpace ℝ (Fin 3), |
| 102 | g.inner 0 v w = inner ℝ v w) → |
| 103 | (∀ x : EuclideanSpace ℝ (Fin 3), ∀ t : ℝ, |
| 104 | christoffelBilinear g.euclideanCoefficients (t • x) x x = 0) → |
| 105 | ∀ T : EuclideanSpace ℝ (Fin 3) → |
| 106 | EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3), |
| 107 | ContDiff ℝ ∞ T → (∀ x, (T x).IsInvertible) → |
| 108 | (∀ x v, T x v = |
| 109 | field (christoffelBilinear g.euclideanCoefficients) v x) → |
| 110 | (∀ l ≤ m, ∀ x ∈ ball (0 : EuclideanSpace ℝ (Fin 3)) r, |
| 111 | D.curvatureDerivativeNorm l x ≤ 9) → |
| 112 | ∀ q ≤ m, ∀ j a u, |
| 113 | ∀ x ∈ ball (0 : EuclideanSpace ℝ (Fin 3)) r, |
| 114 | ‖iteratedFDeriv ℝ q (fun y => radialConnectionCoeff b |
| 115 | (christoffelBilinear g.euclideanCoefficients) T j a y u) x‖ ≤ |
| 116 | B * ‖u‖ := by |
| 117 | obtain ⟨A, B, K, hA, hB, hK, hbound⟩ := |
| 118 | CoordinateExponential.exists_uniform_radial_frame_jet_bounds_through |
| 119 | 3 r (fun _ : ℕ => (9 : ℝ)) (fun _ => by norm_num) m m le_rfl |
| 120 | refine ⟨B, hB, ?_⟩ |
| 121 | intro g D b h0 hgeo T hT hTi hTv hcurv q hq j a u x hx |
| 122 | exact (hbound g D b h0 hgeo T hT hTi hTv hcurv).2.2 q hq j a u x hx |
| 123 | |
| 124 | end PoincareMT.M28.tube |