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.SheafificationLocalEquivalences |
| 8 | |
| 9 | /-! # Tensor Local Maps -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorLocalMaps.SheafTensorLocalization |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | Tensoring local surjections remains locally surjective, and maps into sheaves are detected after |
| 17 | tensoring local surjections. |
| 18 | |
| 19 | ## Provenance |
| 20 | |
| 21 | The declarations in this file are adapted from AINTLIB's |
| 22 | `projects/ModularCurves/ModularCurves/ForMathlib/SheafOfModulesMonoidal.lean`. |
| 23 | -/ |
| 24 | |
| 25 | universe v v' u u' |
| 26 | |
| 27 | open _root_.CategoryTheory MonoidalCategory _root_.PresheafOfModules |
| 28 | |
| 29 | variable {C : Type u'} [Category.{v'} C] {J : GrothendieckTopology C} |
| 30 | {R₀ : Cᵒᵖ ⥤ RingCat.{u}} {R : Sheaf J RingCat.{u}} (α : R₀ ⟶ R.obj) |
| 31 | [Presheaf.IsLocallyInjective J α] [Presheaf.IsLocallySurjective J α] |
| 32 | [J.WEqualsLocallyBijective AddCommGrpCat.{v}] [HasWeakSheafify J AddCommGrpCat.{v}] |
| 33 | |
| 34 | variable {S : Cᵒᵖ ⥤ CommRingCat.{u}} |
| 35 | {M₁ M₂ N₁ N₂ : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 36 | |
| 37 | omit [J.WEqualsLocallyBijective AddCommGrpCat] [HasWeakSheafify J AddCommGrpCat] in |
| 38 | /-- The locally-surjective half of the [GAP1-W-MONO] tensor-stability leaf: the tensor |
| 39 | product of locally surjective morphisms of presheaves of modules is locally surjective. |
| 40 | Sections of the tensor presheaf are finite sums of simple tensors; each factor is |
| 41 | locally hit, and the finitely many image sieves intersect to a covering sieve. -/ |
| 42 | lemma isLocallySurjective_tensorHom (f : M₁ ⟶ M₂) (g : N₁ ⟶ N₂) |
| 43 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map f)] |
| 44 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map g)] : |
| 45 | Presheaf.IsLocallySurjective J ((toPresheaf _).map (f ⊗ₘ g)) := by |
| 46 | constructor |
| 47 | intro U t |
| 48 | induction t using TensorProduct.inductionOn with |
| 49 | | tmul m n => |
| 50 | refine J.superset_covering ?_ (J.intersection_covering |
| 51 | (Presheaf.imageSieve_mem J ((toPresheaf _).map f) m) |
| 52 | (Presheaf.imageSieve_mem J ((toPresheaf _).map g) n)) |
| 53 | rintro V p ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 54 | refine ⟨a ⊗ₜ b, ?_⟩ |
| 55 | have ha' : f.app (Opposite.op V) a = M₂.map p.op m := ha |
| 56 | have hb' : g.app (Opposite.op V) b = N₂.map p.op n := hb |
| 57 | show (f ⊗ₘ g).app (Opposite.op V) (a ⊗ₜ b) = (M₂ ⊗ N₂).map p.op (m ⊗ₜ n) |
| 58 | erw [PresheafOfModulesOfCommRing.Monoidal.tensorHom_app, ModuleCat.MonoidalCategory.tensorHom_tmul, |
| 59 | PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul] |
| 60 | rw [ha', hb'] |
| 61 | rfl |
| 62 | | add t₁ t₂ h₁ h₂ => |
| 63 | refine J.superset_covering ?_ (J.intersection_covering h₁ h₂) |
| 64 | rintro V p ⟨⟨x₁, hx₁⟩, ⟨x₂, hx₂⟩⟩ |
| 65 | refine ⟨x₁ + x₂, ?_⟩ |
| 66 | have hx₁' : (f ⊗ₘ g).app (Opposite.op V) x₁ = (M₂ ⊗ N₂).map p.op t₁ := hx₁ |
| 67 | have hx₂' : (f ⊗ₘ g).app (Opposite.op V) x₂ = (M₂ ⊗ N₂).map p.op t₂ := hx₂ |
| 68 | show (f ⊗ₘ g).app (Opposite.op V) (x₁ + x₂) = (M₂ ⊗ N₂).map p.op (t₁ + t₂) |
| 69 | erw [map_add, map_add] |
| 70 | rw [hx₁', hx₂'] |
| 71 | rfl |
| 72 | |
| 73 | omit [J.WEqualsLocallyBijective AddCommGrpCat] [HasWeakSheafify J AddCommGrpCat] in |
| 74 | /-- **([W-MONO-inj])** Precomposition with the tensor of locally surjective morphisms |
| 75 | is injective on morphisms into a presheaf of modules whose underlying presheaf is a |
| 76 | sheaf: two maps out of the tensor agreeing after `f ⊗ₘ g` agree on simple tensors |
| 77 | locally, hence agree by separatedness. -/ |
| 78 | theorem tensorHom_precomp_injective (f : M₁ ⟶ M₂) (g : N₁ ⟶ N₂) |
| 79 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map f)] |
| 80 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map g)] |
| 81 | {P : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 82 | (hP : Presheaf.IsSheaf J P.presheaf) : |
| 83 | Function.Injective (fun (ψ : M₂ ⊗ N₂ ⟶ P) => (f ⊗ₘ g) ≫ ψ) := by |
| 84 | intro ψ₁ ψ₂ h |
| 85 | refine hom_ext (fun U => ?_) |
| 86 | ext t |
| 87 | induction t using TensorProduct.inductionOn with |
| 88 | | tmul m n => |
| 89 | have key : ∀ (ψ : M₂ ⊗ N₂ ⟶ P) {V : C} (p : V ⟶ U.unop) |
| 90 | (a : M₁.obj (Opposite.op V)) (b : N₁.obj (Opposite.op V)) |
| 91 | (ha : f.app (Opposite.op V) a = M₂.map p.op m) |
| 92 | (hb : g.app (Opposite.op V) b = N₂.map p.op n), |
| 93 | P.map p.op (ψ.app U (m ⊗ₜ n)) = |
| 94 | ((f ⊗ₘ g) ≫ ψ).app (Opposite.op V) (a ⊗ₜ b) := by |
| 95 | intro ψ V p a b ha hb |
| 96 | have hnat : ∀ x, P.map p.op (ψ.app U x) = |
| 97 | ψ.app (Opposite.op V) ((M₂ ⊗ N₂).map p.op x) := |
| 98 | fun x => (CategoryTheory.congr_fun (ψ.naturality p.op) x).symm |
| 99 | have hres : (M₂ ⊗ N₂).map p.op (m ⊗ₜ n) = |
| 100 | (f ⊗ₘ g).app (Opposite.op V) (a ⊗ₜ b) := by |
| 101 | erw [PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul, PresheafOfModulesOfCommRing.Monoidal.tensorHom_app, |
| 102 | ModuleCat.MonoidalCategory.tensorHom_tmul] |
| 103 | rw [ha, hb] |
| 104 | rfl |
| 105 | exact (hnat (m ⊗ₜ n)).trans (congrArg (ψ.app (Opposite.op V)) hres) |
| 106 | obtain ⟨U⟩ := U |
| 107 | apply hP.isSeparated _ _ (J.intersection_covering |
| 108 | (Presheaf.imageSieve_mem J ((toPresheaf _).map f) m) |
| 109 | (Presheaf.imageSieve_mem J ((toPresheaf _).map g) n)) |
| 110 | rintro V p ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 111 | have ha' : f.app (Opposite.op V) a = M₂.map p.op m := ha |
| 112 | have hb' : g.app (Opposite.op V) b = N₂.map p.op n := hb |
| 113 | exact (key ψ₁ p a b ha' hb').trans ((congrArg (fun φ => φ.app (Opposite.op V) |
| 114 | (a ⊗ₜ b)) h).trans (key ψ₂ p a b ha' hb').symm) |
| 115 | | add s t hs ht => |
| 116 | erw [map_add, map_add] |
| 117 | rw [hs, ht] |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorLocalMaps.SheafTensorLocalization |