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.Data.ZMod.Basic |
| 2 | import Mathlib.Data.Fintype.EquivFin |
| 3 | import Mathlib.LinearAlgebra.Pi |
| 4 | |
| 5 | /-! # Torsion Coefficient Group Isomorphism -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TorsionCoefficientGroupIsomorphism |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite family of torsion elements defines its actual homomorphism |
| 12 | from the finite constant coefficient group. Generation gives surjectivity, |
| 13 | and the expected cardinality then gives an additive isomorphism. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u v |
| 16 | variable {G : Type u} [AddCommGroup G] |
| 17 | |
| 18 | def integerMultipleHom (x : G) : ℤ →+ G where |
| 19 | toFun a := a • x |
| 20 | map_zero' := zero_zsmul x |
| 21 | map_add' a b := by simp only [add_zsmul] |
| 22 | |
| 23 | def torsionCoefficientHom (n : ℕ) (x : G) (hx : (n : ℤ) • x = 0) : ZMod n →+ G := |
| 24 | ZMod.lift n ⟨integerMultipleHom x, hx⟩ |
| 25 | |
| 26 | theorem torsionCoefficientHom_intCast (n : ℕ) (x : G) (hx : (n : ℤ) • x = 0) (a : ℤ) : |
| 27 | torsionCoefficientHom n x hx (a : ZMod n) = a • x := |
| 28 | ZMod.lift_coe n ⟨integerMultipleHom x, hx⟩ a |
| 29 | |
| 30 | variable {ι : Type v} [Fintype ι] (n : ℕ) (v : ι → G) (hv : ∀ i, (n : ℤ) • v i = 0) |
| 31 | |
| 32 | def torsionLabelCombination : (ι → ZMod n) →+ G where |
| 33 | toFun c := ∑ i, torsionCoefficientHom n (v i) (hv i) (c i) |
| 34 | map_zero' := by simp only [Pi.zero_apply, map_zero, Finset.sum_const_zero] |
| 35 | map_add' a b := by simp only [Pi.add_apply, map_add, Finset.sum_add_distrib] |
| 36 | |
| 37 | theorem torsionLabelCombination_intCast (c : ι → ℤ) : |
| 38 | torsionLabelCombination n v hv (fun i => (c i : ZMod n)) = ∑ i, c i • v i := by |
| 39 | change (∑ i, torsionCoefficientHom n (v i) (hv i) (c i : ZMod n)) = _ |
| 40 | apply Finset.sum_congr rfl |
| 41 | intro i _ |
| 42 | exact torsionCoefficientHom_intCast n (v i) (hv i) (c i) |
| 43 | |
| 44 | theorem torsionLabelCombination_surjective |
| 45 | (h : ∀ x : G, ∃ c : ι → ℤ, ∑ i, c i • v i = x) : |
| 46 | Function.Surjective (torsionLabelCombination n v hv) := by |
| 47 | intro x |
| 48 | obtain ⟨c, hc⟩ := h x |
| 49 | exact ⟨fun i => (c i : ZMod n), (torsionLabelCombination_intCast n v hv c).trans hc⟩ |
| 50 | |
| 51 | def torsionLabelEquiv [NeZero n] [Fintype G] |
| 52 | (h : ∀ x : G, ∃ c : ι → ℤ, ∑ i, c i • v i = x) |
| 53 | (hcard : Fintype.card G = n ^ Fintype.card ι) : (ι → ZMod n) ≃+ G := |
| 54 | AddEquiv.ofBijective (torsionLabelCombination n v hv) |
| 55 | ((Fintype.bijective_iff_surjective_and_card _).mpr |
| 56 | ⟨torsionLabelCombination_surjective n v hv h, |
| 57 | (by simpa only [Fintype.card_fun, ZMod.card] using hcard.symm)⟩) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TorsionCoefficientGroupIsomorphism |