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.CurveShortening.Evolution.Geometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Corrected Chapter 19.2 evolution estimates |
| 6 | |
| 7 | The bounds retain the linear curvature error from the 2015 correction. |
| 8 | Constants are selected from ambient bounds before the curve is quantified. |
| 9 | Total curvature is controlled in integral form, so no differentiability of |
| 10 | the norm at its zeros is silently assumed. The auxiliary spacetime identity |
| 11 | and its connection construction belong to the deferred proof. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 24 | [IsManifold (𝓡 n) ∞ M] |
| 25 | variable {t₀ t₁ : ℝ} |
| 26 | |
| 27 | /-- Concrete spatial curvature bounds on the whole ambient time interval. -/ |
| 28 | structure CurveEvolutionAmbientBounds |
| 29 | (F : RicciFlow n M (Set.Icc t₀ t₁)) (K₀ K₁ K₂ : ℝ) : Prop where |
| 30 | riemann : ∀ t ∈ Set.Icc t₀ t₁, ∀ x : M, |
| 31 | ∀ v : Fin 4 → TangentSpace (𝓡 n) x, |
| 32 | (∀ i, (F.metric t).tangentNorm x (v i) ≤ 1) → |
| 33 | |(F.connection t).curvatureTensor x (v 0) (v 1) (v 2) (v 3)| ≤ K₀ |
| 34 | ricci_derivative : ∀ t ∈ Set.Icc t₀ t₁, ∀ x : M, |
| 35 | ∀ v : Fin 3 → TangentSpace (𝓡 n) x, |
| 36 | (∀ i, (F.metric t).tangentNorm x (v i) ≤ 1) → |
| 37 | |(F.connection t).covariantTensorDerivative |
| 38 | (F.connection t).ricciEvaluation x v| ≤ K₁ |
| 39 | ricci : ∀ t ∈ Set.Icc t₀ t₁, ∀ x : M, |
| 40 | ∀ v w : TangentSpace (𝓡 n) x, |
| 41 | (F.metric t).tangentNorm x v ≤ 1 → (F.metric t).tangentNorm x w ≤ 1 → |
| 42 | |(F.connection t).ricci x v w| ≤ K₂ |
| 43 | |
| 44 | /-- An ambient flow and its numeric bounds, independent of any chosen curve. -/ |
| 45 | structure CurveEvolutionPredecessors where |
| 46 | curvature : RicciFlowCurvatureTheory.{u} |
| 47 | flow : RicciFlow n M (Set.Icc t₀ t₁) |
| 48 | K₀ : ℝ |
| 49 | K₁ : ℝ |
| 50 | K₂ : ℝ |
| 51 | bounds_nonnegative : 0 ≤ K₀ ∧ 0 ≤ K₁ ∧ 0 ≤ K₂ |
| 52 | bounds : CurveEvolutionAmbientBounds flow K₀ K₁ K₂ |
| 53 | |
| 54 | /-- Smooth curve-shrinking data to which the uniform ambient estimate applies. -/ |
| 55 | structure CurveEvolutionSolution (F : RicciFlow n M (Set.Icc t₀ t₁)) where |
| 56 | family : CurveShrinkingFlow.Data F |
| 57 | shrinking_equation : SatisfiesCurveShrinkingEquation family |
| 58 | curvature_extension : ∀ t : ℝ, SmoothAlongCurveExtensionOn Set.univ |
| 59 | (fun x ↦ family.curve x t) (fun x ↦ curveCurvatureVector family t x) |
| 60 | squared_curvature_regular : ∀ t : ℝ, |
| 61 | ContDiffOn ℝ 2 (fun x ↦ curveCurvatureSquared family t x) Set.univ |
| 62 | time_squared_curvature_regular : ∀ x : ℝ, |
| 63 | ContDiffOn ℝ 1 (fun t ↦ curveCurvatureSquared family t x) (Set.Icc t₀ t₁) |
| 64 | length_integrable : ∀ t : ℝ, IntervalIntegrable |
| 65 | (fun x ↦ curveSpeed F family.curve t x) MeasureTheory.volume 0 curvePeriod |
| 66 | curvature_integrable : ∀ t : ℝ, IntervalIntegrable |
| 67 | (fun x ↦ curveCurvature family t x * curveSpeed F family.curve t x) |
| 68 | MeasureTheory.volume 0 curvePeriod |
| 69 | |
| 70 | /-- The spatial upper bound from corrected Corollary 0.3. Dropping the negative |
| 71 | square of the extra time component only enlarges this right-hand side. -/ |
| 72 | noncomputable def correctedCurvatureSquaredRhs |
| 73 | {F : RicciFlow n M (Set.Icc t₀ t₁)} (S : CurveEvolutionSolution F) |
| 74 | (C₀ t x : ℝ) : ℝ := |
| 75 | arcLengthSecondDerivative S.family t x - |
| 76 | 2 * (F.metric t).inner (S.family.curve x t) |
| 77 | (normalCovariantDerivative S.family t x (S.curvature_extension t)) |
| 78 | (normalCovariantDerivative S.family t x (S.curvature_extension t)) + |
| 79 | 2 * (curveCurvatureSquared S.family t x) ^ 2 + |
| 80 | C₀ * (curveCurvatureSquared S.family t x + curveCurvature S.family t x) |
| 81 | |
| 82 | /-- The positive regularization of the curvature norm. -/ |
| 83 | noncomputable def regularizedCurveCurvature |
| 84 | {F : RicciFlow n M (Set.Icc t₀ t₁)} (S : CurveEvolutionSolution F) |
| 85 | (ε t x : ℝ) : ℝ := |
| 86 | Real.sqrt (curveCurvatureSquared S.family t x + ε ^ 2) |
| 87 | |
| 88 | noncomputable def regularizedCurveCurvatureRhs |
| 89 | {F : RicciFlow n M (Set.Icc t₀ t₁)} (S : CurveEvolutionSolution F) |
| 90 | (C₁ ε t x : ℝ) : ℝ := |
| 91 | arcLengthSecondDerivativeOf S.family t |
| 92 | (fun y ↦ regularizedCurveCurvature S ε t y) x + |
| 93 | (curveCurvature S.family t x) ^ 3 + |
| 94 | C₁ * (regularizedCurveCurvature S ε t x + 1) |
| 95 | |
| 96 | /-- Quantitative estimates for one solution, with externally chosen constants. -/ |
| 97 | structure CurveEvolutionEstimates |
| 98 | {F : RicciFlow n M (Set.Icc t₀ t₁)} (S : CurveEvolutionSolution F) |
| 99 | (C₀ C₁ C₂ : ℝ) : Prop where |
| 100 | pointwise_curvature_squared : ∀ t ∈ Set.Ioo t₀ t₁, ∀ x : ℝ, |
| 101 | deriv (fun s ↦ curveCurvatureSquared S.family s x) t ≤ |
| 102 | correctedCurvatureSquaredRhs S C₀ t x |
| 103 | regularized_curvature : ∀ ε : ℝ, 0 < ε → ∀ t ∈ Set.Ioo t₀ t₁, ∀ x : ℝ, |
| 104 | deriv (fun s ↦ regularizedCurveCurvature S ε s x) t ≤ |
| 105 | regularizedCurveCurvatureRhs S C₁ ε t x |
| 106 | length_identity : ∀ t ∈ Set.Ioo t₀ t₁, |
| 107 | HasDerivAt (totalCurveLength S.family) |
| 108 | (-(∫ x in (0 : ℝ)..curvePeriod, |
| 109 | (curveCurvatureSquared S.family t x + |
| 110 | (F.connection t).ricci (S.family.curve x t) |
| 111 | (spatialUnitTangent F S.family.curve t x) |
| 112 | (spatialUnitTangent F S.family.curve t x)) * |
| 113 | curveSpeed F S.family.curve t x)) t |
| 114 | length_derivative_bound : ∀ t ∈ Set.Ioo t₀ t₁, |
| 115 | deriv (totalCurveLength S.family) t ≤ |
| 116 | ∫ x in (0 : ℝ)..curvePeriod, |
| 117 | (C₂ - curveCurvatureSquared S.family t x) * curveSpeed F S.family.curve t x |
| 118 | continuous_length : ContinuousOn (totalCurveLength S.family) (Set.Icc t₀ t₁) |
| 119 | continuous_total_curvature : |
| 120 | ContinuousOn (totalCurveCurvature S.family) (Set.Icc t₀ t₁) |
| 121 | total_curvature_integral : |
| 122 | ∀ a b : ℝ, a ∈ Set.Icc t₀ t₁ → b ∈ Set.Icc t₀ t₁ → a ≤ b → |
| 123 | totalCurveCurvature S.family b - totalCurveCurvature S.family a ≤ |
| 124 | ∫ t in a..b, (C₁ + C₂) * totalCurveCurvature S.family t + |
| 125 | C₁ * totalCurveLength S.family t |
| 126 | exponential_length_bound : |
| 127 | ∀ a b : ℝ, a ∈ Set.Icc t₀ t₁ → b ∈ Set.Icc t₀ t₁ → a ≤ b → |
| 128 | totalCurveLength S.family b ≤ |
| 129 | totalCurveLength S.family a * Real.exp (C₂ * (b - a)) |
| 130 | exponential_total_curvature_bound : |
| 131 | ∀ a b : ℝ, a ∈ Set.Icc t₀ t₁ → b ∈ Set.Icc t₀ t₁ → a ≤ b → |
| 132 | totalCurveCurvature S.family b + totalCurveLength S.family b ≤ |
| 133 | (totalCurveCurvature S.family a + totalCurveLength S.family a) * |
| 134 | Real.exp ((C₁ + C₂) * (b - a)) |
| 135 | |
| 136 | /-- The same constants apply to every flow satisfying the retained numeric bounds |
| 137 | and every smooth immersed shrinking family in that flow. -/ |
| 138 | structure CurveEvolutionConclusions |
| 139 | (P : CurveEvolutionPredecessors (n := n) (M := M) (t₀ := t₀) (t₁ := t₁)) where |
| 140 | C₀ : ℝ |
| 141 | C₁ : ℝ |
| 142 | C₂ : ℝ |
| 143 | nonnegative : 0 ≤ C₀ ∧ 0 ≤ C₁ ∧ 0 ≤ C₂ |
| 144 | estimates : ∀ F : RicciFlow n M (Set.Icc t₀ t₁), |
| 145 | CurveEvolutionAmbientBounds F P.K₀ P.K₁ P.K₂ → |
| 146 | ∀ S : CurveEvolutionSolution F, CurveEvolutionEstimates S C₀ C₁ C₂ |
| 147 | |
| 148 | end PoincareMT |