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.SheafCohomology.Cech.TotalComplexUpNat |
| 2 | import Mathlib.Algebra.Homology.TotalComplex |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 4 | |
| 5 | /-! # Double Complex Signs -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexSigns.DoubleComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Signs for first-quadrant cochain total complexes |
| 13 | |
| 14 | This supplies the ordinary tensor signs for cochain complexes indexed by the |
| 15 | natural numbers. The first index is horizontal and the second is vertical. |
| 16 | The total complex is mathlib's `HomologicalComplex₂.total`; on its `(p,q)` |
| 17 | summand the differential is the horizontal differential plus `(-1)^p` times |
| 18 | the vertical differential. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Preadditive |
| 22 | |
| 23 | /-- The usual tensor signs for nonnegative cochain degrees. -/ |
| 24 | instance upNatTensorSigns : ComplexShape.TensorSigns (ComplexShape.up ℕ) := |
| 25 | AlgebraicGeometry.SheafCohomology.Cech.TotalComplexUpNat.ComplexShape.upNat_tensorSigns |
| 26 | |
| 27 | @[simp] |
| 28 | theorem epsilon_upNat (p : ℕ) : |
| 29 | (ComplexShape.up ℕ).ε p = (-1 : ℤˣ) ^ p := rfl |
| 30 | |
| 31 | @[simp] |
| 32 | theorem pi_upNat (p q : ℕ) : |
| 33 | ComplexShape.π (ComplexShape.up ℕ) (ComplexShape.up ℕ) |
| 34 | (ComplexShape.up ℕ) (p, q) = p + q := rfl |
| 35 | |
| 36 | @[simp] |
| 37 | theorem epsilon1_upNat (p q : ℕ) : |
| 38 | ComplexShape.ε₁ (ComplexShape.up ℕ) (ComplexShape.up ℕ) |
| 39 | (ComplexShape.up ℕ) (p, q) = 1 := rfl |
| 40 | |
| 41 | @[simp] |
| 42 | theorem epsilon2_upNat (p q : ℕ) : |
| 43 | ComplexShape.ε₂ (ComplexShape.up ℕ) (ComplexShape.up ℕ) |
| 44 | (ComplexShape.up ℕ) (p, q) = (-1 : ℤˣ) ^ p := rfl |
| 45 | |
| 46 | universe u v |
| 47 | |
| 48 | variable {R : Type u} [Ring R] |
| 49 | (K : HomologicalComplex₂ (ModuleCat.{v} R) (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 50 | |
| 51 | /-- The summands in every total degree have a coproduct in the module category. -/ |
| 52 | instance hasTotal : K.HasTotal (ComplexShape.up ℕ) := fun _ => inferInstance |
| 53 | |
| 54 | /-- The signed total differential on a summand, with a specified total degree. -/ |
| 55 | @[reassoc] |
| 56 | theorem iota_d_of_eq (p q n : ℕ) (h : p + q = n) : |
| 57 | K.ιTotal (ComplexShape.up ℕ) p q n h ≫ |
| 58 | (K.total (ComplexShape.up ℕ)).d n (n + 1) = |
| 59 | (K.d p (p + 1)).f q ≫ |
| 60 | K.ιTotal (ComplexShape.up ℕ) (p + 1) q (n + 1) (by |
| 61 | change p + 1 + q = n + 1 |
| 62 | omega) + |
| 63 | ((-1 : ℤ) ^ p) • ((K.X p).d q (q + 1) ≫ |
| 64 | K.ιTotal (ComplexShape.up ℕ) p (q + 1) (n + 1) (by |
| 65 | change p + (q + 1) = n + 1 |
| 66 | omega)) := by |
| 67 | rw [HomologicalComplex₂.total_d, comp_add, HomologicalComplex₂.ι_D₁, |
| 68 | HomologicalComplex₂.ι_D₂] |
| 69 | rw [K.d₁_eq (ComplexShape.up ℕ) (show (ComplexShape.up ℕ).Rel p (p + 1) from rfl) |
| 70 | q (n + 1) (by change p + 1 + q = n + 1; omega)] |
| 71 | rw [K.d₂_eq (ComplexShape.up ℕ) p |
| 72 | (show (ComplexShape.up ℕ).Rel q (q + 1) from rfl) |
| 73 | (n + 1) (by change p + (q + 1) = n + 1; omega)] |
| 74 | simp only [epsilon1_upNat, epsilon2_upNat, one_smul, Units.smul_def, |
| 75 | Units.val_pow_eq_pow_val, Units.val_neg, Units.val_one] |
| 76 | |
| 77 | /-- On bidegree `(p,q)`, the total differential is `δ + (-1)^p d`. -/ |
| 78 | @[reassoc] |
| 79 | theorem iota_d (p q : ℕ) : |
| 80 | K.ιTotal (ComplexShape.up ℕ) p q (p + q) rfl ≫ |
| 81 | (K.total (ComplexShape.up ℕ)).d (p + q) (p + q + 1) = |
| 82 | (K.d p (p + 1)).f q ≫ |
| 83 | K.ιTotal (ComplexShape.up ℕ) (p + 1) q (p + q + 1) (by |
| 84 | change p + 1 + q = p + q + 1 |
| 85 | omega) + |
| 86 | ((-1 : ℤ) ^ p) • ((K.X p).d q (q + 1) ≫ |
| 87 | K.ιTotal (ComplexShape.up ℕ) p (q + 1) (p + q + 1) (by |
| 88 | change p + (q + 1) = p + q + 1 |
| 89 | omega)) := |
| 90 | iota_d_of_eq K p q (p + q) rfl |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexSigns.DoubleComplex |