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 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 8 | import Mathlib.CategoryTheory.Localization.Monoidal.Braided |
| 9 | import Mathlib.CategoryTheory.Monoidal.Skeleton |
| 10 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.OfModulesMonoidal |
| 11 | |
| 12 | /-! # Monoidal -/ |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.Monoidal |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | open _root_.AlgebraicGeometry.Scheme |
| 18 | open _root_.PresheafOfModules |
| 19 | |
| 20 | /-! |
| 21 | # The Picard group of a scheme |
| 22 | |
| 23 | Stage P2 of the AINTLIB Hodge.Projective T-PIC0 stream (GME 2.2.2, p. 108): the Picard |
| 24 | group. Source of record, verbatim: *"We write `E_T` for `E ×_S T` and `Pic(E_T)` for the |
| 25 | group of isomorphism classes of all invertible sheaves on `E_T`."* |
| 26 | |
| 27 | With the [GAP1-W-MONO] leaf sorry-free (`sheafificationW_isMonoidal` + |
| 28 | `sheafificationW_isLocalization`), mathlib's `LocalizedMonoidal` hands the category of |
| 29 | sheaves of modules over a sheaf of commutative rings its symmetric monoidal structure — |
| 30 | the previously `Nonempty`-wrapped payoff, now as data (the v10.8 no-sorried-monoidal-DATA |
| 31 | discipline is satisfied, not bypassed). Following mathlib's own packaging |
| 32 | (`CategoryTheory.Sheaf.monoidalCategory` in `Sites/Monoidal.lean`) these are `def`s, not |
| 33 | global instances, to stay merge-safe against a future upstream instance. |
| 34 | |
| 35 | The Picard group is then the group of ⊗-invertible iso-classes, following mathlib's |
| 36 | `CommRing.Pic` pattern (`RingTheory/PicardGroup.lean`): the units of the ⊗-monoid on the |
| 37 | skeleton, `Pic X:= (Skeleton X.Modules)ˣ`. An element is an iso-class `[M]` together |
| 38 | with an inverse class; commutativity comes from the braiding. |
| 39 | |
| 40 | ## Main definitions |
| 41 | |
| 42 | * `PresheafOfModules.sheafOfModulesMonoidalCategory` / `…SymmetricCategory`: the |
| 43 | symmetric monoidal structure on `SheafOfModules` over a sheaf of commutative rings. |
| 44 | * `AlgebraicGeometry.Scheme.Modules.monoidalCategory` / `…symmetricCategory`: the same, |
| 45 | on `X.Modules` for a scheme `X`. |
| 46 | * `AlgebraicGeometry.Scheme.Pic`: the Picard group of a scheme, with its `CommGroup` |
| 47 | structure. |
| 48 | |
| 49 | The comparison with the cover-local `IsInvertible` predicate of |
| 50 | `Picard/InvertibleSheaf.lean` — GME's "the formation of an invertible sheaf is local", |
| 51 | (2.17) — is the registered follow-up [PIC-P2-CMP]; its invertible-to-unit direction |
| 52 | constructs the dual sheaf, which is coordinated with the Cartier-duality lane |
| 53 | (v10.36 two-route edge: never build duality twice). |
| 54 | -/ |
| 55 | |
| 56 | universe u |
| 57 | |
| 58 | open _root_.CategoryTheory MonoidalCategory |
| 59 | |
| 60 | namespace PresheafOfModules |
| 61 | |
| 62 | variable {C : Type u} [Category.{u} C] {J : GrothendieckTopology C} |
| 63 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] [HasWeakSheafify J AddCommGrpCat.{u}] |
| 64 | (S : Cᵒᵖ ⥤ CommRingCat.{u}) |
| 65 | (hS : Presheaf.IsSheaf J (S ⋙ forget₂ CommRingCat RingCat)) |
| 66 | |
| 67 | /-- **The monoidal category of sheaves of modules** over a sheaf of commutative rings: |
| 68 | mathlib's `LocalizedMonoidal` applied to the sheafification localization |
| 69 | (`sheafificationW_isLocalization`) with the ⊗-stable localizing class |
| 70 | (`sheafificationW_isMonoidal`, the [GAP1-W-MONO] leaf). A `def`, not an instance, per the |
| 71 | `CategoryTheory.Sheaf.monoidalCategory` precedent — activate with |
| 72 | `attribute [local instance]` or `letI`. -/ |
| 73 | @[implicit_reducible] |
| 74 | noncomputable def sheafOfModulesMonoidalCategory : |
| 75 | MonoidalCategory |
| 76 | (SheafOfModules.{u} (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u})) := |
| 77 | inferInstanceAs (MonoidalCategory (LocalizedMonoidal |
| 78 | (L := sheafification.{u} |
| 79 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 80 | (W := OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} |
| 81 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 82 | (Iso.refl _))) |
| 83 | |
| 84 | /-- The symmetric monoidal structure on sheaves of modules (the braiding descends from |
| 85 | the symmetric structure on presheaves of modules through the localization). -/ |
| 86 | @[implicit_reducible] |
| 87 | noncomputable def sheafOfModulesSymmetricCategory : |
| 88 | letI := sheafOfModulesMonoidalCategory S hS |
| 89 | SymmetricCategory |
| 90 | (SheafOfModules.{u} (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u})) := |
| 91 | inferInstanceAs (SymmetricCategory (LocalizedMonoidal |
| 92 | (L := sheafification.{u} |
| 93 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 94 | (W := OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} |
| 95 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 96 | (Iso.refl _))) |
| 97 | |
| 98 | end PresheafOfModules |
| 99 | |
| 100 | namespace Scheme |
| 101 | |
| 102 | namespace Modules |
| 103 | |
| 104 | /-- The monoidal category structure on `𝒪ₓ`-modules (transport of |
| 105 | `PresheafOfModules.sheafOfModulesMonoidalCategory` across the structure-eta identification |
| 106 | `X.ringCatSheaf = ⟨X.sheaf.obj ⋙ forget₂, _⟩`). A `def`, not an instance — activate with |
| 107 | `letI` / `attribute [local instance]`. -/ |
| 108 | @[implicit_reducible] |
| 109 | noncomputable def monoidalCategory (X : Scheme.{u}) : MonoidalCategory X.Modules := |
| 110 | PresheafOfModules.sheafOfModulesMonoidalCategory X.sheaf.obj X.ringCatSheaf.property |
| 111 | |
| 112 | /-- The symmetric monoidal structure on `𝒪ₓ`-modules. -/ |
| 113 | @[implicit_reducible] |
| 114 | noncomputable def symmetricCategory (X : Scheme.{u}) : |
| 115 | letI := monoidalCategory X |
| 116 | SymmetricCategory X.Modules := |
| 117 | PresheafOfModules.sheafOfModulesSymmetricCategory X.sheaf.obj X.ringCatSheaf.property |
| 118 | |
| 119 | end Modules |
| 120 | |
| 121 | /-- **The Picard group of a scheme** (GME 2.2.2 (2.16), p. 108: `Pic(E_T)` is "the group |
| 122 | of isomorphism classes of all invertible sheaves") — following mathlib's `CommRing.Pic` |
| 123 | pattern, the units of the ⊗-monoid of iso-classes of `𝒪ₓ`-modules: an element is an |
| 124 | iso-class `[𝓛]` together with an inverse class `[𝓛⁻¹]`. The comparison with the |
| 125 | cover-local `IsInvertible` predicate is the registered follow-up [PIC-P2-CMP] (its |
| 126 | invertible-to-unit direction constructs the dual — Cartier-duality-lane coordinated). -/ |
| 127 | noncomputable def Pic (X : Scheme.{u}) : Type _ := |
| 128 | letI := Projective.Monoidal.Scheme.Modules.monoidalCategory X |
| 129 | (Skeleton X.Modules)ˣ |
| 130 | |
| 131 | noncomputable instance (X : Scheme.{u}) : CommGroup (Pic X) := |
| 132 | letI := Projective.Monoidal.Scheme.Modules.monoidalCategory X |
| 133 | letI := Projective.Monoidal.Scheme.Modules.symmetricCategory X |
| 134 | inferInstanceAs (CommGroup (Skeleton X.Modules)ˣ) |
| 135 | |
| 136 | end Scheme |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.Monoidal |