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.CategoryTheory.Adjunction.Basic |
| 3 | |
| 4 | /-! # Cochain Adjunction Transpose -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainAdjunctionTranspose.Construction.CochainAdjunction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Transposing a cochain map through an adjunction, component by component. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v w z |
| 15 | |
| 16 | variable {V : Type u} [Category.{v} V] [HasZeroMorphisms V] |
| 17 | variable {W : Type w} [Category.{z} W] [HasZeroMorphisms W] |
| 18 | variable {L : V ⥤ W} {R : W ⥤ V} [L.PreservesZeroMorphisms] [R.PreservesZeroMorphisms] |
| 19 | variable (a : L ⊣ R) |
| 20 | variable {C : CochainComplex V ℕ} {D : CochainComplex W ℕ} |
| 21 | |
| 22 | def transpose (f : C ⟶ (R.mapHomologicalComplex (ComplexShape.up ℕ)).obj D) : |
| 23 | (L.mapHomologicalComplex (ComplexShape.up ℕ)).obj C ⟶ D := |
| 24 | CochainComplex.ofHom (fun i => (a.homEquiv _ _).symm (f.f i)) (by |
| 25 | intro i |
| 26 | apply (a.homEquiv _ _).injective |
| 27 | change a.homEquiv _ _ ((a.homEquiv _ _).symm (f.f i) ≫ D.d i (i + 1)) = |
| 28 | a.homEquiv _ _ (L.map (C.d i (i + 1)) ≫ (a.homEquiv _ _).symm (f.f (i + 1))) |
| 29 | rw [a.homEquiv_naturality_right, a.homEquiv_naturality_left] |
| 30 | have hi := (a.homEquiv (C.X i) (D.X i)).apply_symm_apply (f.f i) |
| 31 | have hj := (a.homEquiv (C.X (i + 1)) (D.X (i + 1))).apply_symm_apply (f.f (i + 1)) |
| 32 | exact (congrArg (fun z => z ≫ R.map (D.d i (i + 1))) hi).trans |
| 33 | ((f.comm i (i + 1)).trans (congrArg (fun z => C.d i (i + 1) ≫ z) hj.symm))) |
| 34 | |
| 35 | theorem transpose_component |
| 36 | (f : C ⟶ (R.mapHomologicalComplex (ComplexShape.up ℕ)).obj D) (i : ℕ) : |
| 37 | a.homEquiv _ _ ((transpose a f).f i) = f.f i := |
| 38 | (a.homEquiv _ _).apply_symm_apply _ |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainAdjunctionTranspose.Construction.CochainAdjunction |