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.EmbeddingDecomposition |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.ScalarDescent |
| 3 | |
| 4 | /-! # Embedding Coefficient Field -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexMultiplication |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Embedding bases over a finite coefficient field |
| 12 | |
| 13 | If a subfield of `ℂ` contains every conjugate of the acting number field, |
| 14 | the normalized complex embedding basis is already defined over that |
| 15 | coefficient field. The comparison uses the actual inclusion of tensor |
| 16 | coefficients into `ℂ`. |
| 17 | -/ |
| 18 | |
| 19 | open scoped TensorProduct Classical |
| 20 | |
| 21 | variable (K : IntermediateField ℚ ℂ) |
| 22 | |
| 23 | /-- Include a tensor's scalar coefficients in `ℂ`, fixing its rational factor. -/ |
| 24 | def EmbeddingCoefficientField.CM.coefficientInclusion (U : Type*) [AddCommGroup U] [Module ℚ U] : |
| 25 | K ⊗[ℚ] U →ₗ[ℚ] WeightOne.CM.Complexification U := |
| 26 | TensorProduct.map K.val.toLinearMap LinearMap.id |
| 27 | |
| 28 | @[simp] |
| 29 | theorem EmbeddingCoefficientField.CM.coefficientInclusion_tmul {U : Type*} [AddCommGroup U] [Module ℚ U] |
| 30 | (a : K) (u : U) : EmbeddingCoefficientField.CM.coefficientInclusion K U (a ⊗ₜ[ℚ] u) = (a : ℂ) ⊗ₜ[ℚ] u := rfl |
| 31 | |
| 32 | theorem EmbeddingCoefficientField.CM.coefficientInclusion_smul {U : Type*} [AddCommGroup U] [Module ℚ U] |
| 33 | (a : K) (x : K ⊗[ℚ] U) : |
| 34 | EmbeddingCoefficientField.CM.coefficientInclusion K U (a • x) = (a : ℂ) • EmbeddingCoefficientField.CM.coefficientInclusion K U x := by |
| 35 | induction x using TensorProduct.inductionOn with |
| 36 | | tmul b u => simp [TensorProduct.smul_tmul', smul_eq_mul] |
| 37 | | add x y hx hy => simp [smul_add, hx, hy] |
| 38 | |
| 39 | /-- A rational linear map commutes with inclusion of coefficient fields. -/ |
| 40 | theorem EmbeddingCoefficientField.CM.coefficientInclusion_baseChange {U V : Type*} |
| 41 | [AddCommGroup U] [Module ℚ U] [AddCommGroup V] [Module ℚ V] |
| 42 | (f : U →ₗ[ℚ] V) (x : K ⊗[ℚ] U) : |
| 43 | EmbeddingCoefficientField.CM.coefficientInclusion K V (f.baseChange K x) = |
| 44 | f.baseChange ℂ (EmbeddingCoefficientField.CM.coefficientInclusion K U x) := by |
| 45 | induction x using TensorProduct.inductionOn with |
| 46 | | tmul a u => rfl |
| 47 | | add x y hx hy => simp [hx, hy] |
| 48 | |
| 49 | /-- Scalar conjugation commutes with the scalar extension of a rational map. -/ |
| 50 | theorem EmbeddingCoefficientField.CM.scalarConjugate_baseChange {U V : Type*} |
| 51 | [AddCommGroup U] [Module ℚ U] [AddCommGroup V] [Module ℚ V] |
| 52 | (g : Gal(K/ℚ)) (f : U →ₗ[ℚ] V) (x : K ⊗[ℚ] U) : |
| 53 | ScalarDescent.CM.scalarConjugate ℚ K V g (f.baseChange K x) = |
| 54 | f.baseChange K (ScalarDescent.CM.scalarConjugate ℚ K U g x) := by |
| 55 | induction x using TensorProduct.inductionOn with |
| 56 | | tmul a u => rfl |
| 57 | | add x y hx hy => simp [hx, hy] |
| 58 | |
| 59 | variable (E : Type*) [Field E] [Algebra ℚ E] |
| 60 | variable (hK : ∀ σ : E →ₐ[ℚ] ℂ, σ.fieldRange ≤ K) |
| 61 | |
| 62 | /-- A complex embedding with all its values regarded as coefficient-field elements. -/ |
| 63 | def EmbeddingCoefficientField.CM.coefficientEmbedding (σ : E →ₐ[ℚ] ℂ) : E →ₐ[ℚ] K := |
| 64 | σ.codRestrict K.toSubalgebra (fun x => hK σ ⟨x, rfl⟩) |
| 65 | |
| 66 | @[simp] |
| 67 | theorem EmbeddingCoefficientField.CM.coefficientEmbedding_coe (σ : E →ₐ[ℚ] ℂ) (x : E) : |
| 68 | (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ x : ℂ) = σ x := rfl |
| 69 | |
| 70 | theorem EmbeddingCoefficientField.CM.coefficientEmbedding_injective : Function.Injective (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK) := by |
| 71 | intro σ τ h |
| 72 | ext x |
| 73 | exact congrArg (fun f : E →ₐ[ℚ] K => (f x : ℂ)) h |
| 74 | |
| 75 | /-- Apply a coefficient-field automorphism to the values of a complex embedding. -/ |
| 76 | def EmbeddingCoefficientField.CM.galoisCoefficientEmbedding (g : Gal(K/ℚ)) (σ : E →ₐ[ℚ] ℂ) : E →ₐ[ℚ] ℂ := |
| 77 | K.val.comp (g.toAlgHom.comp (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ)) |
| 78 | |
| 79 | @[simp] |
| 80 | theorem EmbeddingCoefficientField.CM.coefficientEmbedding_galois (g : Gal(K/ℚ)) (σ : E →ₐ[ℚ] ℂ) (x : E) : |
| 81 | EmbeddingCoefficientField.CM.coefficientEmbedding K E hK (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g σ) x = |
| 82 | g (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ x) := by |
| 83 | apply Subtype.ext |
| 84 | rfl |
| 85 | |
| 86 | @[simp] |
| 87 | theorem EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_one (σ : E →ₐ[ℚ] ℂ) : |
| 88 | EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK 1 σ = σ := by |
| 89 | ext x |
| 90 | rfl |
| 91 | |
| 92 | theorem EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_mul (g h : Gal(K/ℚ)) (σ : E →ₐ[ℚ] ℂ) : |
| 93 | EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK (g * h) σ = |
| 94 | EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK h σ) := by |
| 95 | ext x |
| 96 | change (g (h (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ x)) : ℂ) = |
| 97 | (g (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK h σ) x) : ℂ) |
| 98 | rw [EmbeddingCoefficientField.CM.coefficientEmbedding_galois] |
| 99 | |
| 100 | /-- Changing scalar coefficients permutes the original embedding set. -/ |
| 101 | def EmbeddingCoefficientField.CM.galoisCoefficientEmbeddingEquiv (g : Gal(K/ℚ)) : (E →ₐ[ℚ] ℂ) ≃ (E →ₐ[ℚ] ℂ) where |
| 102 | toFun := EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g |
| 103 | invFun := EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g⁻¹ |
| 104 | left_inv σ := by rw [← EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_mul, inv_mul_cancel, EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_one] |
| 105 | right_inv σ := by rw [← EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_mul, mul_inv_cancel, EmbeddingCoefficientField.CM.galoisCoefficientEmbedding_one] |
| 106 | |
| 107 | variable [NumberField E] |
| 108 | |
| 109 | /-- All restricted embeddings form a basis of the coefficient-valued rational dual. -/ |
| 110 | def EmbeddingCoefficientField.CM.coefficientEmbeddingDualBasis : Module.Basis (E →ₐ[ℚ] ℂ) K (E →ₗ[ℚ] K) := |
| 111 | basisOfLinearIndependentOfCardEqFinrank' _ |
| 112 | ((linearIndependent_algHom_toLinearMap ℚ E K).comp _ |
| 113 | (EmbeddingCoefficientField.CM.coefficientEmbedding_injective K E hK)) |
| 114 | (by rw [AlgHom.card, Module.finrank_linearMap_self]) |
| 115 | |
| 116 | @[simp] |
| 117 | theorem EmbeddingCoefficientField.CM.coefficientEmbeddingDualBasis_apply (σ : E →ₐ[ℚ] ℂ) : |
| 118 | EmbeddingCoefficientField.CM.coefficientEmbeddingDualBasis K E hK σ = (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ).toLinearMap := by |
| 119 | simp [EmbeddingCoefficientField.CM.coefficientEmbeddingDualBasis] |
| 120 | |
| 121 | /-- The coefficient-field splitting is obtained by dualizing the embedding basis. -/ |
| 122 | def EmbeddingCoefficientField.CM.coefficientFieldEquiv : K ⊗[ℚ] E ≃ₗ[K] ((E →ₐ[ℚ] ℂ) → K) := |
| 123 | (Module.evalEquiv K (K ⊗[ℚ] E)).trans |
| 124 | ((EmbeddingCoefficientField.CM.coefficientEmbeddingDualBasis K E hK).map |
| 125 | (LinearMap.liftBaseChangeEquiv K)).dualBasis.equivFun |
| 126 | |
| 127 | theorem EmbeddingCoefficientField.CM.coefficientFieldEquiv_apply (x : K ⊗[ℚ] E) (σ : E →ₐ[ℚ] ℂ) : |
| 128 | EmbeddingCoefficientField.CM.coefficientFieldEquiv K E hK x σ = |
| 129 | (EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ).toLinearMap.liftBaseChange K x := by |
| 130 | simp [EmbeddingCoefficientField.CM.coefficientFieldEquiv, Module.Basis.dualBasis_equivFun] |
| 131 | |
| 132 | @[simp] |
| 133 | theorem EmbeddingCoefficientField.CM.coefficientFieldEquiv_tmul (z : K) (a : E) (σ : E →ₐ[ℚ] ℂ) : |
| 134 | EmbeddingCoefficientField.CM.coefficientFieldEquiv K E hK (z ⊗ₜ[ℚ] a) σ = z * EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ a := by |
| 135 | rw [EmbeddingCoefficientField.CM.coefficientFieldEquiv_apply] |
| 136 | rfl |
| 137 | |
| 138 | variable {E} |
| 139 | variable {U : Type*} [AddCommGroup U] [Module ℚ U] [Module E U] [IsScalarTower ℚ E U] |
| 140 | variable {H : WeightOne.CM.WeightOneHodgeStructure U} (h : WeightOne.CM.RankOneCMAction E H) |
| 141 | |
| 142 | /-- The actual rank-one module splits over any field containing all embedding values. -/ |
| 143 | def WeightOne.CM.RankOneCMAction.coefficientEmbeddingEquiv : K ⊗[ℚ] U ≃ₗ[K] ((E →ₐ[ℚ] ℂ) → K) := |
| 144 | ((h.equivField.restrictScalars ℚ).baseChange ℚ K _ _).trans |
| 145 | (EmbeddingCoefficientField.CM.coefficientFieldEquiv K E hK) |
| 146 | |
| 147 | @[simp] |
| 148 | theorem WeightOne.CM.RankOneCMAction.coefficientEmbeddingEquiv_tmul (z : K) (u : U) (σ : E →ₐ[ℚ] ℂ) : |
| 149 | h.coefficientEmbeddingEquiv K hK (z ⊗ₜ[ℚ] u) σ = |
| 150 | z * EmbeddingCoefficientField.CM.coefficientEmbedding K E hK σ (h.equivField u) := by |
| 151 | simp [WeightOne.CM.RankOneCMAction.coefficientEmbeddingEquiv] |
| 152 | |
| 153 | /-- A normalized embedding basis using only the chosen field's coefficients. -/ |
| 154 | def WeightOne.CM.RankOneCMAction.coefficientEmbeddingBasis : Module.Basis (E →ₐ[ℚ] ℂ) K (K ⊗[ℚ] U) := |
| 155 | Module.Basis.ofEquivFun (h.coefficientEmbeddingEquiv K hK) |
| 156 | |
| 157 | @[simp] |
| 158 | theorem WeightOne.CM.RankOneCMAction.coefficientEmbeddingEquiv_basis (σ : E →ₐ[ℚ] ℂ) : |
| 159 | h.coefficientEmbeddingEquiv K hK (h.coefficientEmbeddingBasis K hK σ) = |
| 160 | Pi.single σ 1 := by |
| 161 | simp [WeightOne.CM.RankOneCMAction.coefficientEmbeddingBasis] |
| 162 | |
| 163 | /-- The coefficient comparison agrees with every embedding coordinate. -/ |
| 164 | theorem WeightOne.CM.RankOneCMAction.complexEmbeddingEquiv_coefficientInclusion (x : K ⊗[ℚ] U) (σ : E →ₐ[ℚ] ℂ) : |
| 165 | h.complexEmbeddingEquiv (EmbeddingCoefficientField.CM.coefficientInclusion K U x) σ = |
| 166 | (h.coefficientEmbeddingEquiv K hK x σ : ℂ) := by |
| 167 | induction x using TensorProduct.inductionOn with |
| 168 | | tmul a u => simp |
| 169 | | add x y hx hy => simp [hx, hy] |
| 170 | |
| 171 | /-- Extending the normalized basis to `ℂ` gives the original complex basis exactly. -/ |
| 172 | theorem WeightOne.CM.RankOneCMAction.coefficientInclusion_embeddingBasis (σ : E →ₐ[ℚ] ℂ) : |
| 173 | EmbeddingCoefficientField.CM.coefficientInclusion K U (h.coefficientEmbeddingBasis K hK σ) = h.embeddingBasis σ := by |
| 174 | apply h.complexEmbeddingEquiv.injective |
| 175 | ext τ |
| 176 | rw [h.complexEmbeddingEquiv_coefficientInclusion K hK, |
| 177 | h.coefficientEmbeddingEquiv_basis K hK, h.complexEmbeddingEquiv_embeddingBasis] |
| 178 | by_cases he : σ = τ <;> simp [he] |
| 179 | |
| 180 | /-- Embedding coordinates transform with the scalar coefficients. -/ |
| 181 | theorem WeightOne.CM.RankOneCMAction.coefficientEmbeddingEquiv_scalarConjugate (g : Gal(K/ℚ)) (x : K ⊗[ℚ] U) |
| 182 | (σ : E →ₐ[ℚ] ℂ) : |
| 183 | h.coefficientEmbeddingEquiv K hK (ScalarDescent.CM.scalarConjugate ℚ K U g x) |
| 184 | (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g σ) = |
| 185 | g (h.coefficientEmbeddingEquiv K hK x σ) := by |
| 186 | induction x using TensorProduct.inductionOn with |
| 187 | | tmul a u => simp |
| 188 | | add x y hx hy => simp [hx, hy] |
| 189 | |
| 190 | /-- Scalar Galois conjugation permutes the normalized basis exactly. -/ |
| 191 | theorem WeightOne.CM.RankOneCMAction.scalarConjugate_coefficientEmbeddingBasis (g : Gal(K/ℚ)) (σ : E →ₐ[ℚ] ℂ) : |
| 192 | ScalarDescent.CM.scalarConjugate ℚ K U g (h.coefficientEmbeddingBasis K hK σ) = |
| 193 | h.coefficientEmbeddingBasis K hK (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g σ) := by |
| 194 | apply (h.coefficientEmbeddingEquiv K hK).injective |
| 195 | apply funext |
| 196 | intro τ |
| 197 | obtain ⟨τ, rfl⟩ := (EmbeddingCoefficientField.CM.galoisCoefficientEmbeddingEquiv K E hK g).surjective τ |
| 198 | change h.coefficientEmbeddingEquiv K hK |
| 199 | (ScalarDescent.CM.scalarConjugate ℚ K U g (h.coefficientEmbeddingBasis K hK σ)) |
| 200 | (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g τ) = |
| 201 | h.coefficientEmbeddingEquiv K hK |
| 202 | (h.coefficientEmbeddingBasis K hK (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g σ)) |
| 203 | (EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g τ) |
| 204 | rw [h.coefficientEmbeddingEquiv_scalarConjugate K hK, |
| 205 | h.coefficientEmbeddingEquiv_basis K hK, h.coefficientEmbeddingEquiv_basis K hK] |
| 206 | by_cases he : σ = τ |
| 207 | · subst τ |
| 208 | simp |
| 209 | · have hne : EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g σ ≠ |
| 210 | EmbeddingCoefficientField.CM.galoisCoefficientEmbedding K E hK g τ := |
| 211 | (EmbeddingCoefficientField.CM.galoisCoefficientEmbeddingEquiv K E hK g).injective.ne he |
| 212 | simp [he, hne] |
| 213 | |
| 214 | end |
| 215 | |
| 216 | end OAI.AlgebraicGeometry.ComplexMultiplication |