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.Localized.BasisCoefficientTransport |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.SectionBaseChange |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.GlobalSectionsFunctor |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 6 | |
| 7 | /-! # Localization Section Basis -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.LocalizationSectionBasis |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A basis of localized global sections gives a complete basis of the |
| 14 | actual pulled-back line bundle on the corresponding affine localization point. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u v |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | variable {S X : Scheme.{u}} [IsAffine S] (f : X ⟶ S) [IsProper f] |
| 21 | |
| 22 | theorem affineLocalizationPoint_isOpenImmersion (r : Γ(S, ⊤)) : |
| 23 | IsOpenImmersion (QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(S, ⊤) (Localization.Away r))) := by |
| 24 | have : IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap Γ(S, ⊤) (Localization.Away r)))) := |
| 25 | IsOpenImmersion.of_isLocalization r |
| 26 | change IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 27 | (algebraMap Γ(S, ⊤) (Localization.Away r))) ≫ S.isoSpec.inv) |
| 28 | infer_instance |
| 29 | |
| 30 | def affineLocalizationSectionBasis (L : Line.Bundles.LineBundle X) (r : Γ(S, ⊤)) {ι : Type v} |
| 31 | (B : Module.Basis ι (Localization.Away r) |
| 32 | (LocalizedModule.Away r ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf))) : |
| 33 | Module.Basis ι Γ(Spec (.of (Localization.Away r)), ⊤) |
| 34 | ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor (pullback.snd f |
| 35 | (QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(S, ⊤) (Localization.Away r)))).appTop.hom).obj |
| 36 | (L.pullback (pullback.fst f |
| 37 | (QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(S, ⊤) (Localization.Away r))))).sheaf) := by |
| 38 | let A := Localization.Away r |
| 39 | let b := QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(S, ⊤) A) |
| 40 | letI : Algebra A (TensorSectionComparison.morphismGlobalAlgebra b) := (Scheme.ΓSpecIso (.of A)).inv.hom.toAlgebra |
| 41 | letI : IsScalarTower Γ(S, ⊤) A (TensorSectionComparison.morphismGlobalAlgebra b) := |
| 42 | IsScalarTower.of_algebraMap_eq (fun c => RingHom.congr_fun |
| 43 | (Localized.BasisCoefficientTransport.affineCoordinateMap_appTop (algebraMap Γ(S, ⊤) A)) c) |
| 44 | have : IsOpenImmersion b := affineLocalizationPoint_isOpenImmersion r |
| 45 | have : Module.Flat Γ(S, ⊤) (TensorSectionComparison.morphismGlobalAlgebra b) := |
| 46 | RingHom.flat_algebraMap_iff.mp b.flat_appTop |
| 47 | have : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace f |
| 48 | have : X.IsSeparated := ⟨by rw [← terminal.comp_from f]; infer_instance⟩ |
| 49 | exact (Localized.BasisCoefficientTransport.localizedModuleBasis_baseChange r (TensorSectionComparison.morphismGlobalAlgebra b) B).map |
| 50 | (Scalar.SectionBaseChange.flat_lineBundleGlobalSectionsEquiv (IsPullback.of_hasPullback f b) L) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.LocalizationSectionBasis |