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 | /- |
| 2 | Copyright (c) 2026 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TensorSections |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent |
| 9 | |
| 10 | /-! # Invertible Tensor Coherent -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleTensorCoherent.Scheme.Modules |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | open _root_.AlgebraicGeometry.Scheme |
| 18 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 19 | |
| 20 | /-! |
| 21 | # Quasicoherence after tensoring by an invertible sheaf |
| 22 | |
| 23 | An invertible sheaf is trivial on an open cover. Refining that cover by affine |
| 24 | opens identifies the restriction of its tensor product with the restriction of |
| 25 | the other factor, so quasicoherence descends from the affine refinement. |
| 26 | -/ |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits MonoidalCategory _root_.TopologicalSpace |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | variable {X : Scheme.{u}} |
| 33 | |
| 34 | noncomputable local instance invertibleSheafTensorMonoidal |
| 35 | (Y : Scheme.{u}) : MonoidalCategory Y.Modules := |
| 36 | Projective.Monoidal.Scheme.Modules.monoidalCategory Y |
| 37 | |
| 38 | private noncomputable def tensorRestrictIso |
| 39 | {M L : X.Modules} (U : X.Opens) |
| 40 | (eL : L.restrict U.ι ≅ Invertible.Scheme.Modules.unitObj U.toScheme) : |
| 41 | (M ⊗ L).restrict U.ι ≅ M.restrict U.ι := by |
| 42 | letI : (Scheme.Modules.pullback U.ι).Monoidal := |
| 43 | PullbackTensorGeneral.Scheme.Modules.pullbackMonoidal U.ι |
| 44 | exact |
| 45 | (restrictFunctorIsoPullback U.ι).app (M ⊗ L) ≪≫ |
| 46 | (Functor.Monoidal.μIso |
| 47 | (Scheme.Modules.pullback U.ι) M L).symm ≪≫ |
| 48 | ((restrictFunctorIsoPullback U.ι).symm.app M ⊗ᵢ |
| 49 | (restrictFunctorIsoPullback U.ι).symm.app L) ≪≫ |
| 50 | (Iso.refl _ ⊗ᵢ eL) ≪≫ |
| 51 | (Iso.refl _ ⊗ᵢ |
| 52 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj U.toScheme)).symm) ≪≫ |
| 53 | ρ_ (M.restrict U.ι) |
| 54 | |
| 55 | /-- Tensoring a quasicoherent scheme module by an invertible scheme module |
| 56 | preserves quasicoherence. -/ |
| 57 | theorem _root_.OAI.AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.IsInvertible.tensorObj_isQuasicoherent |
| 58 | {M L : X.Modules} [M.IsQuasicoherent] |
| 59 | (hL : Invertible.Scheme.Modules.IsInvertible L) : (M ⊗ L).IsQuasicoherent := by |
| 60 | let ML : X.Modules := M ⊗ L |
| 61 | change ML.IsQuasicoherent |
| 62 | obtain ⟨κ, V, hV, htriv⟩ := hL |
| 63 | let J := {x : X.Opens × κ // |
| 64 | x.1 ∈ X.affineOpens ∧ x.1 ≤ V x.2} |
| 65 | let W : J → X.Opens := fun j => j.1.1 |
| 66 | have hW : IsOpenCover W := |
| 67 | X.isBasis_affineOpens.isOpenCover_mem_and_le |
| 68 | (show IsOpenCover V from hV) |
| 69 | have hlocal (j : J) : |
| 70 | (ML.over (W j)).IsQuasicoherent := by |
| 71 | let : IsAffine (W j).toScheme := j.2.1 |
| 72 | obtain ⟨eL⟩ := htriv j.1.2 |
| 73 | let eL' : L.restrict (W j).ι ≅ Invertible.Scheme.Modules.unitObj (W j).toScheme := |
| 74 | Invertible.Scheme.Modules.restrictIsoOfPullbackIso L (W j) |
| 75 | (Invertible.Scheme.Modules.restrictTrivialization j.2.2 eL) |
| 76 | let e : |
| 77 | ML.restrict (W j).ι ≅ M.restrict (W j).ι := |
| 78 | tensorRestrictIso (M := M) (L := L) (W j) eL' |
| 79 | have hRestrict : |
| 80 | (ML.restrict (W j).ι).IsQuasicoherent := |
| 81 | (Quasicoherent.Scheme.Modules.isQuasicoherent (W j).toScheme).prop_of_iso |
| 82 | e.symm inferInstance |
| 83 | let : (ML.restrict (W j).ι).IsQuasicoherent := |
| 84 | hRestrict |
| 85 | exact |
| 86 | Quasicoherent.Scheme.Modules.isQuasicoherent_over_of_restrict_of_isAffineOpen |
| 87 | ML (W j) |
| 88 | have hcover : |
| 89 | (Opens.grothendieckTopology X).CoversTop W := by |
| 90 | rw [Opens.coversTop_iff] |
| 91 | exact hW |
| 92 | exact @SheafOfModules.IsQuasicoherent.of_coversTop |
| 93 | _ _ _ _ _ _ _ _ ML _ W hcover hlocal |
| 94 | |
| 95 | /-- Tensoring a finite-type quasicoherent scheme module by an invertible |
| 96 | scheme module preserves finite type. -/ |
| 97 | theorem _root_.OAI.AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.IsInvertible.tensorObj_isFiniteType |
| 98 | {M L : X.Modules} [M.IsQuasicoherent] [M.IsFiniteType] |
| 99 | (hL : Invertible.Scheme.Modules.IsInvertible L) : (M ⊗ L).IsFiniteType := by |
| 100 | let ML : X.Modules := M ⊗ L |
| 101 | let : ML.IsQuasicoherent := |
| 102 | hL.tensorObj_isQuasicoherent |
| 103 | obtain ⟨κ, V, hV, htriv⟩ := hL |
| 104 | let J := {x : X.Opens × κ // |
| 105 | x.1 ∈ X.affineOpens ∧ x.1 ≤ V x.2} |
| 106 | let W : J → X.Opens := fun j => j.1.1 |
| 107 | have hW : IsOpenCover W := |
| 108 | X.isBasis_affineOpens.isOpenCover_mem_and_le |
| 109 | (show IsOpenCover V from hV) |
| 110 | choose G hG using fun j : J => |
| 111 | Quasicoherent.Scheme.Modules.exists_generatingSections_restrict_of_isFiniteType_of_isAffineOpen |
| 112 | M ⟨W j, j.2.1⟩ |
| 113 | let e (j : J) : ML.restrict (W j).ι ≅ M.restrict (W j).ι := by |
| 114 | let eL := Classical.choice (htriv j.1.2) |
| 115 | let eL' : L.restrict (W j).ι ≅ Invertible.Scheme.Modules.unitObj (W j).toScheme := |
| 116 | Invertible.Scheme.Modules.restrictIsoOfPullbackIso L (W j) |
| 117 | (Invertible.Scheme.Modules.restrictTrivialization j.2.2 eL) |
| 118 | exact tensorRestrictIso (M := M) (L := L) (W j) eL' |
| 119 | let GML (j : J) : (ML.restrict (W j).ι).GeneratingSections := |
| 120 | (SheafOfModules.GeneratingSections.equivOfIso (e j)).symm (G j) |
| 121 | have hGML (j : J) : (GML j).IsFiniteType := by |
| 122 | constructor |
| 123 | change Finite (G j).I |
| 124 | exact (hG j).finite |
| 125 | have hcover : |
| 126 | (Opens.grothendieckTopology X).CoversTop W := by |
| 127 | rw [Opens.coversTop_iff] |
| 128 | exact hW |
| 129 | let q : ML.LocalGeneratorsData := |
| 130 | { I := J |
| 131 | X := W |
| 132 | coversTop := hcover |
| 133 | generators := fun j => |
| 134 | Quasicoherent.Scheme.Modules.generatingSectionsOverOfRestrict ML (W j) (GML j) } |
| 135 | have hq : q.IsFiniteType := by |
| 136 | constructor |
| 137 | intro j |
| 138 | let : (GML j).IsFiniteType := hGML j |
| 139 | exact Quasicoherent.Scheme.Modules.generatingSectionsOverOfRestrict_isFiniteType |
| 140 | ML (W j) (GML j) |
| 141 | have hqShrink : q.shrink.IsFiniteType := by |
| 142 | constructor |
| 143 | intro j |
| 144 | dsimp [SheafOfModules.LocalGeneratorsData.shrink] |
| 145 | exact hq.isFiniteType j.2.choose |
| 146 | refine { exists_localGeneratorsData := ?_ } |
| 147 | exact ⟨q.shrink, hqShrink⟩ |
| 148 | |
| 149 | end |
| 150 | |
| 151 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleTensorCoherent.Scheme.Modules |