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.Algebra.Category.ModuleCat.Presheaf.Monoidal |
| 8 | import Mathlib.Algebra.Category.ModuleCat.Presheaf.Sheafification |
| 9 | import Mathlib.CategoryTheory.Localization.Monoidal.Basic |
| 10 | |
| 11 | /-! # Sheafification Local Equivalences -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SheafificationLocalEquivalences.SheafTensorLocalization |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! The module-sheafification localization is exactly local bijectivity. -/ |
| 18 | |
| 19 | universe v v' u u' |
| 20 | |
| 21 | open _root_.CategoryTheory MonoidalCategory _root_.PresheafOfModules |
| 22 | |
| 23 | variable {C : Type u'} [Category.{v'} C] {J : GrothendieckTopology C} |
| 24 | {R₀ : Cᵒᵖ ⥤ RingCat.{u}} {R : Sheaf J RingCat.{u}} (α : R₀ ⟶ R.obj) |
| 25 | [Presheaf.IsLocallyInjective J α] [Presheaf.IsLocallySurjective J α] |
| 26 | [J.WEqualsLocallyBijective AddCommGrpCat.{v}] [HasWeakSheafify J AddCommGrpCat.{v}] |
| 27 | |
| 28 | /-- The class of morphisms of presheaves of modules inverted by the sheafification |
| 29 | functor: the localizing class for `SheafOfModules`. -/ |
| 30 | def sheafificationW : MorphismProperty (PresheafOfModules.{v} R₀) := |
| 31 | (MorphismProperty.isomorphisms _).inverseImage (sheafification.{v} α) |
| 32 | |
| 33 | lemma sheafificationW_iff {M N : PresheafOfModules.{v} R₀} (f : M ⟶ N) : |
| 34 | sheafificationW.{v} α f ↔ IsIso ((sheafification.{v} α).map f) := |
| 35 | Iff.rfl |
| 36 | |
| 37 | /-- Membership in the localizing class is local bijectivity of the underlying morphism |
| 38 | of presheaves of abelian groups: the sheafification of modules inverts exactly the |
| 39 | locally bijective maps. -/ |
| 40 | lemma sheafificationW_iff_isLocallyBijective {M N : PresheafOfModules.{v} R₀} |
| 41 | (f : M ⟶ N) : |
| 42 | sheafificationW.{v} α f ↔ |
| 43 | Presheaf.IsLocallyInjective J ((toPresheaf R₀).map f) ∧ |
| 44 | Presheaf.IsLocallySurjective J ((toPresheaf R₀).map f) := by |
| 45 | rw [sheafificationW_iff] |
| 46 | constructor |
| 47 | · intro h |
| 48 | have h1 : IsIso ((SheafOfModules.toSheaf R).map ((sheafification.{v} α).map f)) := |
| 49 | inferInstance |
| 50 | have h2 : IsIso ((presheafToSheaf J AddCommGrpCat).map ((toPresheaf R₀).map f)) := h1 |
| 51 | have h3 : J.W ((toPresheaf R₀).map f) := (J.W_iff _).mpr h2 |
| 52 | exact ⟨h3.isLocallyInjective, h3.isLocallySurjective⟩ |
| 53 | · rintro ⟨h1, h2⟩ |
| 54 | have h3 : J.W ((toPresheaf R₀).map f) := J.W_of_isLocallyBijective _ |
| 55 | have h4 : IsIso ((presheafToSheaf J AddCommGrpCat).map ((toPresheaf R₀).map f)) := |
| 56 | (J.W_iff _).mp h3 |
| 57 | have h5 : IsIso ((SheafOfModules.toSheaf R).map ((sheafification.{v} α).map f)) := h4 |
| 58 | exact isIso_of_reflects_iso _ (SheafOfModules.toSheaf R) |
| 59 | |
| 60 | variable (R' : Sheaf J RingCat.{u}) |
| 61 | |
| 62 | /-- At `α = 𝟙` the sheafification adjunction is reflective (`forget` is fully faithful |
| 63 | and `restrictScalars (𝟙 _)` is an equivalence), so the sheafification functor is a |
| 64 | localization at `sheafificationW`. -/ |
| 65 | instance sheafificationW_isLocalization : |
| 66 | (sheafification.{v} (𝟙 R'.obj)).IsLocalization (sheafificationW.{v} (𝟙 R'.obj)) := by |
| 67 | have h : ((SheafOfModules.forget R' ⋙ restrictScalars (𝟙 R'.obj))).Full := |
| 68 | Functor.Full.comp _ _ |
| 69 | have h' : ((SheafOfModules.forget R' ⋙ restrictScalars (𝟙 R'.obj))).Faithful := |
| 70 | Functor.Faithful.comp _ _ |
| 71 | exact (sheafificationAdjunction (𝟙 R'.obj)).isLocalization |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SheafificationLocalEquivalences.SheafTensorLocalization |