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.Localization.BaseChange |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | import Mathlib.Algebra.Category.Ring.Constructions |
| 4 | |
| 5 | /-! # Principal Localization Cartesian -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrincipalLocalizationCartesian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compatible principal localizations form actual Cartesian squares of affine schemes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem principalLocalization_isPullback |
| 18 | {A B P Q : Type u} [CommRing A] [CommRing B] [CommRing P] [CommRing Q] |
| 19 | [Algebra A B] [Algebra A P] [Algebra A Q] [Algebra B Q] [Algebra P Q] |
| 20 | [IsScalarTower A B Q] [IsScalarTower A P Q] |
| 21 | (a : A) [IsLocalization.Away a P] [IsLocalization.Away (algebraMap A B a) Q] : |
| 22 | IsPullback (Spec.map (CommRingCat.ofHom (algebraMap P Q))) |
| 23 | (Spec.map (CommRingCat.ofHom (algebraMap B Q))) |
| 24 | (Spec.map (CommRingCat.ofHom (algebraMap A P))) |
| 25 | (Spec.map (CommRingCat.ofHom (algebraMap A B))) := by |
| 26 | have : IsLocalization (Algebra.algebraMapSubmonoid B (Submonoid.powers a)) Q := by |
| 27 | simpa only [Algebra.algebraMapSubmonoid, Submonoid.map_powers] using |
| 28 | (inferInstanceAs (IsLocalization.Away (algebraMap A B a) Q)) |
| 29 | have : Algebra.IsPushout A B P Q := Algebra.isPushout_of_isLocalization (Submonoid.powers a) P B Q |
| 30 | exact (isPullback_SpecMap_of_isPushout _ _ _ _ (CommRingCat.isPushout_of_isPushout A B P Q)).flip |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrincipalLocalizationCartesian |