Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicTopology.DeRham.Comparison.ManifoldCubeIntegration |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.CubePullbackLocality |
| 3 | import OAI.AlgebraicTopology.DeRham.Comparison.CubicalSupport |
| 4 | import OAI.AlgebraicTopology.DeRham.Comparison.SmoothSimplexIntegration |
| 5 | import OAI.AlgebraicTopology.DeRham.Comparison.DuffyFaces |
| 6 | import OAI.AlgebraicTopology.DeRham.Comparison.DuffyDegenerateFaces |
| 7 | import OAI.AlgebraicTopology.Cohomology.Singular.ManifoldSmooth |
| 8 | import Mathlib.Algebra.BigOperators.Fin |
| 9 | |
| 10 | /-! # Smooth Simplex Stokes -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.DeRham.Comparison.SmoothSimplexStokes |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Stokes signs for the actual Duffy simplex parametrization |
| 18 | |
| 19 | The nondegenerate lower cube faces are the first simplex faces. The final |
| 20 | upper cube face is the last simplex face; all other upper faces collapse. |
| 21 | Consequently the cubical boundary contributes minus the standard alternating |
| 22 | simplex boundary. Multiplication by (-1)^n in degree n gives the standard |
| 23 | simplicial Stokes orientation. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory Opposite Set OAI.AlgebraicTopology.DeRham.Comparison.StokesF.SingularCubeStokes |
| 27 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex BigOperators Simplicial _root_.Manifold ContDiff |
| 28 | |
| 29 | section BoundarySigns |
| 30 | |
| 31 | variable {A : Type*} [AddCommGroup A] [Module ℝ A] |
| 32 | |
| 33 | /-- The surviving Duffy faces give the negative of the standard simplex boundary. -/ |
| 34 | theorem duffy_boundary_sum (n : ℕ) (face : Fin (n + 2) → A) |
| 35 | (upper : Fin (n + 1) → A) |
| 36 | (hupper : ∀ i, i ≠ Fin.last n → upper i = 0) |
| 37 | (hlast : upper (Fin.last n) = face (Fin.last (n + 1))) : |
| 38 | (∑ i : Fin (n + 1), (-1 : ℝ) ^ i.val • (upper i - face i.castSucc)) = |
| 39 | -(∑ j : Fin (n + 2), (-1 : ℝ) ^ j.val • face j) := by |
| 40 | have hu : (∑ i : Fin (n + 1), (-1 : ℝ) ^ i.val • upper i) = |
| 41 | (-1 : ℝ) ^ n • face (Fin.last (n + 1)) := by |
| 42 | rw [Finset.sum_eq_single (Fin.last n)] |
| 43 | · rw [hlast] |
| 44 | rfl |
| 45 | · intro i _ hi |
| 46 | rw [hupper i hi, smul_zero] |
| 47 | · intro h |
| 48 | exact False.elim (h (Finset.mem_univ _)) |
| 49 | simp only [smul_sub, Finset.sum_sub_distrib] |
| 50 | rw [hu] |
| 51 | conv_rhs => rw [Fin.sum_univ_castSucc] |
| 52 | simp only [Fin.val_castSucc, Fin.val_last, pow_succ, mul_smul, neg_one_smul, smul_neg] |
| 53 | abel |
| 54 | |
| 55 | /-- The degreewise normalization (-1)^n converts the Duffy boundary to the usual signs. -/ |
| 56 | theorem duffy_normalized_boundary_sum (n : ℕ) (face : Fin (n + 2) → A) |
| 57 | (upper : Fin (n + 1) → A) |
| 58 | (hupper : ∀ i, i ≠ Fin.last n → upper i = 0) |
| 59 | (hlast : upper (Fin.last n) = face (Fin.last (n + 1))) : |
| 60 | (-1 : ℝ) ^ (n + 1) • |
| 61 | (∑ i : Fin (n + 1), (-1 : ℝ) ^ i.val • (upper i - face i.castSucc)) = |
| 62 | ∑ j : Fin (n + 2), (-1 : ℝ) ^ j.val • ((-1 : ℝ) ^ n • face j) := by |
| 63 | rw [duffy_boundary_sum n face upper hupper hlast, pow_succ, mul_smul, |
| 64 | neg_one_smul, neg_neg, Finset.smul_sum] |
| 65 | apply Finset.sum_congr rfl |
| 66 | intro j _ |
| 67 | exact smul_comm _ _ _ |
| 68 | |
| 69 | /-- Real orientation signs agree exactly with the integral signs of simplicial chains. -/ |
| 70 | theorem real_neg_one_pow_smul_eq_int (n : ℕ) (value : A) : |
| 71 | (-1 : ℝ) ^ n • value = (-1 : ℤ) ^ n • value := by |
| 72 | induction n with |
| 73 | | zero => simp only [pow_zero, one_smul] |
| 74 | | succ n ih => |
| 75 | simp only [pow_succ, mul_smul, neg_one_smul, smul_neg] |
| 76 | exact congrArg Neg.neg ih |
| 77 | |
| 78 | end BoundarySigns |
| 79 | |
| 80 | /-- Resetting one coordinate to zero preserves the closed unit cube. -/ |
| 81 | theorem update_zero_mem_unitCube {n : ℕ} {x : Fin n → ℝ} |
| 82 | (hx : x ∈ StokesF.SingularCubeStokes.unitCube n) (i : Fin n) : Function.update x i 0 ∈ StokesF.SingularCubeStokes.unitCube n := by |
| 83 | constructor |
| 84 | · intro j |
| 85 | by_cases hji : j = i |
| 86 | · subst j |
| 87 | simp |
| 88 | · simpa only [Function.update_of_ne hji] using hx.1 j |
| 89 | · intro j |
| 90 | by_cases hji : j = i |
| 91 | · subst j |
| 92 | simp |
| 93 | · simpa only [Function.update_of_ne hji] using hx.2 j |
| 94 | |
| 95 | section ManifoldCubes |
| 96 | |
| 97 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 98 | variable {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 99 | variable [IsManifold 𝓘(ℝ, E) ∞ M] |
| 100 | |
| 101 | /-- Coordinate independence only on the closed cube already forces a top integral to vanish. -/ |
| 102 | theorem manifoldCubeIntegration_zero_of_coordinate_reset {n : ℕ} |
| 103 | (cube : ManifoldCubeIntegration.SmoothManifoldCube E M (n + 1)) (i : Fin (n + 1)) |
| 104 | (hreset : ∀ x ∈ StokesF.SingularCubeStokes.unitCube (n + 1), cube (Function.update x i 0) = cube x) |
| 105 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M (n + 1)) : ManifoldCubeIntegration.manifoldCubeIntegration cube form = 0 := by |
| 106 | let residual := ManifoldCubeIntegration.manifoldCubeFace cube i 0 |
| 107 | let restored := ManifoldCubeIntegration.manifoldCubeDegeneracy residual i |
| 108 | have hlocal : EqOn restored.toFun cube.toFun (StokesF.SingularCubeStokes.unitCube (n + 1)) := by |
| 109 | intro x hx |
| 110 | change cube (Fin.insertNth (α := fun _ => ℝ) i 0 (Fin.removeNth i x)) = cube x |
| 111 | rw [Fin.insertNth_removeNth] |
| 112 | exact hreset x hx |
| 113 | have hintegrals := CubePullbackLocality.manifoldCubeIntegration_congr restored cube hlocal form |
| 114 | have hzero : ManifoldCubeIntegration.manifoldCubeIntegration restored form = 0 := |
| 115 | ManifoldCubeIntegration.manifoldCubeIntegration_degeneracy residual i form |
| 116 | exact hintegrals.symm.trans hzero |
| 117 | |
| 118 | end ManifoldCubes |
| 119 | |
| 120 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 121 | variable {M : Type} [TopologicalSpace M] [ChartedSpace E M] |
| 122 | |
| 123 | /-- The native smooth singular face is the ordinary barycentric simplex face. -/ |
| 124 | theorem manifoldSmoothSimplex_face_apply {n : ℕ} |
| 125 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 126 | (j : Fin (n + 2)) (x : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 127 | (TopCat.of M).toSSetObjEquiv (op ⦋n⦌) |
| 128 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ j) sigma).val x = |
| 129 | (TopCat.of M).toSSetObjEquiv (op ⦋n + 1⦌) sigma.val (Convexity.StdSimplex.map j.succAbove x) := rfl |
| 130 | |
| 131 | variable [IsManifold 𝓘(ℝ, E) ∞ M] |
| 132 | |
| 133 | /-- Each lower Duffy cube face integrates exactly as the corresponding smooth simplex face. -/ |
| 134 | theorem manifoldSimplexCube_integral_face_zero {n : ℕ} |
| 135 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 136 | (i : Fin (n + 1)) (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) : |
| 137 | ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldCubeIntegration.manifoldCubeFace (ManifoldSimplexCube.manifoldSimplexCube sigma) i 0) form = |
| 138 | ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldSimplexCube.manifoldSimplexCube |
| 139 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ i.castSucc) sigma)) form := by |
| 140 | refine CubePullbackLocality.manifoldCubeIntegration_congr _ _ ?_ form |
| 141 | intro x hx |
| 142 | change ManifoldSimplexCube.manifoldSimplexCube sigma (StokesF.SingularCubeStokes.faceInclusion i 0 x) = |
| 143 | ManifoldSimplexCube.manifoldSimplexCube |
| 144 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ i.castSucc) sigma) x |
| 145 | rw [ManifoldSimplexCube.manifoldSimplexCube_apply sigma |
| 146 | ⟨StokesF.SingularCubeStokes.faceInclusion i 0 x, CubicalSupport.faceInclusion_mem_unitCube i ⟨le_rfl, zero_le_one⟩ hx⟩, |
| 147 | ManifoldSimplexCube.manifoldSimplexCube_apply _ ⟨x, hx⟩, |
| 148 | DuffyFaces.Duffy.toSimplex_face_zero i ⟨x, hx⟩, manifoldSmoothSimplex_face_apply] |
| 149 | |
| 150 | /-- The final upper Duffy face is the final standard simplex face, including dimension one. -/ |
| 151 | theorem manifoldSimplexCube_integral_face_last_one {n : ℕ} |
| 152 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 153 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) : |
| 154 | ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldCubeIntegration.manifoldCubeFace (ManifoldSimplexCube.manifoldSimplexCube sigma) (Fin.last n) 1) form = |
| 155 | ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldSimplexCube.manifoldSimplexCube |
| 156 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ |
| 157 | (Fin.last (n + 1))) sigma)) form := by |
| 158 | refine CubePullbackLocality.manifoldCubeIntegration_congr _ _ ?_ form |
| 159 | intro x hx |
| 160 | change ManifoldSimplexCube.manifoldSimplexCube sigma (StokesF.SingularCubeStokes.faceInclusion (Fin.last n) 1 x) = |
| 161 | ManifoldSimplexCube.manifoldSimplexCube |
| 162 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ (Fin.last (n + 1))) sigma) x |
| 163 | rw [ManifoldSimplexCube.manifoldSimplexCube_apply sigma |
| 164 | ⟨StokesF.SingularCubeStokes.faceInclusion (Fin.last n) 1 x, |
| 165 | CubicalSupport.faceInclusion_mem_unitCube (Fin.last n) ⟨zero_le_one, le_rfl⟩ hx⟩, |
| 166 | ManifoldSimplexCube.manifoldSimplexCube_apply _ ⟨x, hx⟩, |
| 167 | DuffyFaces.Duffy.toSimplex_face_last_one ⟨x, hx⟩, manifoldSmoothSimplex_face_apply] |
| 168 | |
| 169 | /-- Every other upper Duffy face has a missing parameter direction and contributes zero. -/ |
| 170 | theorem manifoldSimplexCube_integral_face_one_zero {n : ℕ} |
| 171 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 172 | (i : Fin (n + 1)) (hi : i ≠ Fin.last n) (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) : |
| 173 | ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldCubeIntegration.manifoldCubeFace (ManifoldSimplexCube.manifoldSimplexCube sigma) i 1) form = 0 := by |
| 174 | obtain ⟨j, hj⟩ := Fin.eq_castSucc_of_ne_last hi |
| 175 | subst i |
| 176 | cases n with |
| 177 | | zero => exact Fin.elim0 j |
| 178 | | succ n => |
| 179 | apply manifoldCubeIntegration_zero_of_coordinate_reset |
| 180 | (ManifoldCubeIntegration.manifoldCubeFace (ManifoldSimplexCube.manifoldSimplexCube sigma) j.castSucc 1) (Fin.last n) _ form |
| 181 | intro x hx |
| 182 | let a : StokesF.SingularCubeStokes.unitCube (n + 2) := |
| 183 | ⟨StokesF.SingularCubeStokes.faceInclusion j.castSucc 1 (Function.update x (Fin.last n) 0), |
| 184 | CubicalSupport.faceInclusion_mem_unitCube j.castSucc ⟨zero_le_one, le_rfl⟩ |
| 185 | (update_zero_mem_unitCube hx (Fin.last n))⟩ |
| 186 | let b : StokesF.SingularCubeStokes.unitCube (n + 2) := |
| 187 | ⟨StokesF.SingularCubeStokes.faceInclusion j.castSucc 1 x, |
| 188 | CubicalSupport.faceInclusion_mem_unitCube j.castSucc ⟨zero_le_one, le_rfl⟩ hx⟩ |
| 189 | have hsimplex : DuffyCoordinates.Duffy.toSimplex (n + 2) a = DuffyCoordinates.Duffy.toSimplex (n + 2) b := by |
| 190 | apply (Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ (Fin (n + 3))).injective |
| 191 | change (DuffyCoordinates.Duffy.toSimplex (n + 2) a : Fin (n + 3) → ℝ) = |
| 192 | (DuffyCoordinates.Duffy.toSimplex (n + 2) b : Fin (n + 3) → ℝ) |
| 193 | rw [DuffyCoordinates.Duffy.toSimplex_val, DuffyCoordinates.Duffy.toSimplex_val] |
| 194 | exact DuffyDegenerateFaces.Duffy.coordinates_insertNth_one_update_last n j x 0 |
| 195 | change ManifoldSimplexCube.manifoldSimplexCube sigma a.val = ManifoldSimplexCube.manifoldSimplexCube sigma b.val |
| 196 | calc |
| 197 | ManifoldSimplexCube.manifoldSimplexCube sigma a.val = |
| 198 | (TopCat.of M).toSSetObjEquiv (op ⦋n + 2⦌) sigma.val |
| 199 | (DuffyCoordinates.Duffy.toSimplex (n + 2) a) := ManifoldSimplexCube.manifoldSimplexCube_apply sigma a |
| 200 | _ = (TopCat.of M).toSSetObjEquiv (op ⦋n + 2⦌) sigma.val |
| 201 | (DuffyCoordinates.Duffy.toSimplex (n + 2) b) := |
| 202 | congrArg ((TopCat.of M).toSSetObjEquiv (op ⦋n + 2⦌) sigma.val) hsimplex |
| 203 | _ = ManifoldSimplexCube.manifoldSimplexCube sigma b.val := (ManifoldSimplexCube.manifoldSimplexCube_apply sigma b).symm |
| 204 | |
| 205 | /-- Stokes for the actual Duffy integral, with real orientation signs. -/ |
| 206 | theorem smoothSimplexStokes_real {n : ℕ} |
| 207 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 208 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) : |
| 209 | SmoothSimplexIntegration.smoothSimplexIntegration sigma (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d form) = |
| 210 | ∑ j : Fin (n + 2), (-1 : ℝ) ^ j.val • |
| 211 | SmoothSimplexIntegration.smoothSimplexIntegration |
| 212 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ j) sigma) form := by |
| 213 | simp only [SmoothSimplexIntegration.smoothSimplexIntegration_apply] |
| 214 | rw [ManifoldCubeIntegration.manifoldCubeStokes] |
| 215 | simp only [manifoldSimplexCube_integral_face_zero] |
| 216 | exact duffy_normalized_boundary_sum n |
| 217 | (fun j => ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldSimplexCube.manifoldSimplexCube |
| 218 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ j) sigma)) form) |
| 219 | (fun i => ManifoldCubeIntegration.manifoldCubeIntegration (ManifoldCubeIntegration.manifoldCubeFace (ManifoldSimplexCube.manifoldSimplexCube sigma) i 1) form) |
| 220 | (fun i hi => manifoldSimplexCube_integral_face_one_zero sigma i hi form) |
| 221 | (manifoldSimplexCube_integral_face_last_one sigma form) |
| 222 | |
| 223 | /-- The actual simplex integral satisfies precisely the alternating coboundary of smooth |
| 224 | singular cochains, with no extra orientation or normalization premise. -/ |
| 225 | theorem smoothSimplexStokes {n : ℕ} |
| 226 | (sigma : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet _⦋n + 1⦌) |
| 227 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) : |
| 228 | SmoothSimplexIntegration.smoothSimplexIntegration sigma (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d form) = |
| 229 | ∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • |
| 230 | SmoothSimplexIntegration.smoothSimplexIntegration |
| 231 | (((Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex E M).toSSet.δ j) sigma) form := by |
| 232 | rw [smoothSimplexStokes_real] |
| 233 | apply Finset.sum_congr rfl |
| 234 | intro j _ |
| 235 | exact real_neg_one_pow_smul_eq_int j.val _ |
| 236 | |
| 237 | end |
| 238 | |
| 239 | end OAI.AlgebraicTopology.DeRham.Comparison.SmoothSimplexStokes |