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.Foundations.Scheme.DifferentialRankLocalization |
| 2 | import Mathlib.AlgebraicGeometry.FunctionField |
| 3 | |
| 4 | /-! # Affine Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Betti.AffineDimension.Realization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # One function-field dimension for the affine charts of an integral scheme |
| 12 | |
| 13 | The algebra structures are induced by the actual structure morphism, section |
| 14 | restriction, and germ maps. Their compatibility is proved from the sheaf germ |
| 15 | identity. Consequently standard smooth presentations on different nonempty |
| 16 | affine opens have a common dimension: the rank of differentials of the same |
| 17 | function field over the same base ring. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | variable {X Y : Scheme.{u}} |
| 25 | |
| 26 | /-- Restriction of the structure morphism on sections to an arbitrary source open. -/ |
| 27 | def sectionBaseMap (f : X ⟶ Y) (U : X.Opens) : Γ(Y, ⊤) ⟶ Γ(X, U) := |
| 28 | f.appLE ⊤ U le_top |
| 29 | |
| 30 | /-- The actual base-ring algebra structure on the sections of a source open. -/ |
| 31 | abbrev sectionBaseAlgebra (f : X ⟶ Y) (U : X.Opens) : |
| 32 | Algebra Γ(Y, ⊤) Γ(X, U) := |
| 33 | (sectionBaseMap f U).hom.toAlgebra |
| 34 | |
| 35 | variable [IrreducibleSpace X] |
| 36 | |
| 37 | /-- The structure morphism followed by the germ at the generic point. -/ |
| 38 | def functionFieldBaseMap (f : X ⟶ Y) : Γ(Y, ⊤) ⟶ X.functionField := |
| 39 | f.appTop ≫ X.presheaf.germ ⊤ (genericPoint X) (by trivial) |
| 40 | |
| 41 | /-- The actual base-ring algebra structure on the function field. -/ |
| 42 | abbrev functionFieldBaseAlgebra (f : X ⟶ Y) : |
| 43 | Algebra Γ(Y, ⊤) X.functionField := |
| 44 | (functionFieldBaseMap f).hom.toAlgebra |
| 45 | |
| 46 | /-- Restricting to a nonempty open does not change the germ of a base section. -/ |
| 47 | theorem sectionBaseMap_germ (f : X ⟶ Y) (U : X.Opens) [Nonempty U] : |
| 48 | sectionBaseMap f U ≫ X.germToFunctionField U = functionFieldBaseMap f := by |
| 49 | dsimp only [sectionBaseMap, functionFieldBaseMap, Scheme.Hom.appLE, |
| 50 | Scheme.germToFunctionField] |
| 51 | rw [Category.assoc, TopCat.Presheaf.germ_res] |
| 52 | congr 1 |
| 53 | |
| 54 | /-- The source-open and function-field algebra structures form the required |
| 55 | scalar tower; this is proved, rather than included as an assumption. -/ |
| 56 | theorem functionFieldBase_isScalarTower (f : X ⟶ Y) (U : X.Opens) [Nonempty U] : |
| 57 | letI := sectionBaseAlgebra f U |
| 58 | letI := functionFieldBaseAlgebra f |
| 59 | IsScalarTower Γ(Y, ⊤) Γ(X, U) X.functionField := by |
| 60 | let := sectionBaseAlgebra f U |
| 61 | let := functionFieldBaseAlgebra f |
| 62 | apply IsScalarTower.of_algebraMap_eq' |
| 63 | change (functionFieldBaseMap f).hom = |
| 64 | (X.germToFunctionField U).hom.comp (sectionBaseMap f U).hom |
| 65 | exact congrArg CommRingCat.Hom.hom (sectionBaseMap_germ f U).symm |
| 66 | |
| 67 | variable [IsIntegral X] |
| 68 | |
| 69 | /-- The common dimension recorded in the differentials of the actual function |
| 70 | field, with its structure-morphism algebra structure. -/ |
| 71 | def functionFieldDifferentialDimension (f : X ⟶ Y) : ℕ := |
| 72 | letI := functionFieldBaseAlgebra f |
| 73 | Module.finrank X.functionField Ω[X.functionField⁄Γ(Y, ⊤)] |
| 74 | |
| 75 | /-- A genuine standard smooth affine presentation has the dimension of the |
| 76 | same function-field differential space, independently of the chosen open. -/ |
| 77 | theorem affinePresentation_dimension (f : X ⟶ Y) (U : X.Opens) [Nonempty U] |
| 78 | (hU : IsAffineOpen U) (ι : Type v) (σ : Type w) [Finite ι] [Finite σ] : |
| 79 | letI := sectionBaseAlgebra f U |
| 80 | ∀ P : Algebra.SubmersivePresentation Γ(Y, ⊤) Γ(X, U) ι σ, |
| 81 | P.dimension = functionFieldDifferentialDimension f := by |
| 82 | let := sectionBaseAlgebra f U |
| 83 | let := functionFieldBaseAlgebra f |
| 84 | let := functionFieldBase_isScalarTower f U |
| 85 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 86 | intro P |
| 87 | exact Foundations.Scheme.DifferentialRankLocalization.Algebraic.submersive_dimension_eq_fraction_differential_finrank |
| 88 | (T := X.functionField) P |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Betti.AffineDimension.Realization |