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 Mathlib.GroupTheory.FiniteAbelian.Duality |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 3 | import Mathlib.RingTheory.RootsOfUnity.AlgebraicallyClosed |
| 4 | |
| 5 | /-! # Character Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CharacterBasis |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Characters form an explicit basis of functions on a finite abelian group over a field containing the required roots of unity. -/ |
| 12 | universe u v |
| 13 | variable (K : Type u) [Field K] (G : Type v) [CommGroup G] |
| 14 | |
| 15 | theorem finiteAbelianCharacter_linearIndependent : |
| 16 | LinearIndependent K (fun χ : G →* Kˣ => fun g : G => (χ g : K)) := by |
| 17 | exact (linearIndependent_monoidHom G K).comp |
| 18 | (fun χ : G →* Kˣ => (Units.coeHom K).comp χ) (by |
| 19 | intro χ ψ h |
| 20 | apply MonoidHom.ext |
| 21 | intro g |
| 22 | apply Units.ext |
| 23 | exact DFunLike.congr_fun h g) |
| 24 | |
| 25 | variable [Fintype G] [HasEnoughRootsOfUnity K (Monoid.exponent G)] |
| 26 | |
| 27 | def finiteAbelianCharacterBasis : Module.Basis (G →* Kˣ) K (G → K) := by |
| 28 | classical |
| 29 | let : Fintype (G →* Kˣ) := Fintype.ofFinite _ |
| 30 | exact basisOfLinearIndependentOfCardEqFinrank (finiteAbelianCharacter_linearIndependent K G) (by |
| 31 | simpa only [Nat.card_eq_fintype_card, Module.finrank_fintype_fun_eq_card] using |
| 32 | CommGroup.card_monoidHom_of_hasEnoughRootsOfUnity G K) |
| 33 | |
| 34 | @[simp] |
| 35 | theorem finiteAbelianCharacterBasis_apply (χ : G →* Kˣ) (g : G) : |
| 36 | finiteAbelianCharacterBasis K G χ g = (χ g : K) := by |
| 37 | classical |
| 38 | simp only [finiteAbelianCharacterBasis, coe_basisOfLinearIndependentOfCardEqFinrank] |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CharacterBasis |