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.LinearAlgebra.Dual.Basis |
| 2 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 3 | |
| 4 | /-! # Primal Character Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PrimalCharacterBasis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A character basis of the actual dual space yields a character |
| 11 | basis of the original space, with the same character labels. -/ |
| 12 | |
| 13 | variable {k V I : Type*} [Field k] [AddCommGroup V] [Module k V] [FiniteDimensional k V] |
| 14 | [Fintype I] [DecidableEq I] (b : Module.Basis I k (Module.Dual k V)) |
| 15 | |
| 16 | def primalBasisOfDualBasis : Module.Basis I k V := |
| 17 | b.dualBasis.map (Module.evalEquiv k V).symm |
| 18 | |
| 19 | theorem primalBasisOfDualBasis_pair (i j : I) : |
| 20 | b j (primalBasisOfDualBasis b i) = if j = i then 1 else 0 := by |
| 21 | rw [primalBasisOfDualBasis, Module.Basis.map_apply, Module.apply_evalEquiv_symm_apply, |
| 22 | Module.Basis.dualBasis_apply_self] |
| 23 | |
| 24 | theorem primalBasisOfDualBasis_eigen {R : Type*} |
| 25 | (ρ : R → V →ₗ[k] V) (χ : I → R → k) |
| 26 | (hb : ∀ i a, (ρ a).dualMap (b i) = χ i a • b i) (i : I) (a : R) : |
| 27 | ρ a (primalBasisOfDualBasis b i) = χ i a • primalBasisOfDualBasis b i := by |
| 28 | apply (Module.evalEquiv k V).injective |
| 29 | apply b.ext |
| 30 | intro j |
| 31 | change b j (ρ a (primalBasisOfDualBasis b i)) = b j (χ i a • primalBasisOfDualBasis b i) |
| 32 | have he := LinearMap.congr_fun (hb j a) (primalBasisOfDualBasis b i) |
| 33 | change b j (ρ a (primalBasisOfDualBasis b i)) = χ j a * b j (primalBasisOfDualBasis b i) at he |
| 34 | rw [he, map_smul, smul_eq_mul, primalBasisOfDualBasis_pair] |
| 35 | split_ifs with h |
| 36 | · subst j |
| 37 | rfl |
| 38 | · rw [mul_zero, mul_zero] |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PrimalCharacterBasis |