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.RepresentationTheory.Hecke.BlockCharacters |
| 2 | |
| 3 | /-! # Split Residue Characters -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.SplitResidueCharacters.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Every actual residue character selects one of the complete split |
| 10 | coefficient components. No alignment of arithmetic and q-adic labels is assumed. -/ |
| 11 | |
| 12 | variable {k E K : Type} [Field k] [Field E] [NumberField E] [Algebra ℚ E] |
| 13 | [Field K] [NumberField K] {κ : K →+* ℂ} {q : ℕ} [Fact q.Prime] [CharP k q] |
| 14 | (j : PELModuli.CMPoints.Arithmetic.QadicChoice K κ q) (iota : E →+* K) (hsplit : j.HasSplitCoordinates iota) |
| 15 | (χ : NumberField.RingOfIntegers E →+* k) |
| 16 | |
| 17 | include hsplit in |
| 18 | theorem residueCharacter_eq_of_coordinates (a b : NumberField.RingOfIntegers E) |
| 19 | (h : j.residueCoordinates iota 1 a = j.residueCoordinates iota 1 b) : χ a = χ b := by |
| 20 | have hk : a - b ∈ Ideal.span ({(q ^ 1 : NumberField.RingOfIntegers E)} : |
| 21 | Set (NumberField.RingOfIntegers E)) := by |
| 22 | rw [← (hsplit 1).2] |
| 23 | change j.residueCoordinates iota 1 (a - b) = 0 |
| 24 | rw [map_sub, h, sub_self] |
| 25 | obtain ⟨c, hc⟩ := Ideal.mem_span_singleton.mp hk |
| 26 | apply sub_eq_zero.mp |
| 27 | rw [← map_sub, hc, map_mul, map_pow, map_natCast, CharP.cast_eq_zero, zero_pow one_ne_zero, |
| 28 | zero_mul] |
| 29 | |
| 30 | include hsplit in |
| 31 | theorem exists_split_residueCharacter : |
| 32 | ∃ τ : Gal(E/ℚ), χ = RepresentationTheory.Hecke.BlockCharacters.OrdinaryCharacterIntrinsic.blockLieCharacter j iota τ := by |
| 33 | classical |
| 34 | have hs : (∑ τ : Gal(E/ℚ), χ (j.projector iota hsplit 1 τ)) = 1 := by |
| 35 | rw [← map_sum] |
| 36 | apply (residueCharacter_eq_of_coordinates j iota hsplit χ _ 1 ?_).trans (map_one χ) |
| 37 | simp only [map_sum, j.projector_coordinates, map_one] |
| 38 | ext υ |
| 39 | simp [Finset.sum_apply, Pi.single_apply] |
| 40 | have hn : ∃ τ : Gal(E/ℚ), χ (j.projector iota hsplit 1 τ) ≠ 0 := by |
| 41 | by_contra! h |
| 42 | simp only [h, Finset.sum_const_zero] at hs |
| 43 | exact zero_ne_one hs |
| 44 | obtain ⟨τ, hτ⟩ := hn |
| 45 | refine ⟨τ, ?_⟩ |
| 46 | ext a |
| 47 | let e := j.projector iota hsplit 1 τ |
| 48 | let n := (j.residueCharacter iota τ 1 a).val |
| 49 | have hc : j.residueCoordinates iota 1 (a * e) = |
| 50 | j.residueCoordinates iota 1 ((n : NumberField.RingOfIntegers E) * e) := by |
| 51 | rw [map_mul, map_mul, map_natCast, j.projector_coordinates] |
| 52 | ext υ |
| 53 | change j.residueCharacter iota υ 1 a * (Pi.single τ 1 : Gal(E/ℚ) → ZMod (q ^ 1)) υ = |
| 54 | (n : ZMod (q ^ 1)) * (Pi.single τ 1 : Gal(E/ℚ) → ZMod (q ^ 1)) υ |
| 55 | by_cases hv : υ = τ |
| 56 | · subst υ |
| 57 | simp only [Pi.single_eq_same, mul_one] |
| 58 | exact (ZMod.natCast_zmod_val (j.residueCharacter iota τ 1 a)).symm |
| 59 | · simp [hv] |
| 60 | have he := residueCharacter_eq_of_coordinates j iota hsplit χ _ _ hc |
| 61 | rw [map_mul, map_mul, map_natCast] at he |
| 62 | rw [RepresentationTheory.Hecke.BlockCharacters.OrdinaryCharacterIntrinsic.blockLieCharacter_nat] |
| 63 | exact mul_right_cancel₀ hτ he |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.SplitResidueCharacters.Construction |