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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/TotalComplexUpNat.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Homology.TotalComplexSymmetry |
| 8 | |
| 9 | /-! # Total Complex Up Nat -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.TotalComplexUpNat.ComplexShape |
| 12 | |
| 13 | open _root_.ComplexShape |
| 14 | |
| 15 | /-! |
| 16 | # Total complexes of first-quadrant bicomplexes |
| 17 | |
| 18 | Supply the standard signs for cochain complexes indexed by the natural numbers, so that |
| 19 | mathlib's existing total-complex construction applies to first-quadrant bicomplexes. |
| 20 | -/ |
| 21 | |
| 22 | /-- The standard tensor signs for natural-number-indexed cochain complexes. -/ |
| 23 | instance upNat_tensorSigns : TensorSigns (up ℕ) where |
| 24 | ε' := MonoidHom.mk' (fun n : Multiplicative ℕ ↦ (-1 : ℤˣ) ^ n.toAdd) (by |
| 25 | intro m n |
| 26 | exact pow_add (-1 : ℤˣ) m.toAdd n.toAdd) |
| 27 | rel_add p q r hpq := by |
| 28 | change p + r + 1 = q + r |
| 29 | change p + 1 = q at hpq |
| 30 | omega |
| 31 | add_rel p q r hpq := by |
| 32 | change r + p + 1 = r + q |
| 33 | change p + 1 = q at hpq |
| 34 | omega |
| 35 | ε'_succ := by |
| 36 | rintro p _ rfl |
| 37 | change (-1 : ℤˣ) ^ (p + 1) = -((-1 : ℤˣ) ^ p) |
| 38 | calc |
| 39 | (-1 : ℤˣ) ^ (p + 1) = (-1 : ℤˣ) ^ p * (-1 : ℤˣ) := |
| 40 | pow_succ _ _ |
| 41 | _ = -((-1 : ℤˣ) ^ p) := by rw [mul_neg, mul_one] |
| 42 | |
| 43 | @[simp] |
| 44 | lemma ε_up_ℕ (n : ℕ) : (up ℕ).ε n = (-1 : ℤˣ) ^ n := |
| 45 | rfl |
| 46 | |
| 47 | /-- The standard Koszul symmetry for first-quadrant total complexes. -/ |
| 48 | instance upNat_totalComplexShapeSymmetry : |
| 49 | TotalComplexShapeSymmetry (up ℕ) (up ℕ) (up ℕ) where |
| 50 | symm p q := add_comm q p |
| 51 | σ p q := (-1 : ℤˣ) ^ (p * q) |
| 52 | σ_ε₁ := by |
| 53 | rintro p _ rfl q |
| 54 | dsimp |
| 55 | rw [mul_one, add_mul, one_mul] |
| 56 | calc |
| 57 | (-1 : ℤˣ) ^ (p * q) = |
| 58 | ((-1 : ℤˣ) ^ q * (-1 : ℤˣ) ^ q) * (-1 : ℤˣ) ^ (p * q) := by |
| 59 | rw [Int.units_mul_self, one_mul] |
| 60 | _ = (-1 : ℤˣ) ^ q * |
| 61 | ((-1 : ℤˣ) ^ (p * q) * (-1 : ℤˣ) ^ q) := by |
| 62 | ac_rfl |
| 63 | _ = (-1 : ℤˣ) ^ q * (-1 : ℤˣ) ^ (p * q + q) := by |
| 64 | exact congrArg (fun z ↦ (-1 : ℤˣ) ^ q * z) |
| 65 | (pow_add (-1 : ℤˣ) (p * q) q).symm |
| 66 | σ_ε₂ := by |
| 67 | rintro p q _ rfl |
| 68 | dsimp |
| 69 | rw [one_mul, mul_add, mul_one] |
| 70 | exact (pow_add (-1 : ℤˣ) (p * q) p).symm |
| 71 | |
| 72 | @[simp] |
| 73 | lemma σ_up_ℕ (p q : ℕ) : |
| 74 | σ (up ℕ) (up ℕ) (up ℕ) p q = (-1 : ℤˣ) ^ (p * q) := |
| 75 | rfl |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.TotalComplexUpNat.ComplexShape |