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.Quotients.FiniteDescent.InvertibleSections |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Base Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.BaseSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flat affine sections with their scalar action from a flat base morphism. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.BaseSectionsFlat |
| 21 | |
| 22 | variable {X S : Scheme.{u}} (f : X ⟶ S) |
| 23 | |
| 24 | def scalarMap (U : X.Opens) : Γ(S, ⊤) →+* Γ(X, U) := |
| 25 | (f.appTop ≫ X.presheaf.map U.leTop.op).hom |
| 26 | |
| 27 | theorem scalarMap_eq (U : X.Opens) : |
| 28 | scalarMap f U = (f.appLE ⊤ U (by simp)).hom := by |
| 29 | change (f.appTop ≫ X.presheaf.map U.leTop.op).hom = _ |
| 30 | rw [Scheme.Hom.appTop, Scheme.Hom.appLE] |
| 31 | rfl |
| 32 | |
| 33 | theorem flat [IsAffine S] [Flat f] (M : X.Modules) (hM : SheafCohomology.Projective.Invertible.Scheme.Modules.IsInvertible M) |
| 34 | (U : X.affineOpens) : Module.Flat Γ(S, ⊤) ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).obj (op U.1)) := by |
| 35 | let : Algebra Γ(S, ⊤) Γ(X, U.1) := (scalarMap f U.1).toAlgebra |
| 36 | have hf : (scalarMap f U.1).Flat := by |
| 37 | rw [scalarMap_eq] |
| 38 | exact f.flat_appLE (isAffineOpen_top S) U.2 _ |
| 39 | have : Module.Flat Γ(S, ⊤) Γ(X, U.1) := hf |
| 40 | let : Module Γ(X, U.1) ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).obj (op U.1)) := |
| 41 | inferInstanceAs (Module Γ(X, U.1) Γ(M, U.1)) |
| 42 | have : IsScalarTower Γ(S, ⊤) Γ(X, U.1) ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).obj (op U.1)) := |
| 43 | IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 44 | have : Module.Flat Γ(X, U.1) ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).obj (op U.1)) := |
| 45 | InvertibleSections.Construction.InvertibleSectionsFlat.flat M hM U |
| 46 | exact Module.Flat.trans Γ(S, ⊤) Γ(X, U.1) ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).obj (op U.1)) |
| 47 | |
| 48 | end Construction.BaseSectionsFlat |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.BaseSections |