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.AlgebraicGeometry.ComplexMultiplication.ExteriorBaseChange |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.ExteriorBasisPermutation |
| 3 | import OAI.AlgebraicGeometry.ComplexMultiplication.GaloisEmbeddingBasis |
| 4 | |
| 5 | /-! # Exterior Galois Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.ExteriorGaloisBasis.CM.CMDecomposition |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Exterior monomial bases and scalar Galois orbits |
| 13 | |
| 14 | The exterior basis is built on the scalar extension of the actual rational |
| 15 | exterior power. Its coefficients embed into the complex exterior power, |
| 16 | and scalar Galois conjugation permutes its basis lines with nonzero |
| 17 | multipliers. Rational vectors therefore have Galois-stable monomial support. |
| 18 | -/ |
| 19 | |
| 20 | open scoped TensorProduct Classical |
| 21 | |
| 22 | private def baseChangedExteriorBasis {K V ι : Type*} [Field K] [Algebra ℚ K] |
| 23 | [AddCommGroup V] [Module ℚ V] [LinearOrder ι] |
| 24 | (b : Module.Basis ι K (K ⊗[ℚ] V)) (n : ℕ) : |
| 25 | Module.Basis (Set.powersetCard ι n) K (K ⊗[ℚ] (⋀[ℚ]^n V)) := |
| 26 | (b.exteriorPower n).map (ExteriorBaseChange.CM.exteriorBaseChangeEquiv K V n).symm |
| 27 | |
| 28 | private theorem coefficientInclusion_exteriorProduct (K : IntermediateField ℚ ℂ) |
| 29 | (V : Type*) [AddCommGroup V] [Module ℚ V] (n : ℕ) (v : Fin n → K ⊗[ℚ] V) : |
| 30 | EmbeddingCoefficientField.CM.coefficientInclusion K (⋀[ℚ]^n V) |
| 31 | ((ExteriorBaseChange.CM.exteriorBaseChangeEquiv K V n).symm (exteriorPower.ιMulti K n v)) = |
| 32 | (ExteriorBaseChange.CM.exteriorBaseChangeEquiv ℂ V n).symm |
| 33 | (exteriorPower.ιMulti ℂ n (fun i => EmbeddingCoefficientField.CM.coefficientInclusion K V (v i))) := |
| 34 | ExteriorBaseChange.CM.coefficientMap_exteriorProduct K V n K.val v |
| 35 | |
| 36 | private theorem baseChangedExteriorBasis_permuted {K V ι : Type*} |
| 37 | [Field K] [Algebra ℚ K] [AddCommGroup V] [Module ℚ V] [LinearOrder ι] |
| 38 | (b : Module.Basis ι K (K ⊗[ℚ] V)) (n : ℕ) (e : Equiv.Perm ι) |
| 39 | (s : Set.powersetCard ι n) : |
| 40 | (ExteriorBaseChange.CM.exteriorBaseChangeEquiv K V n).symm (ExteriorBasisPermutation.CM.permutedExteriorVector n b e s) = |
| 41 | (b.exteriorPower n).repr (ExteriorBasisPermutation.CM.permutedExteriorVector n b e s) |
| 42 | (ExteriorBasisPermutation.CM.exteriorIndexPermutation n e s) • |
| 43 | baseChangedExteriorBasis b n (ExteriorBasisPermutation.CM.exteriorIndexPermutation n e s) := by |
| 44 | have h := congrArg (ExteriorBaseChange.CM.exteriorBaseChangeEquiv K V n).symm |
| 45 | (ExteriorBasisPermutation.CM.permutedExteriorVector_eq_smul n b e s) |
| 46 | simpa only [map_smul, baseChangedExteriorBasis, Module.Basis.map_apply] using h |
| 47 | |
| 48 | private theorem scalarConjugate_baseChangedExteriorBasis {K V ι : Type*} |
| 49 | [Field K] [Algebra ℚ K] [AddCommGroup V] [Module ℚ V] [LinearOrder ι] |
| 50 | (b : Module.Basis ι K (K ⊗[ℚ] V)) (n : ℕ) (g : Gal(K/ℚ)) (e : Equiv.Perm ι) |
| 51 | (hb : ∀ i, ScalarDescent.CM.scalarConjugate ℚ K V g (b i) = b (e i)) (s : Set.powersetCard ι n) : |
| 52 | ScalarDescent.CM.scalarConjugate ℚ K (⋀[ℚ]^n V) g (baseChangedExteriorBasis b n s) = |
| 53 | (b.exteriorPower n).repr (ExteriorBasisPermutation.CM.permutedExteriorVector n b e s) |
| 54 | (ExteriorBasisPermutation.CM.exteriorIndexPermutation n e s) • |
| 55 | baseChangedExteriorBasis b n (ExteriorBasisPermutation.CM.exteriorIndexPermutation n e s) := by |
| 56 | have happly : baseChangedExteriorBasis b n s = |
| 57 | (ExteriorBaseChange.CM.exteriorBaseChangeEquiv K V n).symm (exteriorPower.ιMulti K n |
| 58 | (fun i => b (Set.powersetCard.ofFinEmbEquiv.symm s i))) := by |
| 59 | simp only [baseChangedExteriorBasis, Module.Basis.map_apply, exteriorPower.basis_apply, |
| 60 | exteriorPower.ιMulti_family, Function.comp_def] |
| 61 | rw [happly, ExteriorBaseChange.CM.scalarConjugate_exteriorProduct] |
| 62 | simp_rw [hb] |
| 63 | exact baseChangedExteriorBasis_permuted b n e s |
| 64 | |
| 65 | variable {U : Type*} [AddCommGroup U] [Module ℚ U] |
| 66 | variable {H : WeightOne.CM.WeightOneHodgeStructure U} (D : Decomposition.CM.CMDecomposition H) (n : ℕ) |
| 67 | |
| 68 | local instance : LinearOrder D.EmbeddingIndex := linearOrderOfSTO WellOrderingRel |
| 69 | |
| 70 | /-- An exterior basis is indexed by subsets of distinct degree-one embedding indices. -/ |
| 71 | abbrev _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.ExteriorIndex := Set.powersetCard D.EmbeddingIndex n |
| 72 | |
| 73 | instance _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorIndexFintype : Fintype (D.ExteriorIndex n) := |
| 74 | inferInstanceAs (Fintype (Set.powersetCard D.EmbeddingIndex n)) |
| 75 | |
| 76 | /-- Exterior embedding basis over the finite common field, on the rational exterior power. -/ |
| 77 | def _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorEmbeddingBasis : Module.Basis (D.ExteriorIndex n) D.commonCoefficientField |
| 78 | (D.commonCoefficientField ⊗[ℚ] (⋀[ℚ]^n U)) := |
| 79 | baseChangedExteriorBasis D.coefficientEmbeddingBasis n |
| 80 | |
| 81 | /-- The corresponding exterior basis on the complexification of the rational exterior power. -/ |
| 82 | def _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.complexExteriorEmbeddingBasis : Module.Basis (D.ExteriorIndex n) ℂ |
| 83 | (WeightOne.CM.Complexification (⋀[ℚ]^n U)) := |
| 84 | (D.embeddingBasis.exteriorPower n).map (ExteriorBaseChange.CM.exteriorBaseChangeEquiv ℂ U n).symm |
| 85 | |
| 86 | /-- A wedge monomial in any order, including zero monomials with repeated indices. -/ |
| 87 | def _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorMonomial (j : Fin n → D.EmbeddingIndex) : |
| 88 | D.commonCoefficientField ⊗[ℚ] (⋀[ℚ]^n U) := |
| 89 | (ExteriorBaseChange.CM.exteriorBaseChangeEquiv D.commonCoefficientField U n).symm |
| 90 | (exteriorPower.ιMulti D.commonCoefficientField n (fun i => D.coefficientEmbeddingBasis (j i))) |
| 91 | |
| 92 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorEmbeddingBasis_apply (s : D.ExteriorIndex n) : |
| 93 | D.exteriorEmbeddingBasis n s = D.exteriorMonomial n (Set.powersetCard.ofFinEmbEquiv.symm s) := by |
| 94 | unfold Decomposition.CM.CMDecomposition.exteriorMonomial Decomposition.CM.CMDecomposition.exteriorEmbeddingBasis baseChangedExteriorBasis |
| 95 | simp only [Module.Basis.map_apply, exteriorPower.basis_apply, |
| 96 | exteriorPower.ιMulti_family, Function.comp_def] |
| 97 | |
| 98 | /-- The coefficient-field basis maps to the corresponding complex exterior basis. -/ |
| 99 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.coefficientInclusion_exteriorEmbeddingBasis (s : D.ExteriorIndex n) : |
| 100 | EmbeddingCoefficientField.CM.coefficientInclusion D.commonCoefficientField (⋀[ℚ]^n U) (D.exteriorEmbeddingBasis n s) = |
| 101 | D.complexExteriorEmbeddingBasis n s := by |
| 102 | rw [D.exteriorEmbeddingBasis_apply] |
| 103 | simp only [Decomposition.CM.CMDecomposition.exteriorMonomial] |
| 104 | rw [coefficientInclusion_exteriorProduct] |
| 105 | simp_rw [D.coefficientInclusion_embeddingBasis] |
| 106 | unfold Decomposition.CM.CMDecomposition.complexExteriorEmbeddingBasis |
| 107 | simp only [Module.Basis.map_apply, exteriorPower.basis_apply, |
| 108 | exteriorPower.ιMulti_family, Function.comp_def] |
| 109 | |
| 110 | /-- Scalar Galois conjugation acts factor by factor on exterior monomials. -/ |
| 111 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.scalarConjugate_exteriorMonomial (g : Gal(D.commonCoefficientField/ℚ)) |
| 112 | (j : Fin n → D.EmbeddingIndex) : |
| 113 | ScalarDescent.CM.scalarConjugate ℚ D.commonCoefficientField (⋀[ℚ]^n U) g (D.exteriorMonomial n j) = |
| 114 | D.exteriorMonomial n (fun i => D.galoisIndex g (j i)) := by |
| 115 | simp only [Decomposition.CM.CMDecomposition.exteriorMonomial] |
| 116 | rw [ExteriorBaseChange.CM.scalarConjugate_exteriorProduct] |
| 117 | simp only [D.scalarConjugate_coefficientEmbeddingBasis] |
| 118 | |
| 119 | /-- The induced permutation of exterior-basis index subsets. -/ |
| 120 | def _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.galoisExteriorIndex (g : Gal(D.commonCoefficientField/ℚ)) : Equiv.Perm (D.ExteriorIndex n) := |
| 121 | ExteriorBasisPermutation.CM.exteriorIndexPermutation n (D.galoisIndexEquiv g) |
| 122 | |
| 123 | /-- The multiplier contributed by reordering the conjugated wedge factors. -/ |
| 124 | def _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorGaloisFactor (g : Gal(D.commonCoefficientField/ℚ)) (s : D.ExteriorIndex n) : |
| 125 | D.commonCoefficientField := |
| 126 | (D.coefficientEmbeddingBasis.exteriorPower n).repr |
| 127 | (ExteriorBasisPermutation.CM.permutedExteriorVector n D.coefficientEmbeddingBasis (D.galoisIndexEquiv g) s) |
| 128 | (D.galoisExteriorIndex n g s) |
| 129 | |
| 130 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorGaloisFactor_ne_zero (g : Gal(D.commonCoefficientField/ℚ)) |
| 131 | (s : D.ExteriorIndex n) : D.exteriorGaloisFactor n g s ≠ 0 := |
| 132 | ExteriorBasisPermutation.CM.permutedExteriorVector_coordinate_ne_zero n D.coefficientEmbeddingBasis (D.galoisIndexEquiv g) s |
| 133 | |
| 134 | private theorem galoisIndexEquiv_apply_normalized (g : Gal(D.commonCoefficientField/ℚ)) |
| 135 | (i : D.EmbeddingIndex) : D.galoisIndexEquiv g i = D.galoisIndex g i := rfl |
| 136 | |
| 137 | private theorem coefficientBasis_action_normalized (g : Gal(D.commonCoefficientField/ℚ)) |
| 138 | (i : D.EmbeddingIndex) : |
| 139 | ScalarDescent.CM.scalarConjugate ℚ D.commonCoefficientField U g (D.coefficientEmbeddingBasis i) = |
| 140 | D.coefficientEmbeddingBasis (D.galoisIndexEquiv g i) := by |
| 141 | rw [galoisIndexEquiv_apply_normalized] |
| 142 | exact D.scalarConjugate_coefficientEmbeddingBasis g i |
| 143 | |
| 144 | /-- Each exterior-basis line is sent to its Galois-conjugate line with a nonzero multiplier. -/ |
| 145 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.scalarConjugate_exteriorEmbeddingBasis (g : Gal(D.commonCoefficientField/ℚ)) |
| 146 | (s : D.ExteriorIndex n) : |
| 147 | ScalarDescent.CM.scalarConjugate ℚ D.commonCoefficientField (⋀[ℚ]^n U) g (D.exteriorEmbeddingBasis n s) = |
| 148 | D.exteriorGaloisFactor n g s • D.exteriorEmbeddingBasis n (D.galoisExteriorIndex n g s) := by |
| 149 | rw [D.exteriorEmbeddingBasis_apply, D.scalarConjugate_exteriorMonomial] |
| 150 | unfold Decomposition.CM.CMDecomposition.exteriorMonomial Decomposition.CM.CMDecomposition.exteriorGaloisFactor Decomposition.CM.CMDecomposition.galoisExteriorIndex Decomposition.CM.CMDecomposition.exteriorEmbeddingBasis |
| 151 | have h := baseChangedExteriorBasis_permuted D.coefficientEmbeddingBasis n |
| 152 | (D.galoisIndexEquiv g) s |
| 153 | unfold ExteriorBasisPermutation.CM.permutedExteriorVector at h ⊢ |
| 154 | simp only [galoisIndexEquiv_apply_normalized] at h ⊢ |
| 155 | -- Reuse the proved equality without repeating the elaborator's expensive conversion. |
| 156 | -- Lean's kernel checks the resulting proof term against the stated equality. |
| 157 | run_tac Lean.Elab.Tactic.withMainContext do |
| 158 | let goal ← Lean.Elab.Tactic.getMainGoal |
| 159 | for d in (← Lean.getLCtx) do |
| 160 | if d.userName == `h then |
| 161 | goal.assign (.fvar d.fvarId) |
| 162 | Lean.Elab.Tactic.replaceMainGoal [] |
| 163 | return |
| 164 | throwError "local equality proof not found" |
| 165 | |
| 166 | /-- Exterior coordinates transform by the field automorphism and the reordering multiplier. -/ |
| 167 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.exteriorEmbeddingBasis_repr_scalarConjugate (g : Gal(D.commonCoefficientField/ℚ)) |
| 168 | (x : D.commonCoefficientField ⊗[ℚ] (⋀[ℚ]^n U)) (s : D.ExteriorIndex n) : |
| 169 | (D.exteriorEmbeddingBasis n).repr |
| 170 | (ScalarDescent.CM.scalarConjugate ℚ D.commonCoefficientField (⋀[ℚ]^n U) g x) (D.galoisExteriorIndex n g s) = |
| 171 | g ((D.exteriorEmbeddingBasis n).repr x s) * D.exteriorGaloisFactor n g s := by |
| 172 | have hs : ScalarDescent.CM.scalarConjugate ℚ D.commonCoefficientField (⋀[ℚ]^n U) g x = |
| 173 | ∑ t, (g ((D.exteriorEmbeddingBasis n).repr x t) * D.exteriorGaloisFactor n g t) • |
| 174 | D.exteriorEmbeddingBasis n (D.galoisExteriorIndex n g t) := by |
| 175 | conv_lhs => rw [← (D.exteriorEmbeddingBasis n).sum_repr x] |
| 176 | simp only [map_sum, ScalarDescent.CM.scalarConjugate_smul, D.scalarConjugate_exteriorEmbeddingBasis, |
| 177 | smul_smul] |
| 178 | rw [hs] |
| 179 | simp [Finsupp.single_apply, (D.galoisExteriorIndex n g).injective.eq_iff] |
| 180 | |
| 181 | /-- Rational exterior classes have nonzero coefficients on entire Galois orbits. -/ |
| 182 | theorem _root_.OAI.AlgebraicGeometry.ComplexMultiplication.Decomposition.CM.CMDecomposition.rational_exterior_coefficient_ne_zero_iff (g : Gal(D.commonCoefficientField/ℚ)) |
| 183 | (u : ⋀[ℚ]^n U) (s : D.ExteriorIndex n) : |
| 184 | (D.exteriorEmbeddingBasis n).repr ((1 : D.commonCoefficientField) ⊗ₜ[ℚ] u) |
| 185 | (D.galoisExteriorIndex n g s) ≠ 0 ↔ |
| 186 | (D.exteriorEmbeddingBasis n).repr ((1 : D.commonCoefficientField) ⊗ₜ[ℚ] u) s ≠ 0 := by |
| 187 | have he := D.exteriorEmbeddingBasis_repr_scalarConjugate n g |
| 188 | ((1 : D.commonCoefficientField) ⊗ₜ[ℚ] u) s |
| 189 | simp only [ScalarDescent.CM.scalarConjugate_tmul, map_one] at he |
| 190 | rw [he] |
| 191 | exact (mul_ne_zero_iff).trans |
| 192 | ⟨fun hh => (map_ne_zero_iff g g.injective).mp hh.1, |
| 193 | fun hh => ⟨(map_ne_zero_iff g g.injective).mpr hh, D.exteriorGaloisFactor_ne_zero n g s⟩⟩ |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI.AlgebraicGeometry.ComplexMultiplication.ExteriorGaloisBasis.CM.CMDecomposition |