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.Persistence.SourceNames.Homothety |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Curvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Geometry.MetricCurvatureForm |
| 4 | import PoincareLib.Geometry.Riemannian.Homothety.Curvature.Contractions |
| 5 | import PoincareLib.Geometry.RicciFlow.Positivity.Sectional.MinimumDiffusion |
| 6 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.TensorPullback |
| 7 | import PoincareLib.Geometry.RicciFlow.Pinching.Definitions |
| 8 | |
| 9 | /-! |
| 10 | # Curvature and its derivatives on the actual curvature-one model |
| 11 | |
| 12 | The orthonormal sectional-curvature assumption identifies the actual |
| 13 | curvature tensor with the metric Gram tensor. Metric compatibility |
| 14 | then makes every positive covariant curvature derivative vanish. |
| 15 | This applies to all space forms allowed by Morgan--Tian, Definition |
| 16 | 9.76, and is used in Lemma 11.2 and Lemma 16.8; see derivation 28. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | -- Curried four-linear forms occur in the pointwise identification. |
| 22 | set_option maxSynthPendingDepth 8 |
| 23 | |
| 24 | open scoped Manifold ContDiff Bundle BigOperators |
| 25 | |
| 26 | namespace PoincareMT.M44 |
| 27 | |
| 28 | variable {M : Type*} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [T2Space M] {g : RiemannianMetric 3 M} |
| 31 | |
| 32 | /-- The actual curvature-one tensor is the metric Gram tensor, with |
| 33 | the project's last-slot convention. Source: Definition 9.76 and |
| 34 | the curvature convention on Morgan--Tian pp. 5-7. -/ |
| 35 | theorem curvatureTensor_eq_metricGram_of_sectional_one (D : LeviCivitaData g) |
| 36 | (hsec : ∀ x v w, LeviCivitaData.IsOrthonormalPair g x v w → |
| 37 | D.sectionalCurvature x v w = 1) |
| 38 | (x : M) (a b c d : TangentSpace (𝓡 3) x) : |
| 39 | D.curvatureTensor x a b c d = |
| 40 | g.inner x a c * g.inner x b d - g.inner x b c * g.inner x a d := by |
| 41 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 42 | ⟨g.toRiemannianMetric⟩ |
| 43 | let B : TangentSpace (𝓡 3) x →ₗ[ℝ] TangentSpace (𝓡 3) x →ₗ[ℝ] ℝ := |
| 44 | LinearMap.mk₂ ℝ (fun u v => g.inner x u v) |
| 45 | (fun u v w => by simp only [map_add, add_apply]) |
| 46 | (fun r v w => by simp only [map_smul, smul_apply]) |
| 47 | (fun u v w => by simp only [map_add]) |
| 48 | (fun r v w => by simp only [map_smul]) |
| 49 | let T := M13.curvatureTensorLinear D x - metricCurvatureForm B |
| 50 | have hT (u v w z : TangentSpace (𝓡 3) x) : T u v w z = |
| 51 | D.curvatureTensor x u v w z - |
| 52 | (g.inner x u w * g.inner x v z - g.inner x v w * g.inner x u z) := rfl |
| 53 | have hfirst (u v w z : TangentSpace (𝓡 3) x) : T u v w z = -T v u w z := by |
| 54 | rw [hT, hT, M04.curvatureTensor_swap_first D x u v w z] |
| 55 | ring |
| 56 | have hpair (u v w z : TangentSpace (𝓡 3) x) : T u v w z = T w z u v := by |
| 57 | rw [hT, hT, M04.curvatureTensor_pair_exchange D x, |
| 58 | g.symm x w u, g.symm x z v, g.symm x z u, g.symm x w v] |
| 59 | ring |
| 60 | have hcyclic (u v w z : TangentSpace (𝓡 3) x) : |
| 61 | T u v w z + T v w u z + T w u v z = 0 := by |
| 62 | simp only [hT] |
| 63 | rw [g.symm x v u, g.symm x w u, g.symm x w v] |
| 64 | linarith only [M04.curvatureTensor_cyclic D x u v w z] |
| 65 | have hunit (u v : TangentSpace (𝓡 3) x) |
| 66 | (hu : ‖u‖ = 1) (hv : ‖v‖ = 1) (huv : inner ℝ u v = 0) : T u v u v = 0 := by |
| 67 | have huu : g.inner x u u = 1 := by |
| 68 | change inner ℝ u u = 1 |
| 69 | rw [real_inner_self_eq_norm_sq, hu, one_pow] |
| 70 | have hvv : g.inner x v v = 1 := by |
| 71 | change inner ℝ v v = 1 |
| 72 | rw [real_inner_self_eq_norm_sq, hv, one_pow] |
| 73 | have huv' : g.inner x u v = 0 := huv |
| 74 | have h := hsec x u v ⟨huu, hvv, huv'⟩ |
| 75 | simp only [LeviCivitaData.sectionalCurvature, huu, hvv, huv', |
| 76 | one_mul, zero_pow (by norm_num : (2 : ℕ) ≠ 0), sub_zero, div_one] at h |
| 77 | rw [hT, h, huu, hvv, huv', mul_zero] |
| 78 | norm_num |
| 79 | exact sub_eq_zero.mp (curvatureForm_zero_of_orthonormal T hfirst hpair hcyclic hunit a b c d) |
| 80 | |
| 81 | /-- Tuple evaluation of the curvature-one identity. Source: |
| 82 | Definition 9.76, used in Lemma 16.8, pp. 372-373. -/ |
| 83 | theorem riemannEvaluation_eq_metricGram_of_sectional_one (D : LeviCivitaData g) |
| 84 | (hsec : ∀ x v w, LeviCivitaData.IsOrthonormalPair g x v w → |
| 85 | D.sectionalCurvature x v w = 1) : |
| 86 | D.riemannEvaluation = M04.metricGramEvaluation g := by |
| 87 | funext x v |
| 88 | rw [LeviCivitaData.riemannEvaluation, |
| 89 | curvatureTensor_eq_metricGram_of_sectional_one D hsec] |
| 90 | dsimp [M04.metricGramEvaluation] |
| 91 | ring |
| 92 | |
| 93 | /-- The actual first covariant curvature derivative vanishes on a |
| 94 | curvature-one model, since its Gram tensor is parallel. Source: |
| 95 | Definition 9.76 and metric compatibility, pp. 3-7. -/ |
| 96 | theorem covariant_curvature_zero_of_sectional_one (D : LeviCivitaData g) |
| 97 | (hsec : ∀ x v w, LeviCivitaData.IsOrthonormalPair g x v w → |
| 98 | D.sectionalCurvature x v w = 1) : |
| 99 | D.covariantTensorDerivative D.riemannEvaluation = 0 := by |
| 100 | rw [riemannEvaluation_eq_metricGram_of_sectional_one D hsec] |
| 101 | exact M04.covariantTensorDerivative_metricGramEvaluation D |
| 102 | |
| 103 | /-- Every positive covariant curvature derivative vanishes, without |
| 104 | an injectivity-radius hypothesis. Source: Definition 9.76 in the |
| 105 | round alternative of Lemma 11.2, pp. 268-269. -/ |
| 106 | theorem iterated_curvature_zero_of_sectional_one (D : LeviCivitaData g) |
| 107 | (hsec : ∀ x v w, LeviCivitaData.IsOrthonormalPair g x v w → |
| 108 | D.sectionalCurvature x v w = 1) (m : ℕ) : |
| 109 | D.iteratedCovariantTensorDerivative D.riemannEvaluation (m + 1) = 0 := by |
| 110 | induction m with |
| 111 | | zero => exact covariant_curvature_zero_of_sectional_one D hsec |
| 112 | | succ m ih => |
| 113 | rw [LeviCivitaData.iteratedCovariantTensorDerivative, ih] |
| 114 | funext x v |
| 115 | simp [LeviCivitaData.covariantTensorDerivative, mvfderiv_const] |
| 116 | |
| 117 | /-- Every positive curvature-derivative norm is zero on the |
| 118 | curvature-one round model. Source: Definition 9.76. -/ |
| 119 | theorem curvatureDerivativeNorm_succ_zero_of_sectional_one (D : LeviCivitaData g) |
| 120 | (hsec : ∀ x v w, LeviCivitaData.IsOrthonormalPair g x v w → |
| 121 | D.sectionalCurvature x v w = 1) (m : ℕ) (x : M) : |
| 122 | D.curvatureDerivativeNorm (m + 1) x = 0 := by |
| 123 | simp [LeviCivitaData.curvatureDerivativeNorm, |
| 124 | iterated_curvature_zero_of_sectional_one D hsec, RiemannianMetric.tensorNorm] |
| 125 | |
| 126 | end PoincareMT.M44 |