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.Data.Set.Countable |
| 2 | import Mathlib.Logic.Function.Basic |
| 3 | |
| 4 | /-! # Countable Encodings -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.CountableEncodings.Abelian |
| 7 | |
| 8 | /-! A countable code space gives a countable image whenever equal codes |
| 9 | force equal outputs; the source itself may be uncountable. -/ |
| 10 | |
| 11 | theorem countable_range_of_countable_encoding {I C X : Type*} [Countable C] |
| 12 | (code : I → C) (f : I → X) |
| 13 | (h : ∀ i j, code i = code j → f i = f j) : (Set.range f).Countable := by |
| 14 | classical |
| 15 | rcases isEmpty_or_nonempty I with hI | hI |
| 16 | · exact Set.countable_empty.mono (by rintro _ ⟨i, _⟩; exact isEmptyElim i) |
| 17 | · let i₀ : I := Classical.choice hI |
| 18 | let out := Function.extend code f (fun _ => f i₀) |
| 19 | have hf : f.FactorsThrough code := fun {i j} hij => h i j hij |
| 20 | apply (Set.countable_range out).mono |
| 21 | rintro _ ⟨i, rfl⟩ |
| 22 | exact ⟨code i, hf.extend_apply (fun _ => f i₀) i⟩ |
| 23 | |
| 24 | end OAI.ArithmeticGeometry.Descent.CMVariety.CountableEncodings.Abelian |