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 | import Mathlib.Algebra.Homology.Additive |
| 2 | import Mathlib.Algebra.Homology.Single |
| 3 | import Mathlib.CategoryTheory.Abelian.FunctorCategory |
| 4 | |
| 5 | /-! # Coefficient Map -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Single.CoefficientMap |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A coefficient functor carries the genuine map from a single object |
| 12 | with its original retained component and inverse single coordinates. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 14 | universe u v w z |
| 15 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 16 | {D : Type w} [Category.{z} D] [Abelian D] |
| 17 | (F : C ⥤ D) [F.Additive] (N : C) (c : ℕ) (K : CochainComplex C ℕ) |
| 18 | (a : (single C (.up ℕ) c).obj N ⟶ K) |
| 19 | |
| 20 | def map : (single D (.up ℕ) c).obj (F.obj N) ⟶ |
| 21 | (F.mapHomologicalComplex (.up ℕ)).obj K := |
| 22 | (singleMapHomologicalComplex F (.up ℕ) c).inv.app N ≫ |
| 23 | (F.mapHomologicalComplex (.up ℕ)).map a |
| 24 | |
| 25 | theorem self (b : N ⟶ K.X c) |
| 26 | (ha : a.f c = (singleObjXSelf (.up ℕ) c N).hom ≫ b) : |
| 27 | (CoefficientMap.map F N c K a).f c = (singleObjXSelf (.up ℕ) c (F.obj N)).hom ≫ F.map b := by |
| 28 | rw [CoefficientMap.map, comp_f, singleMapHomologicalComplex_inv_app_self] |
| 29 | change (_ ≫ _) ≫ F.map (a.f c) = _ |
| 30 | rw [ha, F.map_comp] |
| 31 | simp only [Category.assoc, ← F.map_comp, Iso.inv_hom_id_assoc] |
| 32 | |
| 33 | theorem inverse_self (b : N ⟶ K.X c) |
| 34 | (ha : a.f c = (singleObjXSelf (.up ℕ) c N).hom ≫ b) : |
| 35 | (singleObjXSelf (.up ℕ) c (F.obj N)).inv ≫ (CoefficientMap.map F N c K a).f c = F.map b := by |
| 36 | exact (congrArg (fun f => (singleObjXSelf (.up ℕ) c (F.obj N)).inv ≫ f) |
| 37 | (self F N c K a b ha)).trans |
| 38 | (Iso.inv_hom_id_assoc (singleObjXSelf (.up ℕ) c (F.obj N)) (F.map b)) |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Single.CoefficientMap |