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.RingTheory.Flat.EquationalCriterion |
| 2 | |
| 3 | /-! # Flat Union -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FlatUnion |
| 6 | |
| 7 | /-! # Flatness from finite families contained in embedded flat modules -/ |
| 8 | |
| 9 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 10 | {ι : Type*} (N : ι → Type*) [∀ i, AddCommGroup (N i)] [∀ i, Module R (N i)] |
| 11 | (f : ∀ i, N i →ₗ[R] M) |
| 12 | |
| 13 | theorem flat [∀ i, Module.Flat R (N i)] |
| 14 | (hf : ∀ i, Function.Injective (f i)) |
| 15 | (hlift : ∀ {n : ℕ} (x : Fin n → M), ∃ i, ∃ y : Fin n → N i, ∀ j, f i (y j) = x j) : |
| 16 | Module.Flat R M := by |
| 17 | classical |
| 18 | apply Module.Flat.of_forall_isTrivialRelation |
| 19 | intro n a x hax |
| 20 | obtain ⟨i, y, hy⟩ := hlift x |
| 21 | have hrel : ∑ j, a j • y j = 0 := by |
| 22 | apply hf i |
| 23 | simpa only [map_sum, map_smul, hy, map_zero] using hax |
| 24 | obtain ⟨k, b, z, hz, hab⟩ := Module.Flat.isTrivialRelation_of_sum_smul_eq_zero hrel |
| 25 | refine ⟨k, b, fun j => f i (z j), ?_, hab⟩ |
| 26 | intro j |
| 27 | have he := congrArg (f i) (hz j) |
| 28 | simpa only [hy, map_sum, map_smul] using he |
| 29 | |
| 30 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FlatUnion |