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.CategoryTheory.Comma.Over.Basic |
| 2 | import Mathlib.AlgebraicGeometry.Scheme |
| 3 | |
| 4 | /-! # Over Locus Classification -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.OverLocusClassification |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Unique factorization over a fixed base is equivalent to the actual |
| 11 | scheme factorization with its automatically forced structural map. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem over_existsUnique_lift_iff {S : Scheme.{0}} {T Z M : Over S} |
| 16 | (j : Z ⟶ M) (x : T ⟶ M) : |
| 17 | (∃! f : T ⟶ Z, f ≫ j = x) ↔ ∃! f : T.left ⟶ Z.left, f ≫ j.left = x.left := by |
| 18 | have lift (f : T.left ⟶ Z.left) (hf : f ≫ j.left = x.left) : f ≫ Z.hom = T.hom := by |
| 19 | rw [← j.w, ← Category.assoc, hf] |
| 20 | exact x.w |
| 21 | constructor |
| 22 | · rintro ⟨f, hf, hu⟩ |
| 23 | refine ⟨f.left, congrArg Over.Hom.left hf, ?_⟩ |
| 24 | intro g hg |
| 25 | exact congrArg Over.Hom.left (hu (Over.homMk g (lift g hg)) (Over.OverMorphism.ext hg)) |
| 26 | · rintro ⟨f, hf, hu⟩ |
| 27 | refine ⟨Over.homMk f (lift f hf), Over.OverMorphism.ext hf, ?_⟩ |
| 28 | intro g hg |
| 29 | exact Over.OverMorphism.ext (hu g.left (congrArg Over.Hom.left hg)) |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.OverLocusClassification |