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.Module.BaseChangeComplex |
| 2 | import Mathlib.RingTheory.LocalProperties.Exactness |
| 3 | import Mathlib.RingTheory.Localization.BaseChange |
| 4 | |
| 5 | /-! # Localization Exactness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.LocalizationExactness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exactness of a module short complex is detected by its explicit |
| 12 | tensor-product localizations at maximal ideals. -/ |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped TensorProduct |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | |
| 18 | theorem tensorLocalizationMap_eq {M N : Type u} |
| 19 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 20 | (I : Ideal R) [I.IsPrime] (f : M →ₗ[R] N) : |
| 21 | IsLocalizedModule.map I.primeCompl |
| 22 | (TensorProduct.mk R (Localization.AtPrime I) M 1) |
| 23 | (TensorProduct.mk R (Localization.AtPrime I) N 1) f = |
| 24 | (f.baseChange (Localization.AtPrime I)).restrictScalars R := by |
| 25 | apply IsLocalizedModule.linearMap_ext I.primeCompl |
| 26 | (TensorProduct.mk R (Localization.AtPrime I) M 1) |
| 27 | (TensorProduct.mk R (Localization.AtPrime I) N 1) |
| 28 | ext x |
| 29 | exact (IsLocalizedModule.map_apply I.primeCompl |
| 30 | (TensorProduct.mk R (Localization.AtPrime I) M 1) |
| 31 | (TensorProduct.mk R (Localization.AtPrime I) N 1) f x).trans rfl |
| 32 | |
| 33 | theorem shortComplex_exact_of_tensor_localizations (C : ShortComplex (ModuleCat.{u} R)) |
| 34 | (h : ∀ (I : Ideal R) [I.IsMaximal], |
| 35 | (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R (Localization.AtPrime I) C).Exact) : C.Exact := by |
| 36 | apply (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact C).mpr |
| 37 | apply exact_of_isLocalized_maximal |
| 38 | (fun (I : Ideal R) (_ : I.IsMaximal) => Localization.AtPrime I ⊗[R] C.X₁) |
| 39 | (fun (I : Ideal R) (_ : I.IsMaximal) => TensorProduct.mk R (Localization.AtPrime I) C.X₁ 1) |
| 40 | (fun (I : Ideal R) (_ : I.IsMaximal) => Localization.AtPrime I ⊗[R] C.X₂) |
| 41 | (fun (I : Ideal R) (_ : I.IsMaximal) => TensorProduct.mk R (Localization.AtPrime I) C.X₂ 1) |
| 42 | (fun (I : Ideal R) (_ : I.IsMaximal) => Localization.AtPrime I ⊗[R] C.X₃) |
| 43 | (fun (I : Ideal R) (_ : I.IsMaximal) => TensorProduct.mk R (Localization.AtPrime I) C.X₃ 1) |
| 44 | C.f.hom C.g.hom |
| 45 | intro I _ |
| 46 | rw [tensorLocalizationMap_eq, tensorLocalizationMap_eq] |
| 47 | exact (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp (h I) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.LocalizationExactness |