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 Pairing Locality -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorPairingLocality.SheafTensorLocalization |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | universe v v' u u' |
| 16 | |
| 17 | open _root_.CategoryTheory MonoidalCategory _root_.PresheafOfModules |
| 18 | |
| 19 | variable {C : Type u} [Category.{u} C] {J : GrothendieckTopology C} |
| 20 | {S : Cᵒᵖ ⥤ CommRingCat.{u}} |
| 21 | {M₁ M₂ N₁ N₂ : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 22 | (f : M₁ ⟶ M₂) (g : N₁ ⟶ N₂) |
| 23 | [Presheaf.IsLocallyInjective J ((toPresheaf _).map f)] |
| 24 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map f)] |
| 25 | [Presheaf.IsLocallyInjective J ((toPresheaf _).map g)] |
| 26 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map g)] |
| 27 | {P : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 28 | (hP : Presheaf.IsSheaf J P.presheaf) (χ : M₁ ⊗ N₁ ⟶ P) |
| 29 | |
| 30 | include hP in |
| 31 | omit [Presheaf.IsLocallySurjective J ((toPresheaf _).map f)] |
| 32 | [Presheaf.IsLocallySurjective J ((toPresheaf _).map g)] in |
| 33 | |
| 34 | lemma chi_app_congr {V : C} (a a' : M₁.obj (Opposite.op V)) |
| 35 | (b b' : N₁.obj (Opposite.op V)) |
| 36 | (hfa : f.app (Opposite.op V) a = f.app (Opposite.op V) a') |
| 37 | (hgb : g.app (Opposite.op V) b = g.app (Opposite.op V) b') : |
| 38 | χ.app (Opposite.op V) (a ⊗ₜ b) = χ.app (Opposite.op V) (a' ⊗ₜ b') := by |
| 39 | have hfa' : ((toPresheaf _).map f).app (Opposite.op V) a = |
| 40 | ((toPresheaf _).map f).app (Opposite.op V) a' := hfa |
| 41 | have hgb' : ((toPresheaf _).map g).app (Opposite.op V) b = |
| 42 | ((toPresheaf _).map g).app (Opposite.op V) b' := hgb |
| 43 | apply hP.isSeparated _ _ (J.intersection_covering |
| 44 | (Presheaf.equalizerSieve_mem J ((toPresheaf _).map f) a a' hfa') |
| 45 | (Presheaf.equalizerSieve_mem J ((toPresheaf _).map g) b b' hgb')) |
| 46 | rintro W q ⟨hqa, hqb⟩ |
| 47 | have hnat : ∀ x : ((M₁ ⊗ N₁).obj (Opposite.op V) : Type u), |
| 48 | P.presheaf.map q.op (χ.app (Opposite.op V) x) = |
| 49 | χ.app (Opposite.op W) ((M₁ ⊗ N₁).map q.op x) := |
| 50 | fun x => (CategoryTheory.congr_fun (χ.naturality q.op) x).symm |
| 51 | erw [hnat, hnat] |
| 52 | congr 1 |
| 53 | erw [PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul, PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul] |
| 54 | have hqa' : M₁.map q.op a = M₁.map q.op a' := hqa |
| 55 | have hqb' : N₁.map q.op b = N₁.map q.op b' := hqb |
| 56 | rw [hqa', hqb'] |
| 57 | |
| 58 | def IsPairingSection {U : Cᵒᵖ} (m : M₂.obj U) (n : N₂.obj U) |
| 59 | (s : P.obj U) : Prop := |
| 60 | ∀ ⦃V : C⦄ (p : V ⟶ U.unop) (a : M₁.obj (Opposite.op V)) (b : N₁.obj (Opposite.op V)), |
| 61 | f.app (Opposite.op V) a = M₂.map p.op m → g.app (Opposite.op V) b = N₂.map p.op n → |
| 62 | P.map p.op s = χ.app (Opposite.op V) (a ⊗ₜ b) |
| 63 | |
| 64 | lemma pom_map_comp (M : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)) |
| 65 | {X : Cᵒᵖ} {V W : C} (q : W ⟶ V) (p : V ⟶ X.unop) (x : M.obj X) : |
| 66 | M.map (q ≫ p).op x = M.map q.op (M.map p.op x) := |
| 67 | show M.presheaf.map (q ≫ p).op x = M.presheaf.map q.op (M.presheaf.map p.op x) by |
| 68 | rw [op_comp, M.presheaf.map_comp] |
| 69 | rfl |
| 70 | |
| 71 | lemma pom_napp_map {A B : PresheafOfModules.{u} (S ⋙ forget₂ CommRingCat RingCat)} |
| 72 | (φ : A ⟶ B) {V W : C} (q : W ⟶ V) (x : A.obj (Opposite.op V)) : |
| 73 | φ.app (Opposite.op W) (A.map q.op x) = B.map q.op (φ.app (Opposite.op V) x) := |
| 74 | CategoryTheory.congr_fun (φ.naturality q.op) x |
| 75 | |
| 76 | variable {f g} in |
| 77 | lemma chi_value {V W : C} (q : W ⟶ V) (a : M₁.obj (Opposite.op V)) |
| 78 | (b : N₁.obj (Opposite.op V)) : |
| 79 | P.presheaf.map q.op (χ.app (Opposite.op V) (a ⊗ₜ b)) = |
| 80 | χ.app (Opposite.op W) (M₁.map q.op a ⊗ₜ N₁.map q.op b) := by |
| 81 | refine ((CategoryTheory.congr_fun (χ.naturality q.op) (a ⊗ₜ b)).symm).trans ?_ |
| 82 | exact congrArg (χ.app (Opposite.op W)) (by erw [PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul]; rfl) |
| 83 | |
| 84 | variable {f g} in |
| 85 | |
| 86 | lemma isPreimagePair_restrict {X : Cᵒᵖ} {m : M₂.obj X} {n : N₂.obj X} |
| 87 | {V W : C} (q : W ⟶ V) (p : V ⟶ X.unop) |
| 88 | (a : M₁.obj (Opposite.op V)) (b : N₁.obj (Opposite.op V)) |
| 89 | (ha : f.app (Opposite.op V) a = M₂.map p.op m) |
| 90 | (hb : g.app (Opposite.op V) b = N₂.map p.op n) : |
| 91 | f.app (Opposite.op W) (M₁.map q.op a) = M₂.map (q ≫ p).op m ∧ |
| 92 | g.app (Opposite.op W) (N₁.map q.op b) = N₂.map (q ≫ p).op n := |
| 93 | ⟨by rw [pom_napp_map f q a, ha, ← pom_map_comp], |
| 94 | by rw [pom_napp_map g q b, hb, ← pom_map_comp]⟩ |
| 95 | |
| 96 | variable {f g} in |
| 97 | include hP in |
| 98 | omit [Presheaf.IsLocallyInjective J ((toPresheaf _).map f)] |
| 99 | [Presheaf.IsLocallyInjective J ((toPresheaf _).map g)] in |
| 100 | lemma isPairingSection_unique {U : Cᵒᵖ} {m : M₂.obj U} {n : N₂.obj U} |
| 101 | {s s' : P.obj U} (hs : IsPairingSection f g χ m n s) |
| 102 | (hs' : IsPairingSection f g χ m n s') : s = s' := by |
| 103 | apply hP.isSeparated _ _ (J.intersection_covering |
| 104 | (Presheaf.imageSieve_mem J ((toPresheaf _).map f) m) |
| 105 | (Presheaf.imageSieve_mem J ((toPresheaf _).map g) n)) |
| 106 | rintro V p ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 107 | have ha' : f.app (Opposite.op V) a = M₂.map p.op m := ha |
| 108 | have hb' : g.app (Opposite.op V) b = N₂.map p.op n := hb |
| 109 | exact (hs p a b ha' hb').trans (hs' p a b ha' hb').symm |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.TensorPairingLocality.SheafTensorLocalization |