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.AbelianModuli.HilbertConstruction.PrimeOrderCongruenceInflation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoprimeFiniteOrderCongruence |
| 3 | |
| 4 | /-! # Prime Order Prime Congruence -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrimeOrderPrimeCongruence |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every prime-order element satisfying a sufficiently deep prime congruence satisfies all powers of that prime, including when the two primes agree. -/ |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {R : Type u} [Ring R] [IsAddTorsionFree R] |
| 15 | |
| 16 | theorem primeOrder_primeCongruence_allPowers (u : R) (p q r : ℕ) (hp : p.Prime) (hq : q.Prime) |
| 17 | (hr : 0 < r) (hsize : r + 2 ≤ r * q) (hu : u ^ p = 1) |
| 18 | (h : ∃ x : R, (q ^ r) • x = u - 1) (k : ℕ) : |
| 19 | ∃ y : R, (q ^ k) • y = u - 1 := by |
| 20 | by_cases he : p = q |
| 21 | · subst p |
| 22 | exact PrimeOrderCongruenceInflation.primeOrder_congruence_allPowers u q r hq hr hsize hu h k |
| 23 | · have hcop : p.Coprime q := (Nat.coprime_primes hp hq).mpr he |
| 24 | have hd : q ∣ q ^ r := by |
| 25 | simpa only [pow_one] using pow_dvd_pow q (Nat.succ_le_of_lt hr) |
| 26 | obtain ⟨x, hx⟩ := h |
| 27 | have hqcong : ∃ y : R, q • y = u - 1 := by |
| 28 | refine ⟨(q ^ r / q) • x, ?_⟩ |
| 29 | rw [← mul_smul, Nat.mul_div_cancel' hd] |
| 30 | exact hx |
| 31 | exact CoprimeFiniteOrderCongruence.coprime_finiteOrder_congruence_allPowers u q p hq.ne_zero hcop hu hqcong k |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrimeOrderPrimeCongruence |