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 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import Mathlib.Algebra.Homology.HomotopyCategory.HomComplexSingle |
| 7 | import Mathlib.Algebra.Homology.Additive |
| 8 | import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic |
| 9 | import OAI.Algebra.Homology.Notation |
| 10 | |
| 11 | /-! # Hom Complex Single -/ |
| 12 | |
| 13 | namespace OAI.Algebra.Homology.HomComplexSingle.CochainComplex.HomComplex |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.CochainComplex |
| 18 | open _root_.CochainComplex.HomComplex |
| 19 | |
| 20 | /-! |
| 21 | # The Hom complex out of an object in degree zero |
| 22 | |
| 23 | For an object `X` and a cochain complex `K`, the Hom complex from `X[0]` to `K` is the complex |
| 24 | `n ↦ Hom(X, K^n)`. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.CategoryTheory Limits |
| 28 | |
| 29 | universe u v |
| 30 | |
| 31 | variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] |
| 32 | |
| 33 | set_option backward.isDefEq.respectTransparency.types false in |
| 34 | set_option backward.isDefEq.respectTransparency false in |
| 35 | /-- Let `C` be a preadditive category with a zero object, `X` an object, and `K` an integer-indexed |
| 36 | cochain complex in `C`. This identifies the Hom complex from `X[0]` to `K` with the complex of |
| 37 | abelian groups `n ↦ Hom_C(X, K^n)`, whose differential is postcomposition with the differential |
| 38 | of `K`. -/ |
| 39 | def fromSingleZeroIsoPreadditiveCoyoneda (X : C) (K : CochainComplex C ℤ) : |
| 40 | CochainComplex.HomComplex ((CochainComplex.singleFunctor C 0).obj X) K ≅ |
| 41 | ((preadditiveCoyoneda.obj (.op X)).mapHomologicalComplex |
| 42 | ℤᵘᵖ).obj K := |
| 43 | HomologicalComplex.Hom.isoOfComponents |
| 44 | (fun n ↦ (Cochain.fromSingleEquiv (p := 0) (q := n) (n := n) |
| 45 | (zero_add n)).toAddCommGrpIso) |
| 46 | (by |
| 47 | intro i j hij |
| 48 | apply AddCommGrpCat.hom_ext |
| 49 | ext z |
| 50 | obtain ⟨f, rfl⟩ := Cochain.fromSingleMk_surjective z i (zero_add i) |
| 51 | have he : Cochain.fromSingleEquiv (zero_add j) |
| 52 | (CochainComplex.HomComplex.δ i j |
| 53 | (Cochain.fromSingleMk f (zero_add i))) = f ≫ K.d i j := by |
| 54 | rw [Cochain.δ_fromSingleMk f (zero_add i) j j (zero_add j)] |
| 55 | simp |
| 56 | have hleft : (preadditiveCoyoneda.obj (.op X)).map (K.d i j) |
| 57 | (Cochain.fromSingleEquiv (zero_add i) |
| 58 | (Cochain.fromSingleMk f (zero_add i))) = f ≫ K.d i j := by |
| 59 | rw [Cochain.fromSingleEquiv_fromSingleMk] |
| 60 | rfl |
| 61 | have hcalc := hleft.trans he.symm |
| 62 | simp only [AddCommGrpCat.comp_apply, AddEquiv.toAddCommGrpIso_hom, |
| 63 | Functor.mapHomologicalComplex_obj_d] |
| 64 | convert hcalc using 1 <;> rfl) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.Algebra.Homology.HomComplexSingle.CochainComplex.HomComplex |