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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SumHighWeightCount |
| 2 | import Mathlib.Data.Finset.Max |
| 3 | |
| 4 | /-! # Zero Sum Positive Maximum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ZeroSumPositiveMaximum |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonzero finite real weighting with total zero has a positive maximum. -/ |
| 11 | open scoped BigOperators Classical |
| 12 | universe u |
| 13 | |
| 14 | theorem zeroSum_nonzero_exists_positive_maximum {ι : Type u} [Fintype ι] |
| 15 | (a : ι → ℝ) (ha : ∑ i, a i = 0) (hne : a ≠ 0) : |
| 16 | ∃ i₀, 0 < a i₀ ∧ ∀ i, a i ≤ a i₀ := by |
| 17 | obtain ⟨i, _⟩ := Function.ne_iff.mp hne |
| 18 | obtain ⟨i₀, _, hmax⟩ := Finset.exists_max_image Finset.univ a ⟨i, Finset.mem_univ _⟩ |
| 19 | refine ⟨i₀, ?_, fun i => hmax i (Finset.mem_univ _)⟩ |
| 20 | by_contra hh |
| 21 | have hnonpos : ∀ i ∈ (Finset.univ : Finset ι), a i ≤ 0 := |
| 22 | fun i hi => (hmax i hi).trans (le_of_not_gt hh) |
| 23 | have hz := (Finset.sum_eq_zero_iff_of_nonpos hnonpos).mp ha |
| 24 | apply hne |
| 25 | funext i |
| 26 | exact hz i (Finset.mem_univ _) |
| 27 | |
| 28 | end |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ZeroSumPositiveMaximum |