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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.RingPullbackMapDetection |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.FunctionsFromAffineFactorization |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PointedFamilyFiberConnectedness |
| 4 | |
| 5 | /-! # Functions Local Ring Criterion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.FunctionsLocalRingCriterion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A section and global-function constancy after all local-ring base changes imply global-function constancy over an arbitrary base scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem affineMap_eq_of_localRingConstants {X S Y : Scheme.{u}} [IsAffine Y] |
| 18 | (p : X ⟶ S) (x : S ⟶ X) (hx : x ≫ p = 𝟙 _) |
| 19 | (h : ∀ (A : Type u) [CommRing A] [IsLocalRing A] (b : Spec (.of A) ⟶ S), |
| 20 | IsIso (pullback.snd p b).appTop) (f : X ⟶ Y) : f = p ≫ x ≫ f := by |
| 21 | apply Local.RingPullbackMapDetection.schemeMap_eq_of_localRingPullbacks p |
| 22 | intro A _ _ b |
| 23 | have := h A b |
| 24 | let σ := PointedFamilyFiberConnectedness.schemeSectionBaseChange p x hx b |
| 25 | have hσ : σ ≫ pullback.snd p b = 𝟙 _ := PointedFamilyFiberConnectedness.schemeSectionBaseChange_section p x hx b |
| 26 | have e := FunctionsMapRigidity.affineMap_eq_of_globalFunctions_iso (pullback.snd p b) σ hσ (pullback.fst p b ≫ f) |
| 27 | have hfst : σ ≫ pullback.fst p b = b ≫ x := pullback.lift_fst _ _ _ |
| 28 | rw [← Category.assoc σ, hfst, Category.assoc b, ← pullback.condition_assoc] at e |
| 29 | exact e |
| 30 | |
| 31 | theorem globalFunctions_isIso_of_localRingConstants {X S : Scheme.{u}} |
| 32 | (p : X ⟶ S) (x : S ⟶ X) (hx : x ≫ p = 𝟙 _) |
| 33 | (h : ∀ (A : Type u) [CommRing A] [IsLocalRing A] (b : Spec (.of A) ⟶ S), |
| 34 | IsIso (pullback.snd p b).appTop) : IsIso p.appTop := |
| 35 | FunctionsFromAffineFactorization.globalFunctions_isIso_of_affinization_factorization p x hx |
| 36 | (affineMap_eq_of_localRingConstants p x hx h X.toSpecΓ) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.FunctionsLocalRingCriterion |