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.CategoryTheory.Limits.FormalCoproducts.Basic |
| 8 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 9 | |
| 10 | /-! # Formal Coproduct Evaluation Additive -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FormalCoproductEvaluationAdditive |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Additivity of formal coproduct evaluation |
| 18 | |
| 19 | The extension of a presheaf to formal coproducts by products is additive when its target is |
| 20 | preadditive. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Limits.FormalCoproduct Opposite |
| 24 | |
| 25 | universe v w v' u u' |
| 26 | |
| 27 | instance formalCoproductEvalOp_additive |
| 28 | {C : Type u} [Category.{v} C] |
| 29 | {A : Type u'} [Category.{v'} A] [Preadditive A] |
| 30 | [HasProducts.{w} A] : |
| 31 | (evalOp.{w} C A).Additive where |
| 32 | map_add := by |
| 33 | intro F G α β |
| 34 | apply NatTrans.ext |
| 35 | funext Z |
| 36 | change CategoryTheory.Limits.Pi.map (fun i : Z.unop.I ↦ |
| 37 | (α + β).app (op (Z.unop.obj i))) = |
| 38 | CategoryTheory.Limits.Pi.map (fun i : Z.unop.I ↦ α.app (op (Z.unop.obj i))) + |
| 39 | CategoryTheory.Limits.Pi.map (fun i : Z.unop.I ↦ β.app (op (Z.unop.obj i))) |
| 40 | apply CategoryTheory.Limits.Pi.hom_ext |
| 41 | intro i |
| 42 | rw [CategoryTheory.Limits.Pi.map_π, Preadditive.add_comp, CategoryTheory.Limits.Pi.map_π, CategoryTheory.Limits.Pi.map_π] |
| 43 | exact Preadditive.comp_add |
| 44 | (∏ᶜ fun i : Z.unop.I ↦ F.obj (op (Z.unop.obj i))) |
| 45 | (F.obj (op (Z.unop.obj i))) (G.obj (op (Z.unop.obj i))) |
| 46 | (CategoryTheory.Limits.Pi.π (fun i : Z.unop.I ↦ F.obj (op (Z.unop.obj i))) i) |
| 47 | (α.app (op (Z.unop.obj i))) (β.app (op (Z.unop.obj i))) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FormalCoproductEvaluationAdditive |