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.Algebra.Ring.Subring.Basic |
| 2 | import Mathlib.Algebra.Order.BigOperators.Group.Finset |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! # Localized Coefficient Denominators -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocalizedCoefficientDenominators |
| 8 | |
| 9 | /-! Polynomial combinations of one inverted element and integral |
| 10 | coefficients have denominators that are powers of that same element. |
| 11 | A finite family admits one common such denominator. -/ |
| 12 | |
| 13 | variable {E : Type*} [Field E] |
| 14 | |
| 15 | theorem exists_power_mul_mem_of_localized_closure |
| 16 | (S : Subring E) (b z : E) (hb : b ∈ S) (hb0 : b ≠ 0) (hz : z ∈ S) |
| 17 | {x : E} (hx : x ∈ Subring.closure {b⁻¹, z}) : |
| 18 | ∃ n : ℕ, b ^ n * x ∈ S := by |
| 19 | induction hx using Subring.closure_induction with |
| 20 | | mem x hx => |
| 21 | rcases Set.mem_insert_iff.mp hx with rfl | hx |
| 22 | · exact ⟨1, by simp [hb0]⟩ |
| 23 | · obtain rfl := Set.mem_singleton_iff.mp hx |
| 24 | exact ⟨0, by simpa using hz⟩ |
| 25 | | zero => exact ⟨0, by simp⟩ |
| 26 | | one => exact ⟨0, by simp⟩ |
| 27 | | add x y _ _ hx hy => |
| 28 | obtain ⟨n, hn⟩ := hx |
| 29 | obtain ⟨m, hm⟩ := hy |
| 30 | refine ⟨n + m, ?_⟩ |
| 31 | have he : b ^ (n + m) * (x + y) = |
| 32 | b ^ m * (b ^ n * x) + b ^ n * (b ^ m * y) := by |
| 33 | rw [pow_add] |
| 34 | ring |
| 35 | rw [he] |
| 36 | exact S.add_mem (S.mul_mem (S.pow_mem hb m) hn) |
| 37 | (S.mul_mem (S.pow_mem hb n) hm) |
| 38 | | neg x _ hx => |
| 39 | obtain ⟨n, hn⟩ := hx |
| 40 | exact ⟨n, by simpa only [mul_neg] using S.neg_mem hn⟩ |
| 41 | | mul x y _ _ hx hy => |
| 42 | obtain ⟨n, hn⟩ := hx |
| 43 | obtain ⟨m, hm⟩ := hy |
| 44 | refine ⟨n + m, ?_⟩ |
| 45 | have he : b ^ (n + m) * (x * y) = (b ^ n * x) * (b ^ m * y) := by |
| 46 | rw [pow_add] |
| 47 | ring |
| 48 | rw [he] |
| 49 | exact S.mul_mem hn hm |
| 50 | |
| 51 | theorem exists_common_power_mul_mem_of_localized_closure |
| 52 | (S : Subring E) (b z : E) (hb : b ∈ S) (hb0 : b ≠ 0) (hz : z ∈ S) |
| 53 | {I : Type*} [Fintype I] (x : I → E) |
| 54 | (hx : ∀ i, x i ∈ Subring.closure {b⁻¹, z}) : |
| 55 | ∃ n : ℕ, ∀ i, b ^ n * x i ∈ S := by |
| 56 | classical |
| 57 | choose n hn using fun i => exists_power_mul_mem_of_localized_closure S b z hb hb0 hz (hx i) |
| 58 | refine ⟨∑ i, n i, ?_⟩ |
| 59 | intro i |
| 60 | have hle : n i ≤ ∑ j, n j := Finset.single_le_sum (fun j _ => Nat.zero_le (n j)) (Finset.mem_univ i) |
| 61 | have he : b ^ (∑ j, n j) * x i = |
| 62 | b ^ ((∑ j, n j) - n i) * (b ^ n i * x i) := by |
| 63 | rw [← mul_assoc, ← pow_add, Nat.sub_add_cancel hle] |
| 64 | rw [he] |
| 65 | exact S.mul_mem (S.pow_mem hb _) (hn i) |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocalizedCoefficientDenominators |