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 | import Mathlib.RingTheory.RingHom.Flat |
| 3 | |
| 4 | /-! # Flat Ring Union -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FlatRingUnion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Flat ring maps from simultaneous finite lifts into flat ring maps -/ |
| 11 | |
| 12 | variable {B C : Type*} [CommRing B] [CommRing C] (f : B →+* C) |
| 13 | {ι : Type*} (B' C' : ι → Type*) [∀ i, CommRing (B' i)] [∀ i, CommRing (C' i)] |
| 14 | (a : ∀ i, B' i →+* B) (b : ∀ i, C' i →+* C) (g : ∀ i, B' i →+* C' i) |
| 15 | |
| 16 | theorem flat (hg : ∀ i, (g i).Flat) |
| 17 | (hcomm : ∀ i r, b i (g i r) = f (a i r)) |
| 18 | (hb : ∀ i, Function.Injective (b i)) |
| 19 | (hlift : ∀ {n : ℕ} (r : Fin n → B) (x : Fin n → C), |
| 20 | ∃ i, ∃ r' : Fin n → B' i, ∃ x' : Fin n → C' i, |
| 21 | (∀ j, a i (r' j) = r j) ∧ (∀ j, b i (x' j) = x j)) : f.Flat := by |
| 22 | classical |
| 23 | let := f.toAlgebra |
| 24 | change Module.Flat B C |
| 25 | apply Module.Flat.of_forall_isTrivialRelation |
| 26 | intro n r x hrx |
| 27 | change ∑ j, f (r j) * x j = 0 at hrx |
| 28 | obtain ⟨i, r', x', hr, hx⟩ := hlift r x |
| 29 | let := (g i).toAlgebra |
| 30 | have : Module.Flat (B' i) (C' i) := hg i |
| 31 | have hrel : ∑ j, r' j • x' j = 0 := by |
| 32 | apply hb i |
| 33 | change b i (∑ j, g i (r' j) * x' j) = b i 0 |
| 34 | simpa only [map_sum, map_mul, hcomm, hr, hx, map_zero] using hrx |
| 35 | obtain ⟨k, d, y, hy, hd⟩ := Module.Flat.isTrivialRelation_of_sum_smul_eq_zero hrel |
| 36 | refine ⟨k, fun j l => a i (d j l), fun l => b i (y l), ?_, ?_⟩ |
| 37 | · intro j |
| 38 | change x j = ∑ l, f (a i (d j l)) * b i (y l) |
| 39 | have he := congrArg (b i) (hy j) |
| 40 | change b i (x' j) = b i (∑ l, g i (d j l) * y l) at he |
| 41 | simpa only [hx, map_sum, map_mul, hcomm] using he |
| 42 | · intro l |
| 43 | have he := congrArg (a i) (hd l) |
| 44 | simpa only [map_sum, map_mul, hr, map_zero] using he |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FlatRingUnion |