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.Order.WellQuasiOrder |
| 2 | import Mathlib.Order.Minimal |
| 3 | import Mathlib.GroupTheory.Finiteness |
| 4 | import Mathlib.Algebra.Order.Pi |
| 5 | |
| 6 | /-! # Vector Kernel Finite Generation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.VectorKernelFiniteGeneration |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Gordan's finite-generation argument for homogeneous integral |
| 13 | equations: the minimal nonzero solutions form a finite antichain in a |
| 14 | finite product of natural numbers, and subtraction decomposes every |
| 15 | solution into these minimal solutions. -/ |
| 16 | open scoped Classical |
| 17 | universe u v |
| 18 | variable {ι : Type u} [Fintype ι] |
| 19 | |
| 20 | theorem natVectorSubmonoid_fg_of_sub_closed (M : AddSubmonoid (ι → ℕ)) |
| 21 | (hsub : ∀ x ∈ M, ∀ y ∈ M, y ≤ x → x - y ∈ M) : M.FG := by |
| 22 | let P := fun x : ι → ℕ => x ∈ M ∧ x ≠ 0 |
| 23 | let B : Set (ι → ℕ) := {x | Minimal P x} |
| 24 | have hB : B.Finite := by |
| 25 | apply WellQuasiOrderedLE.finite_of_isAntichain |
| 26 | intro x hx y hy hne hxy |
| 27 | exact hne ((hy.eq_of_ge hx.prop hxy).symm) |
| 28 | apply (AddSubmonoid.fg_iff M).mpr |
| 29 | refine ⟨B, le_antisymm ?_ ?_, hB⟩ |
| 30 | · apply AddSubmonoid.closure_le.mpr |
| 31 | intro x hx |
| 32 | exact hx.prop.1 |
| 33 | · intro x |
| 34 | induction x using (wellFounded_lt (α := ι → ℕ)).induction with |
| 35 | | h x ih => |
| 36 | intro hx |
| 37 | by_cases hx0 : x = 0 |
| 38 | · subst x |
| 39 | exact (AddSubmonoid.closure B).zero_mem |
| 40 | obtain ⟨y, hyx, hy⟩ := exists_minimal_le_of_wellFoundedLT P x ⟨hx, hx0⟩ |
| 41 | have hym : y ∈ M := hy.prop.1 |
| 42 | have hyn : y ≠ 0 := hy.prop.2 |
| 43 | have hdiff : x - y < x := by |
| 44 | apply lt_iff_le_not_ge.mpr |
| 45 | refine ⟨fun i => Nat.sub_le _ _, ?_⟩ |
| 46 | intro hge |
| 47 | obtain ⟨i, hi⟩ := Function.ne_iff.mp hyn |
| 48 | have hypos : 0 < y i := Nat.pos_of_ne_zero hi |
| 49 | have hxpos : 0 < x i := hypos.trans_le (hyx i) |
| 50 | exact (Nat.not_le_of_lt (Nat.sub_lt hxpos hypos)) (hge i) |
| 51 | have hd : x - y ∈ AddSubmonoid.closure B := ih (x - y) hdiff (hsub x hx y hym hyx) |
| 52 | have hys : y ∈ AddSubmonoid.closure B := AddSubmonoid.subset_closure hy |
| 53 | have hsum : x - y + y = x := by |
| 54 | funext i |
| 55 | exact Nat.sub_add_cancel (hyx i) |
| 56 | exact hsum ▸ (AddSubmonoid.closure B).add_mem hd hys |
| 57 | |
| 58 | theorem natVectorHomKernel_fg {G : Type v} [AddGroup G] (f : (ι → ℕ) →+ G) : (AddMonoidHom.mker f).FG := by |
| 59 | apply natVectorSubmonoid_fg_of_sub_closed |
| 60 | intro x hx y hy hyx |
| 61 | have hsum : x - y + y = x := by |
| 62 | funext i |
| 63 | exact Nat.sub_add_cancel (hyx i) |
| 64 | have h : f (x - y) + f y = f x := (f.map_add (x - y) y).symm.trans (congrArg f hsum) |
| 65 | change f x = 0 at hx |
| 66 | change f y = 0 at hy |
| 67 | change f (x - y) = 0 |
| 68 | simpa only [hx, hy, add_zero] using h |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.VectorKernelFiniteGeneration |