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.CentralAction.Arithmetic |
| 2 | import Mathlib.RingTheory.Coprime.Lemmas |
| 3 | |
| 4 | /-! # Marking -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Marking.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual finite ring of scalar full-level labels, and the elementary |
| 11 | reason that congruence to one fixes all N-torsion in every O_E-module. -/ |
| 12 | |
| 13 | open _root_.NumberField |
| 14 | |
| 15 | variable (E : Type*) [Field E] [NumberField E] |
| 16 | |
| 17 | abbrev LevelRing (N : ℕ) := 𝓞 E ⧸ Ideal.span ({(N : 𝓞 E)} : Set (𝓞 E)) |
| 18 | |
| 19 | def levelReduction (N : ℕ) : 𝓞 E →+* LevelRing E N := Ideal.Quotient.mk _ |
| 20 | |
| 21 | theorem finite_level_ring (N : ℕ) (hN : 0 < N) : Finite (LevelRing E N) := by |
| 22 | have hN0 : (N : 𝓞 E) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.ne_zero_of_lt hN) |
| 23 | exact Ring.HasFiniteQuotients.finiteQuotient |
| 24 | (I := Ideal.span ({(N : 𝓞 E)} : Set (𝓞 E))) |
| 25 | (mt Ideal.span_singleton_eq_bot.mp hN0) |
| 26 | |
| 27 | omit [NumberField E] in |
| 28 | theorem level_natCast_zero (N : ℕ) : (N : LevelRing E N) = 0 := by |
| 29 | change levelReduction E N (N : 𝓞 E) = 0 |
| 30 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 31 | exact Ideal.subset_span (Set.mem_singleton _) |
| 32 | |
| 33 | omit [NumberField E] in |
| 34 | theorem level_prime_unit (N q : ℕ) (h : Nat.Coprime q N) : |
| 35 | IsUnit (levelReduction E N (q : 𝓞 E)) := by |
| 36 | have hc := h.isCoprime.map (Int.castRingHom (LevelRing E N)) |
| 37 | simp only [map_natCast, level_natCast_zero, isCoprime_zero_right] at hc |
| 38 | exact hc |
| 39 | |
| 40 | omit [NumberField E] in |
| 41 | theorem level_eq_one_iff (N : ℕ) (b : 𝓞 E) : |
| 42 | levelReduction E N b = 1 ↔ b - 1 ∈ Ideal.span ({(N : 𝓞 E)} : Set (𝓞 E)) := by |
| 43 | rw [← Ideal.Quotient.eq_zero_iff_mem] |
| 44 | change levelReduction E N b = 1 ↔ levelReduction E N (b - 1) = 0 |
| 45 | rw [map_sub, map_one, sub_eq_zero] |
| 46 | |
| 47 | omit [NumberField E] in |
| 48 | theorem congruent_scalar_fixes_torsion |
| 49 | {M : Type*} [AddCommGroup M] [Module (𝓞 E) M] |
| 50 | (N : ℕ) (b : 𝓞 E) (hlevel : levelReduction E N b = 1) |
| 51 | (x : M) (hx : N • x = 0) : b • x = x := by |
| 52 | obtain ⟨r, hr⟩ := Ideal.mem_span_singleton.mp ((level_eq_one_iff E N b).mp hlevel) |
| 53 | have hb : b = 1 + (N : 𝓞 E) * r := by |
| 54 | rw [← hr] |
| 55 | abel |
| 56 | rw [hb, add_smul, one_smul, mul_comm (N : 𝓞 E), mul_smul, |
| 57 | Nat.cast_smul_eq_nsmul, hx, smul_zero, add_zero] |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Marking.Construction |