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.ShortComplex.Abelian |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 3 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 4 | |
| 5 | /-! # Functorial Cokernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.FunctorialCokernel.Resolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual cokernel of a natural map into an additive endofunctor |
| 12 | is itself an additive functor, with its canonical short exact sequence. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | variable {C : Type*} [Category* C] [Abelian C] (T : C ⥤ C) (η : 𝟭 C ⟶ T) |
| 17 | |
| 18 | def quotientFunctor : C ⥤ C where |
| 19 | obj X := cokernel (η.app X) |
| 20 | map {X Y} f := cokernel.map (η.app X) (η.app Y) f (T.map f) (η.naturality f).symm |
| 21 | map_id X := by |
| 22 | apply (cancel_epi (cokernel.π (η.app X))).mp |
| 23 | simp only [cokernel.map, cokernel.π_desc, T.map_id, Category.id_comp, Category.comp_id] |
| 24 | map_comp f g := by |
| 25 | apply (cancel_epi (cokernel.π (η.app _))).mp |
| 26 | simp only [cokernel.map, cokernel.π_desc, cokernel.π_desc_assoc, T.map_comp, Category.assoc] |
| 27 | |
| 28 | instance quotientFunctor_additive [T.Additive] : (quotientFunctor T η).Additive where |
| 29 | map_add {X Y} f g := by |
| 30 | apply (cancel_epi (cokernel.π (η.app X))).mp |
| 31 | change cokernel.π (η.app X) ≫ cokernel.map (η.app X) (η.app Y) (f + g) (T.map (f + g)) |
| 32 | (η.naturality (f + g)).symm = |
| 33 | cokernel.π (η.app X) ≫ |
| 34 | (cokernel.map (η.app X) (η.app Y) f (T.map f) (η.naturality f).symm + |
| 35 | cokernel.map (η.app X) (η.app Y) g (T.map g) (η.naturality g).symm) |
| 36 | simp only [Preadditive.comp_add, cokernel.map, cokernel.π_desc, T.map_add, Preadditive.add_comp] |
| 37 | |
| 38 | def quotientProjection : T ⟶ quotientFunctor T η where |
| 39 | app X := cokernel.π (η.app X) |
| 40 | naturality {X _Y} _f := (cokernel.π_desc (η.app X) _ _).symm |
| 41 | |
| 42 | theorem unit_projection_zero (X : C) : η.app X ≫ (quotientProjection T η).app X = 0 := |
| 43 | cokernel.condition (η.app X) |
| 44 | |
| 45 | def quotientShortComplex (X : C) : ShortComplex C := |
| 46 | ShortComplex.mk (η.app X) ((quotientProjection T η).app X) (unit_projection_zero T η X) |
| 47 | |
| 48 | theorem quotientShortComplex_shortExact (X : C) [Mono (η.app X)] : |
| 49 | (quotientShortComplex T η X).ShortExact where |
| 50 | exact := ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel (η.app X)) |
| 51 | mono_f := inferInstanceAs (Mono (η.app X)) |
| 52 | epi_g := inferInstanceAs (Epi (cokernel.π (η.app X))) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.Comparison.Betti.FunctorialCokernel.Resolution |