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.Tactic.Abel |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.VectorKernelFiniteGeneration |
| 3 | import Mathlib.Algebra.BigOperators.Ring.Finset |
| 4 | |
| 5 | /-! # Exponent Finite Generation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.ExponentFiniteGeneration |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exponents of determinant monomials with equal degree in every |
| 12 | marked-point coordinate block form a finitely generated additive monoid. -/ |
| 13 | open scoped BigOperators Classical |
| 14 | universe u v |
| 15 | variable {κ : Type u} [Fintype κ] {ι : Type v} |
| 16 | |
| 17 | def monomialMultiDegree (w : κ → ι → ℕ) (a : κ → ℕ) (i : ι) : ℕ := |
| 18 | ∑ k, a k * w k i |
| 19 | |
| 20 | theorem monomialMultiDegree_add (w : κ → ι → ℕ) (a b : κ → ℕ) (i : ι) : |
| 21 | monomialMultiDegree w (a + b) i = monomialMultiDegree w a i + monomialMultiDegree w b i := by |
| 22 | simp only [monomialMultiDegree, Pi.add_apply, add_mul, Finset.sum_add_distrib] |
| 23 | |
| 24 | def degreeBalanceHom (w : κ → ι → ℕ) : (κ → ℕ) →+ (ι × ι → ℤ) where |
| 25 | toFun a ij := (monomialMultiDegree w a ij.1 : ℤ) - monomialMultiDegree w a ij.2 |
| 26 | map_zero' := by |
| 27 | funext ij |
| 28 | simp only [monomialMultiDegree, Pi.zero_apply, zero_mul, Finset.sum_const_zero, Nat.cast_zero, sub_self] |
| 29 | map_add' a b := by |
| 30 | funext ij |
| 31 | change ((monomialMultiDegree w (a + b) ij.1 : ℕ) : ℤ) - monomialMultiDegree w (a + b) ij.2 = _ |
| 32 | rw [monomialMultiDegree_add, monomialMultiDegree_add, Nat.cast_add, Nat.cast_add] |
| 33 | simp only [Pi.add_apply] |
| 34 | abel |
| 35 | |
| 36 | def balancedExponentMonoid (w : κ → ι → ℕ) : AddSubmonoid (κ → ℕ) := |
| 37 | AddMonoidHom.mker (degreeBalanceHom w) |
| 38 | |
| 39 | theorem mem_balancedExponentMonoid_iff (w : κ → ι → ℕ) (a : κ → ℕ) : |
| 40 | a ∈ balancedExponentMonoid w ↔ ∀ i j, monomialMultiDegree w a i = monomialMultiDegree w a j := by |
| 41 | constructor |
| 42 | · intro h i j |
| 43 | have hzero : degreeBalanceHom w a = 0 := h |
| 44 | have he := congrFun hzero (i, j) |
| 45 | change (monomialMultiDegree w a i : ℤ) - monomialMultiDegree w a j = 0 at he |
| 46 | exact Int.ofNat_inj.mp (sub_eq_zero.mp he) |
| 47 | · intro h |
| 48 | change degreeBalanceHom w a = 0 |
| 49 | funext ij |
| 50 | change (monomialMultiDegree w a ij.1 : ℤ) - monomialMultiDegree w a ij.2 = 0 |
| 51 | rw [h ij.1 ij.2, sub_self] |
| 52 | |
| 53 | theorem balancedExponentMonoid_fg (w : κ → ι → ℕ) : (balancedExponentMonoid w).FG := |
| 54 | VectorKernelFiniteGeneration.natVectorHomKernel_fg (degreeBalanceHom w) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.ExponentFiniteGeneration |