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.Quaternion.Arithmetic.AdjointAssociativeDensity |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Map |
| 4 | |
| 5 | /-! # Tensor Invariant Subspaces -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.TensorInvariantSubspaces |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A subspace after field extension that is invariant under every |
| 12 | extended base-field endomorphism is zero or the whole space. Rank-one |
| 13 | operators extract each basis coordinate. -/ |
| 14 | |
| 15 | open scoped Classical TensorProduct |
| 16 | open _root_.Module |
| 17 | |
| 18 | variable {k K V : Type*} [Field k] [Field K] [Algebra k K] |
| 19 | variable [AddCommGroup V] [Module k V] |
| 20 | |
| 21 | theorem baseChange_rankOne_apply |
| 22 | {ι : Type*} (b : Basis ι k V) (i j : ι) (x : K ⊗[k] V) : |
| 23 | ((b.coord i).smulRight (b j)).baseChange K x = |
| 24 | (b.baseChange K).repr x i • (b.baseChange K) j := by |
| 25 | induction x using TensorProduct.inductionOn with |
| 26 | | add x y hx hy => simp only [map_add, Finsupp.add_apply, add_smul, hx, hy] |
| 27 | | tmul a v => |
| 28 | rw [LinearMap.baseChange_tmul, LinearMap.smulRight_apply, Basis.coord_apply, |
| 29 | Basis.baseChange_repr_tmul, Basis.baseChange_apply] |
| 30 | simp only [TensorProduct.tmul_smul, TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 31 | |
| 32 | theorem tensor_invariant_subspace_eq_bot_or_top [FiniteDimensional k V] |
| 33 | (W : Submodule K (K ⊗[k] V)) |
| 34 | (hW : ∀ f : Module.End k V, ∀ x ∈ W, f.baseChange K x ∈ W) : W = ⊥ ∨ W = ⊤ := by |
| 35 | by_cases h0 : W = ⊥ |
| 36 | · exact Or.inl h0 |
| 37 | right |
| 38 | let b := Module.finBasis k V |
| 39 | let bK := b.baseChange K |
| 40 | obtain ⟨x, hx, hx0⟩ := W.ne_bot_iff.mp h0 |
| 41 | obtain ⟨i, hi⟩ : ∃ i, bK.repr x i ≠ 0 := by |
| 42 | by_contra! h |
| 43 | apply hx0 |
| 44 | apply bK.repr.injective |
| 45 | ext i |
| 46 | simpa only [map_zero, Finsupp.zero_apply] using h i |
| 47 | have hb (j) : bK j ∈ W := by |
| 48 | have hm := hW ((b.coord i).smulRight (b j)) x hx |
| 49 | rw [baseChange_rankOne_apply] at hm |
| 50 | change bK.repr x i • bK j ∈ W at hm |
| 51 | have hh := W.smul_mem (bK.repr x i)⁻¹ hm |
| 52 | simpa only [smul_smul, inv_mul_cancel₀ hi, one_smul] using hh |
| 53 | apply top_unique |
| 54 | intro y _ |
| 55 | rw [← bK.sum_repr y] |
| 56 | exact W.sum_mem (fun j _ => W.smul_mem _ (hb j)) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.Quaternion.Arithmetic.TensorInvariantSubspaces |