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.ComplexMultiplication.CMAbelianVariety |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SupportDimension |
| 3 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Line.Bundles |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Ext |
| 5 | import Mathlib.Algebra.Category.ModuleCat.Presheaf.Monoidal |
| 6 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 7 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear |
| 8 | import Mathlib.CategoryTheory.Sites.ConstantSheaf |
| 9 | import Mathlib.CategoryTheory.Sites.Abelian |
| 10 | import Mathlib.CategoryTheory.Linear.FunctorCategory |
| 11 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 12 | |
| 13 | /-! # Sheaves -/ |
| 14 | |
| 15 | namespace OAI.AlgebraicGeometry.SheafCohomology.Sheaves.Projective |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | /-! |
| 20 | ProjectiveCohomology constructions on the actual Zariski site. Tensor products are |
| 21 | sheafifications of sectionwise tensor products over the structure sheaf. |
| 22 | Sheaf cohomology is Ext from the constant complex sheaf to the underlying |
| 23 | complex-vector-space sheaf. Neither construction uses Riemann–Roch. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 27 | open scoped BigOperators |
| 28 | |
| 29 | abbrev LineBundle (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) := |
| 30 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle A.variety.presentation |
| 31 | |
| 32 | /-- Constants in the structure sheaf come from the specified complex base. -/ |
| 33 | def complexGlobalScalars (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) : ℂ →+* Γ(A.carrier, ⊤) := |
| 34 | A.variety.structureMap.appTop.hom.comp (Scheme.ΓSpecIso (.of ℂ)).inv.hom |
| 35 | |
| 36 | abbrev ComplexSheaves (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) := |
| 37 | Sheaf (Opens.grothendieckTopology A.carrier) (ModuleCat.{0} ℂ) |
| 38 | |
| 39 | /-- Forget an O_A-module to its actual sheaf of complex vector spaces. -/ |
| 40 | def complexSheaf (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (M : A.carrier.Modules) : |
| 41 | ComplexSheaves A := |
| 42 | (sheafCompose (Opens.grothendieckTopology A.carrier) |
| 43 | (ModuleCat.restrictScalars (complexGlobalScalars A))).obj |
| 44 | ((SheafOfModules.forgetToSheafModuleCat A.carrier.ringCatSheaf |
| 45 | (op (⊤ : A.carrier.Opens)) (Limits.isTerminalTop.op _)).obj M) |
| 46 | |
| 47 | /-- Forgetting the module structure preserves actual sheaf isomorphisms. -/ |
| 48 | def complexSheafIso (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) {M N : A.carrier.Modules} (e : M ≅ N) : |
| 49 | complexSheaf A M ≅ complexSheaf A N := |
| 50 | (sheafCompose (Opens.grothendieckTopology A.carrier) |
| 51 | (ModuleCat.restrictScalars (complexGlobalScalars A))).mapIso |
| 52 | ((SheafOfModules.forgetToSheafModuleCat A.carrier.ringCatSheaf |
| 53 | (op (⊤ : A.carrier.Opens)) (Limits.isTerminalTop.op _)).mapIso e) |
| 54 | |
| 55 | /-- The constant complex sheaf, whose Hom functor is global sections. -/ |
| 56 | def constantComplexSheaf (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) : ComplexSheaves A := |
| 57 | (constantSheaf (Opens.grothendieckTopology A.carrier) (ModuleCat ℂ)).obj |
| 58 | (ModuleCat.of ℂ ℂ) |
| 59 | |
| 60 | instance complexSheavesHasExt (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) : |
| 61 | HasExt.{1} (ComplexSheaves A) := HasExt.standard _ |
| 62 | |
| 63 | /-- Genuine Zariski sheaf cohomology with its induced complex scalar action. -/ |
| 64 | abbrev coherentCohomology (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (M : A.carrier.Modules) (i : ℕ) := |
| 65 | Abelian.Ext.{1} (constantComplexSheaf A) (complexSheaf A M) i |
| 66 | |
| 67 | /-- Degree zero of this construction is the actual space of global sections. -/ |
| 68 | def coherentH0EquivSections (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (M : A.carrier.Modules) : |
| 69 | coherentCohomology A M 0 ≃ Γ(M, ⊤) := |
| 70 | Abelian.Ext.homEquiv₀.trans |
| 71 | (((constantSheafAdj (Opens.grothendieckTopology A.carrier) (ModuleCat ℂ) |
| 72 | Limits.isTerminalTop).homEquiv _ _).trans |
| 73 | ((ModuleCat.homLinearEquiv (S := ℂ)).toEquiv.trans |
| 74 | (LinearMap.ringLmapEquivSelf ℂ ℂ _).toEquiv)) |
| 75 | |
| 76 | /-- The dimension-bounded alternating sum of coherent cohomology dimensions. |
| 77 | For coherent sheaves on A, cohomology is finite and vanishes above dim A; |
| 78 | the construction itself does not assume either theorem. -/ |
| 79 | def coherentEuler (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (M : A.carrier.Modules) : ℤ := |
| 80 | ∑ i ∈ Finset.range (Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.variety.structureMap + 1), |
| 81 | (-1 : ℤ) ^ i * (Module.finrank ℂ (coherentCohomology A M i) : ℤ) |
| 82 | |
| 83 | /-- Isomorphic actual sheaves induce linearly isomorphic cohomology spaces. -/ |
| 84 | def coherentCohomologyIso (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) {M N : A.carrier.Modules} |
| 85 | (e : M ≅ N) (i : ℕ) : coherentCohomology A M i ≃ₗ[ℂ] coherentCohomology A N i := |
| 86 | SheafCohomology.Ext.Projective.extRightIso ℂ (constantComplexSheaf A) (complexSheafIso A e) i |
| 87 | |
| 88 | /-- Euler characteristic depends on the sheaf, not its presentation. -/ |
| 89 | theorem coherentEuler_eq_of_iso (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) {M N : A.carrier.Modules} |
| 90 | (e : M ≅ N) : coherentEuler A M = coherentEuler A N := by |
| 91 | unfold coherentEuler |
| 92 | apply Finset.sum_congr rfl |
| 93 | intro i _ |
| 94 | rw [(coherentCohomologyIso A e i).finrank_eq] |
| 95 | |
| 96 | /-- Tensor product of actual O_A-module sheaves. -/ |
| 97 | def sheafTensor (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (M N : A.carrier.Modules) : |
| 98 | A.carrier.Modules := |
| 99 | (PresheafOfModules.sheafification (𝟙 A.carrier.ringCatSheaf.obj)).obj |
| 100 | (PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := A.carrier.presheaf) M.val N.val) |
| 101 | |
| 102 | /-- Actual tensor powers, as sheaves; the zeroth power is O_A. -/ |
| 103 | def tensorPower (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : LineBundle A) : ℕ → A.carrier.Modules |
| 104 | | 0 => SheafOfModules.unit A.carrier.ringCatSheaf |
| 105 | | n + 1 => sheafTensor A (tensorPower A L n) L.sheaf |
| 106 | |
| 107 | @[simp] theorem tensorPower_zero (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : LineBundle A) : |
| 108 | Projective.tensorPower A L 0 = SheafOfModules.unit A.carrier.ringCatSheaf := rfl |
| 109 | |
| 110 | @[simp] theorem tensorPower_succ (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : LineBundle A) (n : ℕ) : |
| 111 | Projective.tensorPower A L (n + 1) = sheafTensor A (Projective.tensorPower A L n) L.sheaf := rfl |
| 112 | |
| 113 | /-- The constructed first tensor power is isomorphic to the original sheaf. -/ |
| 114 | def tensorPowerOneIso (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : LineBundle A) : |
| 115 | Projective.tensorPower A L 1 ≅ L.sheaf := |
| 116 | (PresheafOfModules.sheafification (𝟙 A.carrier.ringCatSheaf.obj)).mapIso |
| 117 | (MonoidalCategory.leftUnitor |
| 118 | (C := PresheafOfModules (A.carrier.presheaf ⋙ forget₂ CommRingCat RingCat)) |
| 119 | L.sheaf.val) ≪≫ |
| 120 | (asIso (PresheafOfModules.sheafificationAdjunction |
| 121 | (𝟙 A.carrier.ringCatSheaf.obj)).counit).app L.sheaf |
| 122 | |
| 123 | @[simp] theorem coherentEuler_tensorPower_one (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : LineBundle A) : |
| 124 | coherentEuler A (Projective.tensorPower A L 1) = coherentEuler A L.sheaf := |
| 125 | coherentEuler_eq_of_iso A (tensorPowerOneIso A L) |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.SheafCohomology.Sheaves.Projective |