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.CategoryTheory.Monoidal.Cartesian.Grp |
| 2 | import Mathlib.Algebra.Group.TypeTags.Basic |
| 3 | import Mathlib.Algebra.Ring.Defs |
| 4 | |
| 5 | /-! # Group Endomorphism Ring -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.GroupEndomorphismRing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # The actual ring of endomorphisms of a commutative group object |
| 12 | |
| 13 | Addition is the group law on the target; multiplication is composition. In the category |
| 14 | of schemes over a field, these are algebraic group endomorphisms, rather than arbitrary |
| 15 | linear endomorphisms of a cohomology model. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory MonoidalCategory CartesianMonoidalCategory |
| 19 | open scoped MonObj |
| 20 | |
| 21 | variable {C : Type*} [Category* C] [CartesianMonoidalCategory C] [BraidedCategory C] |
| 22 | (X : C) [GrpObj X] [IsCommMonObj X] |
| 23 | |
| 24 | /-- Algebraic group endomorphisms, written additively for their pointwise group law. -/ |
| 25 | def GroupEndomorphism := Additive (Grp.mk X ⟶ Grp.mk X) |
| 26 | |
| 27 | instance CMGroupEndomorphismRing.localInstance1 : AddCommGroup (GroupEndomorphism X) := |
| 28 | inferInstanceAs (AddCommGroup (Additive (Grp.mk X ⟶ Grp.mk X))) |
| 29 | |
| 30 | /-- The endomorphism ring has the actual pointwise group sum and ordinary composition. -/ |
| 31 | instance groupEndomorphismRing : _root_.Ring (GroupEndomorphism X) where |
| 32 | toAddCommGroup := inferInstance |
| 33 | mul f g := Additive.ofMul (g.toMul ≫ f.toMul) |
| 34 | one := Additive.ofMul (𝟙 (Grp.mk X)) |
| 35 | mul_assoc f g h := congrArg Additive.ofMul (Category.assoc h.toMul g.toMul f.toMul).symm |
| 36 | one_mul f := congrArg Additive.ofMul (Category.comp_id f.toMul) |
| 37 | mul_one f := congrArg Additive.ofMul (Category.id_comp f.toMul) |
| 38 | left_distrib f g h := congrArg Additive.ofMul (MonObj.mul_comp g.toMul h.toMul f.toMul) |
| 39 | right_distrib f g h := congrArg Additive.ofMul (MonObj.comp_mul h.toMul f.toMul g.toMul) |
| 40 | zero_mul f := congrArg Additive.ofMul (MonObj.comp_one f.toMul) |
| 41 | mul_zero f := congrArg Additive.ofMul (MonObj.one_comp f.toMul) |
| 42 | |
| 43 | /-- The underlying group homomorphism remains an actual morphism of the ambient category. -/ |
| 44 | def GroupEndomorphism.toHom (f : GroupEndomorphism X) : X ⟶ X := f.toMul.hom.hom |
| 45 | |
| 46 | instance CMGroupEndomorphismRing.localInstance2 (f : GroupEndomorphism X) : IsMonHom (GroupEndomorphism.toHom X f) := |
| 47 | f.toMul.hom.isMonHom_hom |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.ComplexMultiplication.GroupEndomorphismRing |