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.Spectrum.Prime.FreeLocus |
| 2 | import Mathlib.RingTheory.IsTensorProduct |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Associator |
| 4 | |
| 5 | /-! # Scalar Surjection Module Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.ScalarSurjectionModuleRank.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The stalk rank of a finite flat module is unchanged by a surjective |
| 12 | scalar extension when the extended scalar action already exists. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | theorem moduleRankAtStalk_surjectiveScalars (R S M : Type) [CommRing R] [CommRing S] |
| 17 | [Algebra R S] [AddCommGroup M] [Module R M] [Module S M] [IsScalarTower R S M] |
| 18 | [Module.Finite R M] [Module.Flat R M] (h : Function.Surjective (algebraMap R S)) (p : PrimeSpectrum S) : |
| 19 | Module.rankAtStalk (R := S) M p = Module.rankAtStalk (R := R) M (p.comap (algebraMap R S)) := by |
| 20 | let : TensorProduct.CompatibleSMul R S S M := |
| 21 | TensorProduct.CompatibleSMul.of_algebraMap_surjective S M h |
| 22 | have hb : IsBaseChange S (LinearMap.id : M →ₗ[R] M) := |
| 23 | IsBaseChange.of_equiv (TensorProduct.lidOfCompatibleSMul R S M) (fun m => by |
| 24 | rw [TensorProduct.lidOfCompatibleSMul_tmul, one_smul] |
| 25 | rfl) |
| 26 | exact Module.rankAtStalk_isBaseChange hb p |
| 27 | |
| 28 | end |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.Divisors.LineBundles.ScalarSurjectionModuleRank.BundleCycles |