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.External.ZeroCohomologyTensor |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCohomology.CohomologyRestriction |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.EquivalentDimensions |
| 4 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 5 | |
| 6 | /-! # Section Dimensions -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.External.SectionDimensions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The linear tensor comparison gives the product formula for the actual |
| 13 | ground-field dimensions of the global sections of an external line bundle. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 15 | open _root_.TopologicalSpace _root_.AlgebraicGeometry Opposite |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | theorem coefficientCohomology_finrank_specGlobalRing |
| 21 | {k : Type u} [Field k] {X : Scheme.{u}} |
| 22 | (f : X ⟶ Spec (.of k)) (M : X.Modules) (q : ℕ) : |
| 23 | Module.finrank k ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap f) q).obj M) = |
| 24 | Module.finrank Γ(Spec (.of k), ⊤) |
| 25 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom q).obj M) := by |
| 26 | let e : k ≃+* Γ(Spec (.of k), ⊤) := |
| 27 | (Scheme.ΓSpecIso (.of k)).commRingCatIsoToRingEquiv.symm |
| 28 | let V := (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom q).obj M |
| 29 | let h := CoefficientCohomology.CohomologyRestriction.coefficientCohomologyRestrictionIso e.toRingHom f.appTop.hom M q |
| 30 | have hh : Module.finrank k |
| 31 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap f) q).obj M) = |
| 32 | Module.finrank k ((ModuleCat.restrictScalars e.toRingHom).obj V) := h.toLinearEquiv.finrank_eq.symm |
| 33 | exact hh.trans (Scalar.EquivalentDimensions.restrictScalars_finrank_of_ringEquiv e V) |
| 34 | |
| 35 | variable {k : Type u} [Field k] {X Y P : Scheme.{u}} |
| 36 | variable [X.IsSeparated] [Y.IsSeparated] [P.IsSeparated] |
| 37 | variable {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ Spec (.of k)} {g : Y ⟶ Spec (.of k)} |
| 38 | variable (H : IsPullback a b f g) (L : Line.Bundles.LineBundle X) (N : Line.Bundles.LineBundle Y) |
| 39 | variable {ι : Type u} [Finite ι] (V : ι → X.Opens) |
| 40 | variable (hV : iSup V = ⊤) (haV : ∀ i, IsAffineOpen (V i)) |
| 41 | variable (heV : ∀ i, Nonempty ((Scheme.Modules.pullback (V i).ι).obj L.sheaf ≅ Line.Bundles.structureModule (V i).toScheme)) |
| 42 | variable {κ : Type u} [Finite κ] (U : κ → Y.Opens) (haU : ∀ i, IsAffineOpen (U i)) |
| 43 | variable (heU : ∀ i, Nonempty ((Scheme.Modules.pullback (U i).ι).obj N.sheaf ≅ Line.Bundles.structureModule (U i).toScheme)) |
| 44 | |
| 45 | include H V hV haV heV haU heU in |
| 46 | theorem fieldExternalZeroCohomology_finrank (hU : iSup U = ⊤) : |
| 47 | Module.finrank k ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor |
| 48 | (Coefficient.ModulePresheaf.schemeCoefficientMap (b ≫ g)) 0).obj (((L.pullback a).tensor (N.pullback b)).sheaf)) = |
| 49 | Module.finrank k ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor |
| 50 | (Coefficient.ModulePresheaf.schemeCoefficientMap f) 0).obj L.sheaf) * |
| 51 | Module.finrank k ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor |
| 52 | (Coefficient.ModulePresheaf.schemeCoefficientMap g) 0).obj N.sheaf) := by |
| 53 | let : Field Γ(Spec (.of k), ⊤) := |
| 54 | ((Scheme.ΓSpecIso (.of k)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 55 | (Field.toIsField k)).toField |
| 56 | rw [coefficientCohomology_finrank_specGlobalRing, coefficientCohomology_finrank_specGlobalRing, |
| 57 | coefficientCohomology_finrank_specGlobalRing] |
| 58 | have hcomp : (b ≫ g).appTop.hom = b.appTop.hom.comp g.appTop.hom := by |
| 59 | rw [Scheme.Hom.comp_appTop] |
| 60 | rfl |
| 61 | rw [hcomp] |
| 62 | have h := (ZeroCohomologyTensor.fieldExternalZeroCohomologyModuleIso H L N V hV haV heV U haU heU hU).toLinearEquiv.finrank_eq |
| 63 | rw [← h] |
| 64 | have ht := (Module.finrank_tensorProduct |
| 65 | (R := Γ(Spec (.of k), ⊤)) (S := Γ(Spec (.of k), ⊤)) |
| 66 | (M := (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor g.appTop.hom 0).obj N.sheaf) |
| 67 | (M' := (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor f.appTop.hom 0).obj L.sheaf)) |
| 68 | rw [Nat.mul_comm] at ht |
| 69 | exact ht |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.External.SectionDimensions |