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.AbelianModuli.HilbertConstruction.CharacterOrthogonality |
| 2 | |
| 3 | /-! # Character Sums -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Dual.CharacterSums |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Summing all finite abelian characters detects the group identity, including inverse character values. -/ |
| 10 | universe u v |
| 11 | variable (K : Type u) [Field K] (G : Type v) [CommGroup G] [Fintype G] |
| 12 | [HasEnoughRootsOfUnity K (Monoid.exponent G)] [Fintype (G →* Kˣ)] |
| 13 | |
| 14 | theorem finiteCharacters_sum_apply [DecidableEq G] (a : G) : |
| 15 | ∑ χ : G →* Kˣ, (χ a : K) = if a = 1 then (Fintype.card G : K) else 0 := by |
| 16 | classical |
| 17 | by_cases ha : a = 1 |
| 18 | · subst a |
| 19 | have hc : Fintype.card (G →* Kˣ) = Fintype.card G := by |
| 20 | simpa only [Nat.card_eq_fintype_card] using |
| 21 | CommGroup.card_monoidHom_of_hasEnoughRootsOfUnity G K |
| 22 | simp [hc] |
| 23 | · rw [ite_eq_right ha] |
| 24 | let e : (G →* Kˣ) →* Kˣ := |
| 25 | { toFun := fun χ => χ a |
| 26 | map_one' := rfl |
| 27 | map_mul' := fun _ _ => rfl } |
| 28 | have he : e ≠ 1 := by |
| 29 | obtain ⟨χ, hχ⟩ := CommGroup.exists_apply_ne_one_of_hasEnoughRootsOfUnity G K ha |
| 30 | intro h |
| 31 | exact hχ (congrArg (fun f : (G →* Kˣ) →* Kˣ => f χ) h) |
| 32 | exact CharacterOrthogonality.finiteCharacter_sum_eq_zero e he |
| 33 | |
| 34 | theorem finiteCharacters_sum_inv_apply [DecidableEq G] (a : G) : |
| 35 | ∑ χ : G →* Kˣ, (χ a : K)⁻¹ = if a = 1 then (Fintype.card G : K) else 0 := by |
| 36 | simpa using finiteCharacters_sum_apply K G a⁻¹ |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Dual.CharacterSums |