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.BigOperators.Group.Finset.Sigma |
| 3 | import Mathlib.Data.Int.Interval |
| 4 | import Mathlib.Algebra.Field.Rat |
| 5 | |
| 6 | /-! # Euler Index -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.EulerIndex |
| 9 | |
| 10 | /-! Reindexing a finitely supported spectral-page sum by total degree |
| 11 | and filtration index. -/ |
| 12 | |
| 13 | open scoped BigOperators Classical |
| 14 | |
| 15 | def position (ni : ℤ × ℕ) : ℤ × ℤ := (ni.1 - ((ni.2 : ℤ) - 1), (ni.2 : ℤ) - 1) |
| 16 | |
| 17 | theorem position_injective : Function.Injective position := by |
| 18 | rintro ⟨n, i⟩ ⟨m, j⟩ h |
| 19 | have hp := congrArg Prod.fst h |
| 20 | have hq := congrArg Prod.snd h |
| 21 | dsimp [position] at hp hq |
| 22 | apply Prod.ext <;> dsimp <;> omega |
| 23 | |
| 24 | theorem degree_position (ni : ℤ × ℕ) : (position ni).1 + (position ni).2 = ni.1 := by |
| 25 | exact sub_add_cancel _ _ |
| 26 | |
| 27 | theorem sum_by_degree (F : Finset (ℤ × ℤ)) (N : Finset ℤ) (a : ℕ) |
| 28 | (hdegree : ∀ pq ∈ F, pq.1 + pq.2 ∈ N) |
| 29 | (hstrip : ∀ pq ∈ F, 0 ≤ pq.2 + 1 ∧ pq.2 + 1 ≤ (a : ℤ)) |
| 30 | (f : ℤ × ℤ → ℚ) (hout : ∀ pq, pq ∉ F → f pq = 0) (w : ℤ → ℚ) : |
| 31 | (∑ n ∈ N, w n * ∑ i ∈ Finset.range (a + 1), f (position (n, i))) = |
| 32 | ∑ pq ∈ F, w (pq.1 + pq.2) * f pq := by |
| 33 | let G := (N.product (Finset.range (a + 1))).image position |
| 34 | have hsub : F ⊆ G := by |
| 35 | intro pq hpq |
| 36 | have hs := hstrip pq hpq |
| 37 | refine Finset.mem_image.mpr ⟨(pq.1 + pq.2, (pq.2 + 1).toNat), |
| 38 | Finset.mem_product.mpr ⟨hdegree pq hpq, Finset.mem_range.mpr (by omega)⟩, ?_⟩ |
| 39 | apply Prod.ext <;> dsimp [position] <;> omega |
| 40 | calc |
| 41 | _ = ∑ ni ∈ N.product (Finset.range (a + 1)), w ni.1 * f (position ni) := by |
| 42 | rw [Finset.product_eq_sprod, Finset.sum_product] |
| 43 | apply Finset.sum_congr rfl |
| 44 | intro n _ |
| 45 | rw [Finset.mul_sum] |
| 46 | _ = ∑ pq ∈ G, w (pq.1 + pq.2) * f pq := by |
| 47 | rw [Finset.sum_image (fun _ _ _ _ h => position_injective h)] |
| 48 | apply Finset.sum_congr rfl |
| 49 | intro ni _ |
| 50 | rw [degree_position] |
| 51 | _ = _ := (Finset.sum_subset hsub (fun pq _ hpq => by rw [hout pq hpq, mul_zero])).symm |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.EulerIndex |