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.AffineScheme |
| 2 | import Mathlib.RingTheory.Flat.Localization |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | |
| 5 | /-! # Stalk Flatness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.StalkFlatness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A module over the global ring of an affine scheme is flat if its tensor |
| 12 | product with every scheme stalk is flat over that stalk. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | theorem affineModule_flat_of_stalk_tensor (X : Scheme.{u}) [IsAffine X] |
| 19 | (V : Type v) [AddCommGroup V] [Module Γ(X, ⊤) V] |
| 20 | (h : ∀ x : X, |
| 21 | letI : Algebra Γ(X, ⊤) (X.presheaf.stalk x) := (X.presheaf.Γgerm x).hom.toAlgebra |
| 22 | Module.Flat (X.presheaf.stalk x) ((X.presheaf.stalk x) ⊗[Γ(X, ⊤)] V)) : |
| 23 | Module.Flat Γ(X, ⊤) V := by |
| 24 | apply Module.flat_of_localized_maximal |
| 25 | intro P hP |
| 26 | let p : PrimeSpectrum Γ(X, ⊤) := ⟨P, inferInstance⟩ |
| 27 | let x := (isAffineOpen_top X).fromSpec p |
| 28 | let A := X.presheaf.stalk x |
| 29 | let : Algebra Γ(X, ⊤) A := (X.presheaf.Γgerm x).hom.toAlgebra |
| 30 | have : IsLocalization.AtPrime A P := (isAffineOpen_top X).isLocalization_stalk' p (by trivial) |
| 31 | have : Module.Flat Γ(X, ⊤) A := IsLocalization.flat A P.primeCompl |
| 32 | have : Module.Flat A (A ⊗[Γ(X, ⊤)] V) := h x |
| 33 | have : Module.Flat Γ(X, ⊤) (A ⊗[Γ(X, ⊤)] V) := Module.Flat.trans Γ(X, ⊤) A _ |
| 34 | exact Module.Flat.of_linearEquiv (IsLocalizedModule.linearEquiv P.primeCompl |
| 35 | (LocalizedModule.mkLinearMap P.primeCompl V) (TensorProduct.mk Γ(X, ⊤) A V 1)) |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.StalkFlatness |