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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorLocalizationAssembly |
| 8 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 9 | import Mathlib.CategoryTheory.Localization.Monoidal.Braided |
| 10 | |
| 11 | /-! # Sheaf Monoidal -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SheafMonoidal |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! The actual category of module sheaves carries the symmetric tensor structure induced by sheafification. -/ |
| 18 | |
| 19 | universe v v' u u' |
| 20 | |
| 21 | open _root_.CategoryTheory MonoidalCategory _root_.PresheafOfModules |
| 22 | |
| 23 | namespace SheafTensorLocalization |
| 24 | |
| 25 | variable {C : Type u} [Category.{u} C] {J : GrothendieckTopology C} |
| 26 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] [HasWeakSheafify J AddCommGrpCat.{u}] |
| 27 | (S : Cᵒᵖ ⥤ CommRingCat.{u}) |
| 28 | (hS : Presheaf.IsSheaf J (S ⋙ forget₂ CommRingCat RingCat)) |
| 29 | |
| 30 | instance instSheafificationW_isLocalization_commRingSheaf : |
| 31 | (sheafification.{u} |
| 32 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)).IsLocalization |
| 33 | (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} |
| 34 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) := |
| 35 | SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW_isLocalization _ |
| 36 | |
| 37 | instance instSheafificationW_isMonoidal_commRingSheaf : |
| 38 | (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} |
| 39 | (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)).IsMonoidal := |
| 40 | HilbertConstruction.Sheaf.TensorLocalizationAssembly.SheafTensorLocalization.sheafificationW_isMonoidal _ |
| 41 | |
| 42 | @[implicit_reducible] |
| 43 | def sheafOfModulesMonoidalCategory : |
| 44 | MonoidalCategory (SheafOfModules.{u} (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u})) := |
| 45 | inferInstanceAs (MonoidalCategory (LocalizedMonoidal |
| 46 | (L := sheafification.{u} (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 47 | (W := SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 48 | (Iso.refl _))) |
| 49 | |
| 50 | @[implicit_reducible] |
| 51 | def sheafOfModulesSymmetricCategory : |
| 52 | letI := sheafOfModulesMonoidalCategory S hS |
| 53 | SymmetricCategory (SheafOfModules.{u} (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u})) := |
| 54 | inferInstanceAs (SymmetricCategory (LocalizedMonoidal |
| 55 | (L := sheafification.{u} (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 56 | (W := SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} (𝟙 (⟨S ⋙ forget₂ CommRingCat RingCat, hS⟩ : Sheaf J RingCat.{u}).obj)) |
| 57 | (Iso.refl _))) |
| 58 | |
| 59 | end SheafTensorLocalization |
| 60 | |
| 61 | open _root_.AlgebraicGeometry |
| 62 | |
| 63 | @[implicit_reducible] |
| 64 | def moduleMonoidalCategory (X : Scheme.{u}) : MonoidalCategory X.Modules := |
| 65 | SheafTensorLocalization.sheafOfModulesMonoidalCategory X.sheaf.obj X.ringCatSheaf.property |
| 66 | |
| 67 | @[implicit_reducible] |
| 68 | def moduleSymmetricCategory (X : Scheme.{u}) : |
| 69 | letI := moduleMonoidalCategory X |
| 70 | SymmetricCategory X.Modules := |
| 71 | SheafTensorLocalization.sheafOfModulesSymmetricCategory X.sheaf.obj X.ringCatSheaf.property |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SheafMonoidal |