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.Algebra.BigOperators.Ring.Finset |
| 2 | import Mathlib.Algebra.Order.BigOperators.Group.Finset |
| 3 | import Mathlib.Basic.Real.Basic |
| 4 | import Mathlib.Tactic.Linarith |
| 5 | |
| 6 | /-! # Sum High Weight Count -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SumHighWeightCount |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The numerical separation estimate used for stable point |
| 13 | configurations: zero-sum weights force enough labels above the negative |
| 14 | threshold determined by their positive maximum. -/ |
| 15 | open scoped BigOperators Classical |
| 16 | universe u |
| 17 | |
| 18 | theorem zeroSum_highWeight_count_bound {ι : Type u} [Fintype ι] |
| 19 | (a : ι → ℝ) (ha : ∑ i, a i = 0) (M : ℝ) (hM : 0 < M) |
| 20 | (hmax : ∀ i, a i ≤ M) (r : ℕ) (hr : 1 ≤ r) |
| 21 | (H : Finset ι) (houtside : ∀ i ∉ H, (r - 1 : ℝ) * a i ≤ -M) : |
| 22 | (Fintype.card ι : ℝ) ≤ r * H.card := by |
| 23 | have hr1 : (1 : ℝ) ≤ (r : ℝ) := by exact_mod_cast hr |
| 24 | have hr0 : (0 : ℝ) ≤ (r : ℝ) - 1 := sub_nonneg.mpr hr1 |
| 25 | have hterm (i : ι) : ((r : ℝ) - 1) * a i ≤ |
| 26 | (if i ∈ H then (r : ℝ) * M else 0) - M := by |
| 27 | by_cases hi : i ∈ H |
| 28 | · simp only [hi, ite_true] |
| 29 | nlinarith [mul_le_mul_of_nonneg_left (hmax i) hr0] |
| 30 | · simpa only [hi, ite_false, zero_sub] using houtside i hi |
| 31 | have hs := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset ι)) => hterm i) |
| 32 | rw [← Finset.mul_sum, ha, mul_zero, Finset.sum_sub_distrib] at hs |
| 33 | have hH : (∑ i : ι, if i ∈ H then (r : ℝ) * M else 0) = |
| 34 | (H.card : ℝ) * ((r : ℝ) * M) := by |
| 35 | rw [Finset.sum_ite] |
| 36 | simp |
| 37 | rw [hH] at hs |
| 38 | simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] at hs |
| 39 | nlinarith |
| 40 | |
| 41 | theorem zeroSum_strictHighWeight_count {ι : Type u} [Fintype ι] |
| 42 | (a : ι → ℝ) (ha : ∑ i, a i = 0) (M : ℝ) (hM : 0 < M) |
| 43 | (hmax : ∀ i, a i ≤ M) (r : ℕ) (hr : 1 ≤ r) : |
| 44 | Fintype.card ι ≤ r * (Finset.univ.filter (fun i => -M < ((r : ℝ) - 1) * a i)).card := by |
| 45 | have h := zeroSum_highWeight_count_bound a ha M hM hmax r hr |
| 46 | (Finset.univ.filter (fun i => -M < ((r : ℝ) - 1) * a i)) (by |
| 47 | intro i hi |
| 48 | simpa only [Finset.mem_filter, Finset.mem_univ, true_and, not_lt] using hi) |
| 49 | exact_mod_cast h |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SumHighWeightCount |