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.AlgebraicGeometry.PullbackCarrier |
| 2 | import Mathlib.CategoryTheory.Comma.Over.Basic |
| 3 | |
| 4 | /-! # Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.Sections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Sections of a base-changed object classify morphisms from the base into the original object. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] {S T X Y : C} |
| 17 | {p : X ⟶ S} {q : Y ⟶ T} {g : Y ⟶ X} {f : T ⟶ S} |
| 18 | |
| 19 | /-- The section-to-morphism equivalence supplied by a Cartesian square. -/ |
| 20 | def cartesianSectionHomEquiv (h : IsPullback g q p f) : |
| 21 | (Over.mk (𝟙 T) ⟶ Over.mk q) ≃ (Over.mk f ⟶ Over.mk p) where |
| 22 | toFun u := Over.homMk (u.left ≫ g) (by |
| 23 | change (u.left ≫ g) ≫ p = f |
| 24 | have hu : u.left ≫ q = 𝟙 T := u.w |
| 25 | rw [Category.assoc, h.w, ← Category.assoc, hu] |
| 26 | exact Category.id_comp f) |
| 27 | invFun u := Over.homMk (h.lift u.left (𝟙 T) (by |
| 28 | have hu : u.left ≫ p = f := u.w |
| 29 | exact hu.trans (Category.id_comp f).symm)) |
| 30 | (h.lift_snd _ _ _) |
| 31 | left_inv u := by |
| 32 | apply Over.OverMorphism.ext |
| 33 | apply h.hom_ext |
| 34 | · exact h.lift_fst _ _ _ |
| 35 | · exact (h.lift_snd _ _ _).trans u.w.symm |
| 36 | right_inv u := Over.OverMorphism.ext (h.lift_fst _ _ _) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.Sections |