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.Category.Ring.FilteredColimits |
| 2 | import Mathlib.Algebra.Category.Ring.Colimits |
| 3 | import Mathlib.Data.Finset.Lattice.Fold |
| 4 | |
| 5 | /-! # Ring Sequence Colimit Elements -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.RingSequenceColimitElements |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Finite representatives and equality in a ring sequence colimit -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe v |
| 16 | |
| 17 | local instance forget_preservesSequences : |
| 18 | PreservesFilteredColimitsOfSize.{0, 0} (forget CommRingCat.{v}) := |
| 19 | preservesSmallestFilteredColimits_of_preservesFilteredColimits (forget CommRingCat.{v}) |
| 20 | |
| 21 | variable (F : ℕ ⥤ CommRingCat.{v}) [HasColimit F] |
| 22 | |
| 23 | theorem transition (i j : ℕ) (h : i ≤ j) (x : F.obj i) : |
| 24 | (colimit.ι F j).hom ((F.map (homOfLE h)).hom x) = (colimit.ι F i).hom x := |
| 25 | congrArg (fun f : F.obj i ⟶ colimit F => f.hom x) (colimit.w F (homOfLE h)) |
| 26 | |
| 27 | theorem exists_rep (x : ↑(colimit F)) : ∃ i, ∃ y : F.obj i, (colimit.ι F i).hom y = x := |
| 28 | Types.jointly_surjective_of_isColimit |
| 29 | (isColimitOfPreserves (forget CommRingCat) (colimit.isColimit F)) x |
| 30 | |
| 31 | theorem exists_reps {ι : Type*} [Fintype ι] (x : ι → ↑(colimit F)) : |
| 32 | ∃ i, ∃ y : ι → F.obj i, ∀ a, (colimit.ι F i).hom (y a) = x a := by |
| 33 | classical |
| 34 | choose n y hy using fun a => exists_rep F (x a) |
| 35 | let N := Finset.univ.sup n |
| 36 | refine ⟨N, fun a => (F.map (homOfLE (Finset.le_sup (Finset.mem_univ a)))).hom (y a), ?_⟩ |
| 37 | intro a |
| 38 | exact (transition F (n a) N _ (y a)).trans (hy a) |
| 39 | |
| 40 | theorem eq_iff (i : ℕ) (x y : F.obj i) : |
| 41 | (colimit.ι F i).hom x = (colimit.ι F i).hom y ↔ |
| 42 | ∃ j, ∃ h : i ≤ j, (F.map (homOfLE h)).hom x = (F.map (homOfLE h)).hom y := by |
| 43 | have he := Types.FilteredColimit.isColimit_eq_iff' |
| 44 | (isColimitOfPreserves (forget CommRingCat) (colimit.isColimit F)) x y |
| 45 | constructor |
| 46 | · intro h |
| 47 | obtain ⟨j, f, hf⟩ := he.mp h |
| 48 | exact ⟨j, leOfHom f, hf⟩ |
| 49 | · rintro ⟨j, h, hj⟩ |
| 50 | exact he.mpr ⟨j, homOfLE h, hj⟩ |
| 51 | |
| 52 | theorem inclusion_injective |
| 53 | (hf : ∀ i j (h : i ≤ j), Function.Injective (F.map (homOfLE h)).hom) (i : ℕ) : |
| 54 | Function.Injective (colimit.ι F i).hom := by |
| 55 | intro x y h |
| 56 | obtain ⟨j, hij, he⟩ := (eq_iff F i x y).mp h |
| 57 | exact hf i j hij he |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.RingSequenceColimitElements |