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.Scalar.SectionBaseChange |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.EquivalentDimensions |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.GlobalSectionsFunctor |
| 4 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 6 | |
| 7 | /-! # Extension Section Dimension -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ExtensionSectionDimension |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Actual global-section dimensions are preserved under arbitrary field extension. The full changed-field scalar action is supplied by the canonical flat section comparison. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | |
| 18 | theorem schemeGlobalSections_finrank_eq_globalCoefficients |
| 19 | {K : Type u} [CommRing K] {X : Scheme.{u}} |
| 20 | (p : X ⟶ Spec (.of K)) (M : X.Modules) : |
| 21 | Module.finrank K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M) = |
| 22 | Module.finrank Γ(Spec (.of K), ⊤) |
| 23 | ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor p.appTop.hom).obj M) := by |
| 24 | let e : K ≃+* Γ(Spec (.of K), ⊤) := |
| 25 | (Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.symm |
| 26 | exact Scalar.EquivalentDimensions.restrictScalars_finrank_of_ringEquiv e |
| 27 | ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor p.appTop.hom).obj M) |
| 28 | |
| 29 | theorem fieldExtension_lineBundle_sections_finrank |
| 30 | {K F : Type u} [Field K] [Field F] {X : Scheme.{u}} |
| 31 | (p : X ⟶ Spec (.of K)) [IsProper p] |
| 32 | (φ : CommRingCat.of K ⟶ CommRingCat.of F) (L : Line.Bundles.LineBundle X) : |
| 33 | Module.finrank F ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor (pullback.snd p (Spec.map φ))).obj |
| 34 | (L.pullback (pullback.fst p (Spec.map φ))).sheaf) = |
| 35 | Module.finrank K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf) := by |
| 36 | have : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace p |
| 37 | have hp : IsSeparated (p ≫ terminal.from (Spec (.of K))) := inferInstance |
| 38 | have : IsSeparated (terminal.from X) := (terminal.comp_from p) ▸ hp |
| 39 | let : Field Γ(Spec (.of K), ⊤) := |
| 40 | ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 41 | (Field.toIsField K)).toField |
| 42 | let : Field Γ(Spec (.of F), ⊤) := |
| 43 | ((Scheme.ΓSpecIso (.of F)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 44 | (Field.toIsField F)).toField |
| 45 | let : Algebra Γ(Spec (.of K), ⊤) Γ(Spec (.of F), ⊤) := |
| 46 | (Spec.map φ).appTop.hom.toAlgebra |
| 47 | have : Module.Flat Γ(Spec (.of K), ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra (Spec.map φ)) := inferInstance |
| 48 | let : Module Γ(Spec (.of F), ⊤) |
| 49 | (TensorProduct Γ(Spec (.of K), ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra (Spec.map φ)) |
| 50 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf p.appTop.hom L.sheaf).obj (.op ⊤))) := by |
| 51 | change Module (Affine.TensorSectionComparison.morphismGlobalAlgebra (Spec.map φ)) |
| 52 | (TensorProduct Γ(Spec (.of K), ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra (Spec.map φ)) |
| 53 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf p.appTop.hom L.sheaf).obj (.op ⊤))) |
| 54 | infer_instance |
| 55 | let e := Scalar.SectionBaseChange.flat_lineBundleGlobalSectionsEquiv (IsPullback.of_hasPullback p (Spec.map φ)) L |
| 56 | rw [schemeGlobalSections_finrank_eq_globalCoefficients, |
| 57 | schemeGlobalSections_finrank_eq_globalCoefficients] |
| 58 | exact e.finrank_eq.symm.trans Module.finrank_baseChange |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ExtensionSectionDimension |