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 OAI.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |
| 2 | import Mathlib.Algebra.Homology.Linear |
| 3 | |
| 4 | /-! # Central Null Homotopy -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CentralNullHomotopy |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A scalar nullhomotopy on a source kills maps into a complex where |
| 11 | that same scalar has an actual inverse. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 13 | universe u v w |
| 14 | variable (R : Type u) [CommRing R] |
| 15 | {C : Type v} [Category.{w} C] [Preadditive C] [Linear R C] |
| 16 | {ι : Type*} {c : ComplexShape ι} {K L : HomologicalComplex C c} |
| 17 | |
| 18 | def of_inverse (a : R) (hK : Homotopy (a • 𝟙 K) 0) |
| 19 | (b : L ⟶ L) (hb : a • b = 𝟙 L) (f : K ⟶ L) : Homotopy f 0 := |
| 20 | (Homotopy.ofEq (by |
| 21 | calc f = f ≫ (a • b) := by rw [hb, Category.comp_id] |
| 22 | _ = (a • 𝟙 K) ≫ (f ≫ b) := by |
| 23 | rw [Linear.comp_smul, Linear.smul_comp, Category.id_comp])).trans |
| 24 | ((hK.compRight (f ≫ b)).trans (Homotopy.ofEq (zero_comp))) |
| 25 | |
| 26 | variable {ι : Type*} {c : ComplexShape ι} (K : HomologicalComplex (ModuleCat.{u} R) c) |
| 27 | |
| 28 | theorem dual_scalar (a : R) : DualComplexHomology.map R (a • 𝟙 K) = |
| 29 | a • 𝟙 (DualComplexHomology.complex R K) := by |
| 30 | apply HomologicalComplex.Hom.ext |
| 31 | funext i |
| 32 | apply ModuleCat.hom_ext |
| 33 | apply LinearMap.ext |
| 34 | intro φ |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | exact φ.map_smul a x |
| 38 | |
| 39 | def dual (a : R) (h : Homotopy (a • 𝟙 K) 0) : |
| 40 | Homotopy (a • 𝟙 (DualComplexHomology.complex R K)) 0 := |
| 41 | (Homotopy.ofEq (dual_scalar R K a).symm).trans |
| 42 | (((ExactModuleDualFunctor.functor R).mapHomotopy h.op).trans |
| 43 | (Homotopy.ofEq (by |
| 44 | apply HomologicalComplex.Hom.ext |
| 45 | funext i |
| 46 | apply ModuleCat.hom_ext |
| 47 | apply LinearMap.ext |
| 48 | intro φ |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | exact φ.map_zero))) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CentralNullHomotopy |