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.AbelianScheme.IsogenyQuotient.ElementaryModules |
| 2 | import Mathlib.GroupTheory.SpecificGroups.Cyclic |
| 3 | |
| 4 | /-! # Elementary Uniqueness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.ElementaryUniqueness.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The abstract additive group determines the dominant rank-three q-power |
| 12 | exponents. Counts of q^k-torsion recover the sums of min(a_i,k), so a |
| 13 | prescribed subgroup isomorphism type determines the Smith lattice type. |
| 14 | -/ |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | def killedPointEquiv {G H : Type*} [AddCommGroup G] [AddCommGroup H] |
| 19 | (e : G ≃+ H) (n : ℕ) : {x : G // n • x = 0} ≃ {y : H // n • y = 0} := |
| 20 | e.toEquiv.subtypeEquiv (fun x => by |
| 21 | change n • x = 0 ↔ n • e x = 0 |
| 22 | rw [← map_nsmul e, ← map_zero e, e.injective.eq_iff]) |
| 23 | |
| 24 | theorem card_zmod_pow_killed (q a k : ℕ) [NeZero q] : |
| 25 | Nat.card {x : ZMod (q ^ a) // (q ^ k) • x = 0} = q ^ min a k := by |
| 26 | change Nat.card (nsmulAddMonoidHom (q ^ k) : ZMod (q ^ a) →+ ZMod (q ^ a)).ker = _ |
| 27 | rw [IsAddCyclic.card_nsmulAddMonoidHom_ker, Nat.card_eq_fintype_card, ZMod.card] |
| 28 | rcases le_total a k with hak | hka |
| 29 | · rw [min_eq_left hak, Nat.gcd_eq_left (pow_dvd_pow q hak)] |
| 30 | · rw [min_eq_right hka, Nat.gcd_eq_right (pow_dvd_pow q hka)] |
| 31 | |
| 32 | def elementaryKilledPiEquiv {d : ℕ} (q k : ℕ) (a : Fin d → ℕ) : |
| 33 | {x : (∀ i, ZMod (q ^ a i)) // (q ^ k) • x = 0} ≃ |
| 34 | (∀ i, {x : ZMod (q ^ a i) // (q ^ k) • x = 0}) where |
| 35 | toFun x i := ⟨x.val i, congrFun x.property i⟩ |
| 36 | invFun x := ⟨fun i => (x i).val, funext (fun i => (x i).property)⟩ |
| 37 | left_inv _ := rfl |
| 38 | right_inv _ := rfl |
| 39 | |
| 40 | theorem card_elementary_killed {d : ℕ} (q k : ℕ) [NeZero q] (a : Fin d → ℕ) : |
| 41 | Nat.card {x : (∀ i, ZMod (q ^ a i)) // (q ^ k) • x = 0} = |
| 42 | q ^ (∑ i, min (a i) k) := by |
| 43 | rw [Nat.card_congr (elementaryKilledPiEquiv q k a), Nat.card_pi] |
| 44 | simp_rw [card_zmod_pow_killed] |
| 45 | simp [Finset.prod_pow_eq_pow_sum] |
| 46 | |
| 47 | theorem elementary_min_sums_eq {d : ℕ} (q : ℕ) (hq : q.Prime) |
| 48 | (a b : Fin d → ℕ) (e : (∀ i, ZMod (q ^ a i)) ≃+ (∀ i, ZMod (q ^ b i))) (k : ℕ) : |
| 49 | (∑ i, min (a i) k) = ∑ i, min (b i) k := by |
| 50 | let : NeZero q := ⟨hq.ne_zero⟩ |
| 51 | have he := Nat.card_congr (killedPointEquiv e (q ^ k)) |
| 52 | rw [card_elementary_killed, card_elementary_killed] at he |
| 53 | exact (Nat.pow_right_injective hq.two_le) he |
| 54 | |
| 55 | theorem rankThree_eq_of_min_sums |
| 56 | (a b : Fin 3 → ℕ) (ha : Antitone a) (hb : Antitone b) |
| 57 | (hmin : ∀ k, (∑ i, min (a i) k) = ∑ i, min (b i) k) : a = b := by |
| 58 | have ha10 : a 1 ≤ a 0 := ha (by decide) |
| 59 | have ha21 : a 2 ≤ a 1 := ha (by decide) |
| 60 | have hb10 : b 1 ≤ b 0 := hb (by decide) |
| 61 | have hb21 : b 2 ≤ b 1 := hb (by decide) |
| 62 | have hmin' (k : ℕ) : min (a 0) k + min (a 1) k + min (a 2) k = |
| 63 | min (b 0) k + min (b 1) k + min (b 2) k := by |
| 64 | simpa [Fin.sum_univ_succ, add_assoc] using hmin k |
| 65 | have hzero : a 0 = b 0 := by |
| 66 | have h1 := hmin' (a 0) |
| 67 | have h2 := hmin' (a 0 + 1) |
| 68 | have h3 := hmin' (b 0) |
| 69 | have h4 := hmin' (b 0 + 1) |
| 70 | omega |
| 71 | have hone : a 1 = b 1 := by |
| 72 | have h1 := hmin' (a 1) |
| 73 | have h2 := hmin' (a 1 + 1) |
| 74 | have h3 := hmin' (b 1) |
| 75 | have h4 := hmin' (b 1 + 1) |
| 76 | omega |
| 77 | have htwo : a 2 = b 2 := by |
| 78 | have hh := hmin' (a 2 + b 2) |
| 79 | omega |
| 80 | funext i |
| 81 | fin_cases i |
| 82 | · exact hzero |
| 83 | · exact hone |
| 84 | · exact htwo |
| 85 | |
| 86 | /-- Dominant rank-three elementary q-power groups have unique exponents, |
| 87 | including zero exponents. -/ |
| 88 | theorem rankThree_elementary_exponents_unique |
| 89 | (q : ℕ) (hq : q.Prime) (a b : Fin 3 → ℕ) (ha : Antitone a) (hb : Antitone b) |
| 90 | (e : (∀ i, ZMod (q ^ a i)) ≃+ (∀ i, ZMod (q ^ b i))) : a = b := |
| 91 | rankThree_eq_of_min_sums a b ha hb (elementary_min_sums_eq q hq a b e) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.ElementaryUniqueness.Construction |