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.Group.Subgroup.Pointwise |
| 2 | |
| 3 | /-! # Set Powers -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Albanese.Construction.SetPowers |
| 6 | |
| 7 | open scoped Pointwise |
| 8 | |
| 9 | variable {G : Type*} [Group G] |
| 10 | |
| 11 | /-- Once consecutive powers of a set agree, all later powers agree. -/ |
| 12 | theorem setPow_stable_add (s : Set G) (n : ℕ) (hn : s ^ n = s ^ (n + 1)) |
| 13 | (k : ℕ) : s ^ (n + k) = s ^ n := by |
| 14 | induction k with |
| 15 | | zero => simp |
| 16 | | succ k ih => |
| 17 | rw [Nat.add_succ, pow_succ, ih] |
| 18 | simpa only [pow_succ] using hn.symm |
| 19 | |
| 20 | /-- Powers of an inverse-closed set remain inverse-closed. -/ |
| 21 | theorem inv_mem_setPow (s : Set G) (hs : ∀ x ∈ s, x⁻¹ ∈ s) |
| 22 | (n : ℕ) {x : G} (hx : x ∈ s ^ n) : x⁻¹ ∈ s ^ n := by |
| 23 | induction n generalizing x with |
| 24 | | zero => simpa using hx |
| 25 | | succ n ih => |
| 26 | rw [pow_succ] at hx |
| 27 | obtain ⟨a, ha, b, hb, rfl⟩ := hx |
| 28 | rw [mul_inv_rev, pow_succ'] |
| 29 | exact Set.mul_mem_mul (hs b hb) (ih ha) |
| 30 | |
| 31 | /-- A stabilized power of a symmetric set containing the identity is a subgroup. -/ |
| 32 | def stablePowerSubgroup (s : Set G) (h1 : 1 ∈ s) |
| 33 | (hinv : ∀ x ∈ s, x⁻¹ ∈ s) (n : ℕ) (hn : s ^ n = s ^ (n + 1)) : |
| 34 | Subgroup G where |
| 35 | carrier := s ^ n |
| 36 | one_mem' := Set.one_mem_pow h1 |
| 37 | mul_mem' {x y} hx hy := by |
| 38 | have hxy := Set.mul_mem_mul hx hy |
| 39 | rwa [← pow_add, setPow_stable_add s n hn n] at hxy |
| 40 | inv_mem' {x} hx := inv_mem_setPow s hinv n hx |
| 41 | |
| 42 | /-- Stabilization constructs exactly the subgroup generated by the original set. -/ |
| 43 | theorem stablePowerSubgroup_eq_closure (s : Set G) (h1 : 1 ∈ s) |
| 44 | (hinv : ∀ x ∈ s, x⁻¹ ∈ s) (n : ℕ) (hn : s ^ n = s ^ (n + 1)) : |
| 45 | stablePowerSubgroup s h1 hinv n hn = Subgroup.closure s := by |
| 46 | apply le_antisymm |
| 47 | · intro x hx |
| 48 | exact ((Subgroup.closure_le _).mp (Subgroup.closure_pow_le (s := s) (n := n))) hx |
| 49 | · apply (Subgroup.closure_le _).mpr |
| 50 | intro x hx |
| 51 | change x ∈ s ^ n |
| 52 | rw [hn, pow_succ] |
| 53 | simpa only [one_mul] using Set.mul_mem_mul (Set.one_mem_pow (n := n) h1) hx |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Albanese.Construction.SetPowers |