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.Eigenspace.Basic |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.RightExactness |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 4 | import Mathlib.RingTheory.Flat.Basic |
| 5 | |
| 6 | /-! # Exact Sequence Eigenvalues -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ExactSequenceEigenvalues.Construction |
| 9 | |
| 10 | /-! Eigenvalues of an operator in an equivariant exact sequence occur |
| 11 | on its subspace or quotient; the same holds after flat scalar extension. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u v w t |
| 16 | |
| 17 | theorem eigenvalue_or_of_exact |
| 18 | {K : Type u} [Field K] {U : Type v} {V : Type w} {W : Type t} |
| 19 | [AddCommGroup U] [AddCommGroup V] [AddCommGroup W] [Module K U] [Module K V] [Module K W] |
| 20 | (i : U →ₗ[K] V) (p : V →ₗ[K] W) (hi : Function.Injective i) |
| 21 | (he : Function.Exact i p) (TU : Module.End K U) (TV : Module.End K V) (TW : Module.End K W) |
| 22 | (hU : ∀ u, i (TU u) = TV (i u)) (hW : ∀ v, p (TV v) = TW (p v)) |
| 23 | (z : K) (hz : TV.HasEigenvalue z) : TU.HasEigenvalue z ∨ TW.HasEigenvalue z := by |
| 24 | obtain ⟨v, hv⟩ := hz.exists_hasEigenvector |
| 25 | have hev : TV v = z • v := Module.End.mem_eigenspace_iff.mp hv.1 |
| 26 | by_cases hp : p v = 0 |
| 27 | · have hm : v ∈ LinearMap.range i := by |
| 28 | rw [← he.linearMap_ker_eq] |
| 29 | exact hp |
| 30 | obtain ⟨u, hu⟩ := hm |
| 31 | apply Or.inl |
| 32 | apply Module.End.hasEigenvalue_of_hasEigenvector (x := u) |
| 33 | refine ⟨Module.End.mem_eigenspace_iff.mpr ?_, ?_⟩ |
| 34 | · apply hi |
| 35 | rw [hU, hu, hev, map_smul, hu] |
| 36 | · intro h |
| 37 | apply hv.2 |
| 38 | rw [← hu, h, map_zero] |
| 39 | · apply Or.inr |
| 40 | apply Module.End.hasEigenvalue_of_hasEigenvector (x := p v) |
| 41 | refine ⟨Module.End.mem_eigenspace_iff.mpr ?_, hp⟩ |
| 42 | rw [← hW, hev, map_smul] |
| 43 | |
| 44 | theorem baseChange_eigenvalue_or_of_exact |
| 45 | {R K : Type u} [CommRing R] [Field K] [Algebra R K] [Module.Flat R K] |
| 46 | {U : Type v} {V : Type w} {W : Type t} |
| 47 | [AddCommGroup U] [AddCommGroup V] [AddCommGroup W] [Module R U] [Module R V] [Module R W] |
| 48 | (i : U →ₗ[R] V) (p : V →ₗ[R] W) (hi : Function.Injective i) |
| 49 | (he : Function.Exact i p) (hp : Function.Surjective p) |
| 50 | (TU : Module.End R U) (TV : Module.End R V) (TW : Module.End R W) |
| 51 | (hU : ∀ u, i (TU u) = TV (i u)) (hW : ∀ v, p (TV v) = TW (p v)) |
| 52 | (z : K) (hz : Module.End.HasEigenvalue (TV.baseChange K) z) : |
| 53 | Module.End.HasEigenvalue (TU.baseChange K) z ∨ Module.End.HasEigenvalue (TW.baseChange K) z := by |
| 54 | have hix : Function.Injective (i.baseChange K) := by |
| 55 | rw [LinearMap.baseChange_eq_ltensor] |
| 56 | exact Module.Flat.lTensor_preserves_injective_linearMap _ hi |
| 57 | have hex : Function.Exact (i.baseChange K) (p.baseChange K) := |
| 58 | _root_.lTensor_exact K he hp |
| 59 | apply eigenvalue_or_of_exact (i.baseChange K) (p.baseChange K) hix hex |
| 60 | (TU.baseChange K) (TV.baseChange K) (TW.baseChange K) ?_ ?_ z hz |
| 61 | · intro x |
| 62 | induction x using TensorProduct.inductionOn with |
| 63 | | tmul r x => |
| 64 | change r ⊗ₜ[R] i (TU x) = r ⊗ₜ[R] TV (i x) |
| 65 | rw [hU] |
| 66 | | add x y hx hy => simp only [map_add, hx, hy] |
| 67 | · intro x |
| 68 | induction x using TensorProduct.inductionOn with |
| 69 | | tmul r x => |
| 70 | change r ⊗ₜ[R] p (TV x) = r ⊗ₜ[R] TW (p x) |
| 71 | rw [hW] |
| 72 | | add x y hx hy => simp only [map_add, hx, hy] |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ExactSequenceEigenvalues.Construction |