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.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryCharacters |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.CharacterSheaf |
| 3 | |
| 4 | /-! # Character Groups -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.CharacterGroups.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Characters carry their actual pointwise commutative group law. The group |
| 12 | law is constructed before representability is used; it therefore recovers |
| 13 | the Cartier group law on a representing scheme without an assumed group |
| 14 | comparison. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 18 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj IsMulCommutative |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | variable {C : Type u} [Category.{v} C] |
| 23 | |
| 24 | def characterNatMul (G K : C ⥤ GrpCat.{w}) [∀ X, IsMulCommutative (K.obj X)] |
| 25 | (a b : G ⟶ K) : G ⟶ K where |
| 26 | app X := GrpCat.ofHom ((a.app X).hom * (b.app X).hom) |
| 27 | naturality := by |
| 28 | intro X Y f |
| 29 | apply GrpCat.hom_ext |
| 30 | apply MonoidHom.ext |
| 31 | intro x |
| 32 | change a.app Y (G.map f x) * b.app Y (G.map f x) = K.map f (a.app X x * b.app X x) |
| 33 | exact (congrArg₂ (· * ·) (a.naturality_apply f x) (b.naturality_apply f x)).trans |
| 34 | ((K.map f).hom.map_mul _ _).symm |
| 35 | |
| 36 | def characterNatInv (G K : C ⥤ GrpCat.{w}) [∀ X, IsMulCommutative (K.obj X)] |
| 37 | (a : G ⟶ K) : G ⟶ K where |
| 38 | app X := GrpCat.ofHom ((a.app X).hom⁻¹) |
| 39 | naturality := by |
| 40 | intro X Y f |
| 41 | apply GrpCat.hom_ext |
| 42 | apply MonoidHom.ext |
| 43 | intro x |
| 44 | change (a.app Y (G.map f x))⁻¹ = K.map f ((a.app X x)⁻¹) |
| 45 | exact (congrArg Inv.inv (a.naturality_apply f x)).trans |
| 46 | ((K.map f).hom.map_inv _).symm |
| 47 | |
| 48 | instance characterNatCommGroup (G K : C ⥤ GrpCat.{w}) |
| 49 | [∀ X, IsMulCommutative (K.obj X)] : CommGroup (G ⟶ K) where |
| 50 | one := CartierDuality.CharacterSheaf.Construction.Schemes.trivialGroupNatTrans G K |
| 51 | mul := characterNatMul G K |
| 52 | inv := characterNatInv G K |
| 53 | mul_assoc a b c := by ext X x; exact mul_assoc _ _ _ |
| 54 | one_mul a := by ext X x; exact one_mul _ |
| 55 | mul_one a := by ext X x; exact mul_one _ |
| 56 | inv_mul_cancel a := by ext X x; exact inv_mul_cancel _ |
| 57 | mul_comm a b := by ext X x; exact mul_comm _ _ |
| 58 | |
| 59 | def characterNatPrecompose {F G K : C ⥤ GrpCat.{w}} |
| 60 | [∀ X, IsMulCommutative (K.obj X)] (i : F ⟶ G) : (G ⟶ K) →* (F ⟶ K) where |
| 61 | toFun a := i ≫ a |
| 62 | map_one' := by ext X x; rfl |
| 63 | map_mul' a b := by ext X x; rfl |
| 64 | |
| 65 | variable {S : Scheme.{u}} |
| 66 | |
| 67 | instance characterTarget_comm (T : Over S) (U : (Over T)ᵒᵖ) : |
| 68 | IsMulCommutative |
| 69 | (((Over.forget T).op ⋙ yonedaGrp.obj (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S)).obj U) := by |
| 70 | let G := CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S |
| 71 | have : IsCommMonObj G.X := by |
| 72 | let M := CartierDuality.Characters.Construction.multiplicativeGroupScheme (ULift.{u} ℤ) |
| 73 | have : IsCommMonObj M.X := inferInstanceAs |
| 74 | (IsCommMonObj ((Spec (.of (CartierDuality.Characters.Construction.MultiplicativeGroupCoordinate (ULift.{u} ℤ)))).asOver |
| 75 | (Spec (.of (ULift.{u} ℤ))))) |
| 76 | exact inferInstanceAs (IsCommMonObj |
| 77 | ((Over.pullback (specULiftZIsTerminal.from S)).obj M.X)) |
| 78 | exact inferInstanceAs (IsMulCommutative (U.unop.left ⟶ G.X)) |
| 79 | |
| 80 | abbrev CharacterSections (G : Grp (Over S)) (T : Over S) := |
| 81 | ((Over.forget T).op ⋙ yonedaGrp.obj G ⟶ |
| 82 | (Over.forget T).op ⋙ yonedaGrp.obj (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S)) |
| 83 | |
| 84 | /-- The ordinary character sheaf, retaining the pointwise group law. -/ |
| 85 | def characterGroupPresheaf (G : Grp (Over S)) : (Over S)ᵒᵖ ⥤ GrpCat.{u + 1} where |
| 86 | obj T := GrpCat.of (CharacterSections G T.unop) |
| 87 | map f := GrpCat.ofHom { |
| 88 | toFun a := Functor.whiskerLeft (Over.map f.unop).op a |
| 89 | map_one' := by ext U x; rfl |
| 90 | map_mul' a b := by ext U x; rfl } |
| 91 | map_id T := by |
| 92 | apply GrpCat.hom_ext |
| 93 | apply MonoidHom.ext |
| 94 | intro a |
| 95 | exact (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G).obj.map_id_apply T a |
| 96 | map_comp f g := by |
| 97 | apply GrpCat.hom_ext |
| 98 | apply MonoidHom.ext |
| 99 | intro a |
| 100 | exact (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G).obj.map_comp_apply f g a |
| 101 | |
| 102 | /-- Restriction of characters is a natural group homomorphism. -/ |
| 103 | def characterGroupRestriction {H G : Grp (Over S)} (i : H ⟶ G) : |
| 104 | characterGroupPresheaf G ⟶ characterGroupPresheaf H where |
| 105 | app T := GrpCat.ofHom |
| 106 | (characterNatPrecompose (Functor.whiskerLeft (Over.forget T.unop).op (yonedaGrp.map i))) |
| 107 | naturality := by |
| 108 | intro T U f |
| 109 | apply GrpCat.hom_ext |
| 110 | apply MonoidHom.ext |
| 111 | intro a |
| 112 | rfl |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.CharacterGroups.Construction |