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.BigOperators.Group.Finset.Basic |
| 2 | import Mathlib.Data.Multiset.Bind |
| 3 | |
| 4 | /-! # Multiset Enumeration -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.MultisetEnumeration |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Reindex the original parameter multiset by an exhaustive subtype |
| 11 | enumeration. Equal target values remain separate entries throughout. -/ |
| 12 | |
| 13 | variable {A B X : Type*} [Fintype A] [Fintype B] |
| 14 | |
| 15 | theorem univ_map_eq_sum_singletons (f : A → X) : |
| 16 | Finset.univ.val.map f = ∑ a, ({f a} : Multiset X) := by |
| 17 | simp only [Finset.sum_eq_multiset_sum] |
| 18 | have h := Multiset.sum_map_singleton (Finset.univ.val.map f) |
| 19 | simpa only [Multiset.map_map, Function.comp_def] using h.symm |
| 20 | |
| 21 | theorem parameter_multiset_subtype (P : B → Prop) [DecidablePred P] |
| 22 | (e : A ≃ {b // P b}) (f : A → X) : |
| 23 | Finset.univ.val.map f = |
| 24 | ∑ b, if h : P b then ({f (e.symm ⟨b, h⟩)} : Multiset X) else 0 := by |
| 25 | rw [univ_map_eq_sum_singletons] |
| 26 | let j : A → B := fun a => (e a).val |
| 27 | have hj : Function.Injective j := Subtype.val_injective.comp e.injective |
| 28 | apply Fintype.sum_of_injective j hj |
| 29 | · intro b hb |
| 30 | have hn : ¬P b := by |
| 31 | intro h |
| 32 | apply hb |
| 33 | exact ⟨e.symm ⟨b, h⟩, congrArg Subtype.val (e.apply_symm_apply ⟨b, h⟩)⟩ |
| 34 | exact dite_eq_right hn |
| 35 | · intro a |
| 36 | dsimp only [j] |
| 37 | rw [dite_eq_left (e a).property, e.symm_apply_apply] |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Parameter.MultisetEnumeration |