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.PELModuli.CMPoints.CharacterRetracts |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.AffinePullback |
| 3 | import OAI.AlgebraicGeometry.GroupSchemes.LikeCharacters |
| 4 | |
| 5 | /-! # Base Characters -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.BaseCharacters |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Characters over the base scheme are actual group-scheme |
| 12 | homomorphisms. For an FiniteEtale affine presentation these are precisely its |
| 13 | grouplike coordinate characters. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | def cartierCharactersIso {S : Scheme.{0}} {F G : (Over S)ᵒᵖ ⥤ GrpCat} (e : F ≅ G) : |
| 20 | DualityPairing.cartierCharacters F ≅ DualityPairing.cartierCharacters G := |
| 21 | { hom := DualityPairing.restrictCharacters e.inv |
| 22 | inv := DualityPairing.restrictCharacters e.hom |
| 23 | hom_inv_id := by rw [← CharacterRetracts.restrictCharacters_comp, e.hom_inv_id, CharacterRetracts.restrictCharacters_id] |
| 24 | inv_hom_id := by rw [← CharacterRetracts.restrictCharacters_comp, e.inv_hom_id, CharacterRetracts.restrictCharacters_id] } |
| 25 | |
| 26 | def baseCharactersEquiv {S : Scheme.{0}} (F : (Over S)ᵒᵖ ⥤ GrpCat) : |
| 27 | (DualityPairing.cartierCharacters F).obj (.op (Over.mk (𝟙 S))) ≃ |
| 28 | (F ⟶ yonedaGrp.obj (AbelianScheme.CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S)) := |
| 29 | (Equivalence.congrLeft (Over.equivalenceOfIsTerminal (Over.mkIdTerminal (X := S))).op).fullyFaithfulInverse.homEquiv.symm |
| 30 | |
| 31 | def groupBaseCharactersEquiv {S : Scheme.{0}} (G : Grp (Over S)) : |
| 32 | (DualityPairing.cartierCharacters (yonedaGrp.obj G)).obj (.op (Over.mk (𝟙 S))) ≃ |
| 33 | (G ⟶ AbelianScheme.CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S) := |
| 34 | (baseCharactersEquiv (yonedaGrp.obj G)).trans yonedaGrpFullyFaithful.homEquiv.symm |
| 35 | |
| 36 | def affineBaseCharactersEquiv (k : Type) [Field k] (G : Grp (Over (Spec (.of k)))) : |
| 37 | (DualityPairing.cartierCharacters (yonedaGrp.obj G)).obj (.op (Over.mk (𝟙 (Spec (.of k))))) ≃ |
| 38 | (G ⟶ AbelianScheme.CartierDuality.Characters.Construction.multiplicativeGroupScheme k) := |
| 39 | (groupBaseCharactersEquiv G).trans |
| 40 | (AbelianScheme.CartierDuality.AffinePullback.Construction.Schemes.multiplicativeGroupOverSpecIso k).homToEquiv |
| 41 | |
| 42 | def coordinateHopfGroupIso {k : Type} [Field k] (G : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) : |
| 43 | letI := G.coordinateHopf |
| 44 | AbelianScheme.CartierDuality.Characters.Construction.affineHopfGroupScheme k G.algebra ≅ Grp.mk G.scheme := by |
| 45 | letI := G.coordinateHopf |
| 46 | let : (algSpec (CommRingCat.of k)).Braided := braidedAlgSpec |
| 47 | refine Grp.mkIso (Iso.refl _) ?_ ?_ |
| 48 | · apply Over.OverMorphism.ext |
| 49 | change (η[(AbelianScheme.CartierDuality.Characters.Construction.affineHopfGroupScheme k G.algebra).X]).left ≫ 𝟙 _ = _ |
| 50 | rw [Category.comp_id] |
| 51 | have h := (algSpec.fullyFaithful (R := CommRingCat.of k)).map_preimage |
| 52 | (Functor.OplaxMonoidal.η (algSpec (CommRingCat.of k)) ≫ η[G.scheme]) |
| 53 | have hc := congrArg (fun f => Functor.LaxMonoidal.ε (algSpec (CommRingCat.of k)) ≫ f) h |
| 54 | simp only [Functor.Monoidal.ε_η_assoc] at hc |
| 55 | exact congrArg Over.Hom.left hc |
| 56 | · apply Over.OverMorphism.ext |
| 57 | change (μ[(AbelianScheme.CartierDuality.Characters.Construction.affineHopfGroupScheme k G.algebra).X]).left ≫ 𝟙 _ = |
| 58 | ((𝟙 G.scheme) ⊗ₘ (𝟙 G.scheme)).left ≫ (μ[G.scheme]).left |
| 59 | have ht : ((𝟙 G.scheme) ⊗ₘ (𝟙 G.scheme)).left = 𝟙 _ := by |
| 60 | rw [MonoidalCategory.tensorHom_id, MonoidalCategory.id_whiskerRight] |
| 61 | rfl |
| 62 | have hm : (μ[(AbelianScheme.CartierDuality.Characters.Construction.affineHopfGroupScheme k G.algebra).X]).left = |
| 63 | (μ[G.scheme]).left := G.coordinateHopf_represents_mul |
| 64 | exact (Category.comp_id _).trans (hm.trans |
| 65 | ((congrArg (fun f => f ≫ (μ[G.scheme]).left) ht).trans (Category.id_comp _)).symm) |
| 66 | |
| 67 | def finiteGroupBaseCharactersEquiv {k : Type} [Field k] |
| 68 | (G : GroupSchemes.FiniteEtale.FiniteCommGroupScheme k) : |
| 69 | (DualityPairing.cartierCharacters (yonedaGrp.obj (Grp.mk G.scheme))).obj |
| 70 | (.op (Over.mk (𝟙 (Spec (.of k))))) ≃ G.characterGroup := by |
| 71 | letI := G.coordinateHopf |
| 72 | exact (affineBaseCharactersEquiv k (Grp.mk G.scheme)).trans |
| 73 | ((coordinateHopfGroupIso G).homFromEquiv.symm.trans |
| 74 | (AbelianScheme.CartierDuality.Characters.Construction.groupLikeEquivSchemeCharacters k G.algebra).symm) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.BaseCharacters |