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.ReducedGeometry.ReducedLength.Basic |
| 2 | import Mathlib.Analysis.InnerProductSpace.Dual |
| 3 | |
| 4 | /-! |
| 5 | # The selected slice gradient norm as a dual norm |
| 6 | |
| 7 | The sum in the frozen reduced-length definition is the squared operator |
| 8 | norm of the actual spatial differential, measured in the selected slice |
| 9 | metric. The identity is pointwise and does not require a smooth frame. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle BigOperators |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | {J : Set ℝ} {F : RicciFlow n M J} {T τ : ℝ} {q : M} {f : M × ℝ → ℝ} |
| 23 | |
| 24 | /-- The frozen sum of squares is nonnegative at every point. -/ |
| 25 | theorem reducedLengthGradientNormSq_nonneg : |
| 26 | 0 ≤ reducedLengthGradientNormSq F T f τ q := by |
| 27 | unfold reducedLengthGradientNormSq |
| 28 | exact Finset.sum_nonneg fun _ _ ↦ sq_nonneg _ |
| 29 | |
| 30 | /-- The basis formula is exactly the selected-metric dual norm squared. -/ |
| 31 | theorem reducedLengthGradientNormSq_eq_opNorm_sq : |
| 32 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 33 | ⟨(F.metric (T - τ)).toRiemannianMetric⟩ |
| 34 | reducedLengthGradientNormSq F T f τ q = |
| 35 | ‖mvfderiv (𝓡 n) (fun x ↦ f (x, τ)) q‖ ^ 2 := by |
| 36 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 37 | ⟨(F.metric (T - τ)).toRiemannianMetric⟩ |
| 38 | exact ((F.metric (T - τ)).orthonormalBasis q).norm_dual _ |>.symm |
| 39 | |
| 40 | set_option backward.isDefEq.respectTransparency false in |
| 41 | /-- The actual spatial differential is bounded on every tangent vector. -/ |
| 42 | theorem abs_mvfderiv_le_gradientNorm_mul (v : TangentSpace (𝓡 n) q) : |
| 43 | |mvfderiv (𝓡 n) (fun x ↦ f (x, τ)) q v| ≤ |
| 44 | Real.sqrt (reducedLengthGradientNormSq F T f τ q) * |
| 45 | (F.metric (T - τ)).tangentNorm q v := by |
| 46 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 47 | ⟨(F.metric (T - τ)).toRiemannianMetric⟩ |
| 48 | rw [reducedLengthGradientNormSq_eq_opNorm_sq] |
| 49 | rw [Real.sqrt_sq (norm_nonneg (mvfderiv (𝓡 n) (fun x ↦ f (x, τ)) q))] |
| 50 | have h := (mvfderiv (𝓡 n) (fun x ↦ f (x, τ)) q).le_opNorm v |
| 51 | have hvnorm : ‖v‖ = (F.metric (T - τ)).tangentNorm q v := norm_eq_sqrt_real_inner v |
| 52 | simpa only [Real.norm_eq_abs, hvnorm] using h |
| 53 | |
| 54 | /-- A squared-gradient bound controls the directional derivative in the same metric. -/ |
| 55 | theorem abs_mvfderiv_le_of_gradientNormSq_le {C : ℝ} |
| 56 | (hC : reducedLengthGradientNormSq F T f τ q ≤ C) |
| 57 | (v : TangentSpace (𝓡 n) q) : |
| 58 | |mvfderiv (𝓡 n) (fun x ↦ f (x, τ)) q v| ≤ |
| 59 | Real.sqrt C * (F.metric (T - τ)).tangentNorm q v := |
| 60 | (abs_mvfderiv_le_gradientNorm_mul v).trans |
| 61 | (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hC) (Real.sqrt_nonneg _)) |
| 62 | |
| 63 | end PoincareMT.ReducedVolume |