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.NumberTheory.ArithmeticGroups.Lattices.EigenbasisSemisimple |
| 2 | import Mathlib.LinearAlgebra.Lagrange |
| 3 | |
| 4 | /-! # Polynomial Spectral Functions -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.PolynomialSpectralFunctions.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A function of the eigenvalues of a finite eigenbasis is a polynomial |
| 11 | in the original endomorphism, and therefore preserves its invariant subspaces. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | theorem eigenvalue_function_is_polynomial |
| 16 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 17 | (b : Module.Basis ι k V) (f g : Module.End k V) (eigenvalue : ι → k) (ψ : k → k) |
| 18 | (hf : ∀ i, f (b i) = eigenvalue i • b i) |
| 19 | (hg : ∀ i, g (b i) = ψ (eigenvalue i) • b i) : |
| 20 | ∃ p : Polynomial k, Polynomial.aeval f p = g := by |
| 21 | obtain ⟨p, hp⟩ := (Polynomial.exists_eval_eq_iff eigenvalue (ψ ∘ eigenvalue)).mpr |
| 22 | (fun i j hij => congrArg ψ hij) |
| 23 | refine ⟨p, b.ext fun i => ?_⟩ |
| 24 | rw [Module.End.aeval_apply_of_mem_apply_eq_smul (hf i), hp i, hg i] |
| 25 | rfl |
| 26 | |
| 27 | theorem eigenvalue_function_preserves_submodule |
| 28 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 29 | (b : Module.Basis ι k V) (f g : Module.End k V) (eigenvalue : ι → k) (ψ : k → k) |
| 30 | (hf : ∀ i, f (b i) = eigenvalue i • b i) |
| 31 | (hg : ∀ i, g (b i) = ψ (eigenvalue i) • b i) |
| 32 | (W : Submodule k V) (hW : W ≤ W.comap f) : W ≤ W.comap g := by |
| 33 | obtain ⟨p, rfl⟩ := eigenvalue_function_is_polynomial b f g eigenvalue ψ hf hg |
| 34 | exact fun _ hx => Polynomial.aeval_apply_smul_mem_of_le_comap hx p f hW |
| 35 | |
| 36 | theorem eigenvalue_function_on_eigenvector |
| 37 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 38 | (b : Module.Basis ι k V) (f g : Module.End k V) (eigenvalue : ι → k) (ψ : k → k) |
| 39 | (hf : ∀ i, f (b i) = eigenvalue i • b i) |
| 40 | (hg : ∀ i, g (b i) = ψ (eigenvalue i) • b i) |
| 41 | (x : V) (a : k) (hx : f x = a • x) : g x = ψ a • x := by |
| 42 | let values : Option ι → k := Option.elim' a eigenvalue |
| 43 | obtain ⟨p, hp⟩ := (Polynomial.exists_eval_eq_iff values (ψ ∘ values)).mpr |
| 44 | (fun i j hij => congrArg ψ hij) |
| 45 | have hpi (i : ι) : p.eval (eigenvalue i) = ψ (eigenvalue i) := hp (some i) |
| 46 | have hpa : p.eval a = ψ a := hp none |
| 47 | have heq : Polynomial.aeval f p = g := by |
| 48 | apply b.ext |
| 49 | intro i |
| 50 | rw [Module.End.aeval_apply_of_mem_apply_eq_smul (hf i), hpi i, hg i] |
| 51 | rw [← heq, Module.End.aeval_apply_of_mem_apply_eq_smul hx, hpa] |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.NumberTheory.ArithmeticGroups.Lattices.PolynomialSpectralFunctions.Construction |