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.ResidueField |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | import Mathlib.RingTheory.Flat.Localization |
| 4 | |
| 5 | /-! # Fiber Scalar -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.FiberScalar |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The scalar map of an actual scheme fiber is evaluation through the |
| 12 | local ring, and that local ring is flat over an affine base's functions. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.FiberScalarMaps |
| 21 | |
| 22 | variable (S : Scheme.{u}) (x : S) |
| 23 | |
| 24 | theorem fromStalk_appTop : (S.fromSpecStalk x).appTop = |
| 25 | S.presheaf.germ ⊤ x trivial ≫ (Scheme.ΓSpecIso (S.presheaf.stalk x)).inv := by |
| 26 | rw [Scheme.fromSpecStalk_appTop] |
| 27 | simp |
| 28 | |
| 29 | theorem fromResidue_appTop : (S.fromSpecResidueField x).appTop ≫ |
| 30 | (Scheme.ΓSpecIso (S.residueField x)).hom = S.Γevaluation x := by |
| 31 | rw [Scheme.fromSpecResidueField, Scheme.Hom.comp_appTop, fromStalk_appTop] |
| 32 | simp only [Category.assoc] |
| 33 | rw [← Scheme.ΓSpecIso_inv_naturality_assoc] |
| 34 | simp only [Iso.inv_hom_id, Category.comp_id] |
| 35 | rfl |
| 36 | |
| 37 | theorem stalk_flat [IsAffine S] : letI : Algebra Γ(S, ⊤) (S.presheaf.stalk x) := |
| 38 | (S.presheaf.germ ⊤ x trivial).hom.toAlgebra |
| 39 | Module.Flat Γ(S, ⊤) (S.presheaf.stalk x) := by |
| 40 | let : Algebra Γ(S, ⊤) (S.presheaf.stalk x) := (S.presheaf.germ ⊤ x trivial).hom.toAlgebra |
| 41 | have := (isAffineOpen_top S).isLocalization_stalk ⟨x, trivial⟩ |
| 42 | exact IsLocalization.flat (S.presheaf.stalk x) |
| 43 | ((isAffineOpen_top S).primeIdealOf ⟨x, trivial⟩).asIdeal.primeCompl |
| 44 | |
| 45 | end Construction.FiberScalarMaps |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.FiberScalar |