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.IntersectionTheory.ProjectionFormula.Tensor.PageBounds |
| 2 | import Mathlib.Algebra.Ring.NegOnePow |
| 3 | |
| 4 | /-! # Euler Weights -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.EulerWeights |
| 7 | |
| 8 | /-! Alternating total-degree weights and the finite degree set for the |
| 9 | bounded iterated Tor page. -/ |
| 10 | |
| 11 | open scoped Classical |
| 12 | |
| 13 | def sign (n : ℤ) : ℚ := (n.negOnePow : ℤ) |
| 14 | |
| 15 | theorem sign_succ (n : ℤ) : sign (n + 1) = -sign n := by |
| 16 | simp [sign, Int.negOnePow_succ] |
| 17 | |
| 18 | theorem sign_neg_nat (n : ℕ) : sign (-(n : ℤ)) = (-1 : ℚ) ^ n := by |
| 19 | simp only [sign, Int.negOnePow_neg, Int.coe_negOnePow_natCast, Int.cast_pow, Int.cast_neg, Int.cast_one] |
| 20 | |
| 21 | theorem sign_neg_sum (i j : ℕ) : sign (-(i : ℤ) - (j : ℤ)) = (-1 : ℚ) ^ (i + j) := by |
| 22 | have h : -(i : ℤ) - (j : ℤ) = -((i + j : ℕ) : ℤ) := by omega |
| 23 | rw [h, sign_neg_nat] |
| 24 | |
| 25 | theorem opposite (r : ℤ) (pq pq' : ℤ × ℤ) |
| 26 | (h : (ComplexShape.up' (⟨r, 1 - r⟩ : ℤ × ℤ)).Rel pq pq') : |
| 27 | sign (pq.1 + pq.2) + sign (pq'.1 + pq'.2) = 0 := by |
| 28 | change pq + (r, 1 - r) = pq' at h |
| 29 | have hp := congrArg Prod.fst h |
| 30 | have hq := congrArg Prod.snd h |
| 31 | dsimp at hp hq |
| 32 | have he : pq'.1 + pq'.2 = (pq.1 + pq.2) + 1 := by omega |
| 33 | rw [he, sign_succ, add_neg_cancel] |
| 34 | |
| 35 | def degrees (c : ℕ) : Finset ℤ := (Finset.range (c + 1)).image (fun i : ℕ => -(i : ℤ)) |
| 36 | |
| 37 | theorem mem_degrees (c : ℕ) (n : ℤ) (hl : -(c : ℤ) ≤ n) (hu : n ≤ 0) : n ∈ degrees c := by |
| 38 | exact Finset.mem_image.mpr ⟨(-n).toNat, Finset.mem_range.mpr (by omega), by omega⟩ |
| 39 | |
| 40 | theorem support_degrees (a b : ℕ) (pq : ℤ × ℤ) (h : pq ∈ Tensor.PageBounds.support a b) : |
| 41 | pq.1 + pq.2 ∈ degrees (a + b) := by |
| 42 | have hs := (Tensor.PageBounds.mem_support a b pq.1 pq.2).mp h |
| 43 | apply mem_degrees <;> omega |
| 44 | |
| 45 | theorem support_strip (a b : ℕ) (pq : ℤ × ℤ) (h : pq ∈ Tensor.PageBounds.support a b) : |
| 46 | 0 ≤ pq.2 + 1 ∧ pq.2 + 1 ≤ (a : ℤ) := by |
| 47 | have hs := (Tensor.PageBounds.mem_support a b pq.1 pq.2).mp h |
| 48 | exact ⟨hs.1, hs.2.1⟩ |
| 49 | |
| 50 | theorem position_injective : Function.Injective |
| 51 | (fun ij : ℕ × ℕ => (1 - 2 * (ij.1 : ℤ) - (ij.2 : ℤ), (ij.1 : ℤ) - 1)) := by |
| 52 | rintro ⟨i, j⟩ ⟨i', j'⟩ h |
| 53 | have hp := congrArg Prod.fst h |
| 54 | have hq := congrArg Prod.snd h |
| 55 | dsimp at hp hq |
| 56 | apply Prod.ext <;> dsimp <;> omega |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.EulerWeights |