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.TensorLocalMaps |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorPairingMorphisms |
| 9 | |
| 10 | /-! # Tensor Localization Assembly -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorLocalizationAssembly.SheafTensorLocalization |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Tensor products preserve the class of maps inverted by actual module sheafification. -/ |
| 17 | |
| 18 | universe v v' u u' |
| 19 | |
| 20 | open _root_.CategoryTheory MonoidalCategory _root_.PresheafOfModules |
| 21 | |
| 22 | variable {C : Type u} [Category.{u} C] {J : GrothendieckTopology C} |
| 23 | {S : Cᵒᵖ ⥤ CommRingCat.{u}} {R : Sheaf J RingCat.{u}} |
| 24 | (α : (S ⋙ forget₂ CommRingCat RingCat) ⟶ R.obj) |
| 25 | [Presheaf.IsLocallyInjective J α] [Presheaf.IsLocallySurjective J α] |
| 26 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] [HasWeakSheafify J AddCommGrpCat.{u}] |
| 27 | {M₁ M₂ N₁ N₂ : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 28 | |
| 29 | theorem sheafificationW_tensorHom (f : M₁ ⟶ M₂) (g : N₁ ⟶ N₂) |
| 30 | (hf : SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} α f) (hg : SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} α g) : |
| 31 | SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} α (f ⊗ₘ g) := by |
| 32 | obtain ⟨hfi, hfs⟩ := (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW_iff_isLocallyBijective α f).mp hf |
| 33 | obtain ⟨hgi, hgs⟩ := (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW_iff_isLocallyBijective α g).mp hg |
| 34 | have := hfi; have := hfs; have := hgi; have := hgs |
| 35 | rw [SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW_iff] |
| 36 | apply isIso_of_coyoneda_map_bijective |
| 37 | intro Y |
| 38 | have hP : Presheaf.IsSheaf J |
| 39 | ((SheafOfModules.forget R ⋙ restrictScalars α).obj Y).presheaf := Y.isSheaf |
| 40 | have hΨ : Function.Bijective (fun (ψ : M₂ ⊗ N₂ ⟶ |
| 41 | (SheafOfModules.forget R ⋙ restrictScalars α).obj Y) => (f ⊗ₘ g) ≫ ψ) := |
| 42 | ⟨TensorLocalMaps.SheafTensorLocalization.tensorHom_precomp_injective f g hP, TensorPairingMorphisms.SheafTensorLocalization.tensorHom_precomp_surjective f g hP⟩ |
| 43 | have hconj : (fun (x : (sheafification.{u} α).obj (M₂ ⊗ N₂) ⟶ Y) => |
| 44 | (sheafification.{u} α).map (f ⊗ₘ g) ≫ x) = |
| 45 | ⇑((sheafificationAdjunction α).homEquiv (M₁ ⊗ N₁) Y).symm ∘ |
| 46 | (fun ψ => (f ⊗ₘ g) ≫ ψ) ∘ |
| 47 | ⇑((sheafificationAdjunction α).homEquiv (M₂ ⊗ N₂) Y) := by |
| 48 | funext x |
| 49 | simp only [Function.comp_apply, Equiv.eq_symm_apply] |
| 50 | exact (sheafificationAdjunction α).homEquiv_naturality_left (f ⊗ₘ g) x |
| 51 | rw [hconj] |
| 52 | exact ((sheafificationAdjunction α).homEquiv (M₁ ⊗ N₁) Y).symm.bijective.comp |
| 53 | (hΨ.comp ((sheafificationAdjunction α).homEquiv (M₂ ⊗ N₂) Y).bijective) |
| 54 | |
| 55 | lemma isLocallyInjective_tensorHom (f : M₁ ⟶ M₂) (g : N₁ ⟶ N₂) |
| 56 | (hf : SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW α f) (hg : SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW α g) : |
| 57 | Presheaf.IsLocallyInjective J ((toPresheaf _).map (f ⊗ₘ g)) := |
| 58 | ((SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW_iff_isLocallyBijective α (f ⊗ₘ g)).mp |
| 59 | (sheafificationW_tensorHom α f g hf hg)).1 |
| 60 | |
| 61 | instance sheafificationW_isMultiplicative : (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} α).IsMultiplicative := |
| 62 | inferInstanceAs |
| 63 | ((MorphismProperty.isomorphisms _).inverseImage (sheafification.{u} α)).IsMultiplicative |
| 64 | |
| 65 | instance sheafificationW_isMonoidal : (SheafificationLocalEquivalences.SheafTensorLocalization.sheafificationW.{u} α).IsMonoidal := |
| 66 | MorphismProperty.IsMonoidal.mk' _ fun f g hf hg => sheafificationW_tensorHom α f g hf hg |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorLocalizationAssembly.SheafTensorLocalization |