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.Category.Grp.Basic |
| 2 | import Mathlib.CategoryTheory.Functor.Basic |
| 3 | import Mathlib.CategoryTheory.NatIso |
| 4 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 5 | |
| 6 | /-! # Ordinary Characters -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryCharacters.Construction |
| 9 | |
| 10 | /-! |
| 11 | Characters of a split ordinary block. The annihilator of the first factor |
| 12 | consists exactly of characters of the second factor. The proof is made for |
| 13 | group-valued functors, so it applies simultaneously on all test schemes in |
| 14 | the Cartier-character sheaf; it is not a calculation on geometric points. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u v w |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] |
| 24 | |
| 25 | abbrev productGroupFunctor (G H : C ⥤ GrpCat.{w}) : C ⥤ GrpCat.{w} where |
| 26 | obj X := GrpCat.of (G.obj X × H.obj X) |
| 27 | map f := GrpCat.ofHom ((G.map f).hom.prodMap (H.map f).hom) |
| 28 | map_id X := by ext x <;> simp |
| 29 | map_comp f g := by ext x <;> simp |
| 30 | |
| 31 | def firstFactorInclusion (G H : C ⥤ GrpCat.{w}) : G ⟶ productGroupFunctor G H where |
| 32 | app X := GrpCat.ofHom { |
| 33 | toFun x := (x, 1) |
| 34 | map_one' := rfl |
| 35 | map_mul' x y := by simp } |
| 36 | naturality := by |
| 37 | intro X Y f |
| 38 | apply GrpCat.hom_ext |
| 39 | apply MonoidHom.ext |
| 40 | intro x |
| 41 | change ((G.map f) x, 1) = ((G.map f) x, (H.map f) 1) |
| 42 | exact Prod.ext rfl (H.map f).hom.map_one.symm |
| 43 | |
| 44 | def secondFactorInclusion (G H : C ⥤ GrpCat.{w}) : H ⟶ productGroupFunctor G H where |
| 45 | app X := GrpCat.ofHom { |
| 46 | toFun x := (1, x) |
| 47 | map_one' := rfl |
| 48 | map_mul' x y := by simp } |
| 49 | naturality := by |
| 50 | intro X Y f |
| 51 | apply GrpCat.hom_ext |
| 52 | apply MonoidHom.ext |
| 53 | intro x |
| 54 | change (1, (H.map f) x) = ((G.map f) 1, (H.map f) x) |
| 55 | exact Prod.ext (G.map f).hom.map_one.symm rfl |
| 56 | |
| 57 | def secondFactorProjection (G H : C ⥤ GrpCat.{w}) : productGroupFunctor G H ⟶ H where |
| 58 | app X := GrpCat.ofHom (MonoidHom.snd (G.obj X) (H.obj X)) |
| 59 | naturality := by intro X Y f; ext x; rfl |
| 60 | |
| 61 | theorem secondFactorInclusion_projection (G H : C ⥤ GrpCat.{w}) : |
| 62 | secondFactorInclusion G H ≫ secondFactorProjection G H = 𝟙 H := by |
| 63 | ext X x |
| 64 | rfl |
| 65 | |
| 66 | theorem character_reconstruction |
| 67 | (G H K : C ⥤ GrpCat.{w}) (χ : productGroupFunctor G H ⟶ K) |
| 68 | (hχ : ∀ X (g : G.obj X), χ.app X (g, 1) = 1) : |
| 69 | secondFactorProjection G H ≫ (secondFactorInclusion G H ≫ χ) = χ := by |
| 70 | ext X x |
| 71 | change χ.app X (1, x.2) = χ.app X x |
| 72 | have hx : x = (x.1, 1) * (1, x.2) := by simp |
| 73 | conv_rhs => rw [hx] |
| 74 | rw [map_mul, hχ, one_mul] |
| 75 | |
| 76 | /-- A character annihilating the first factor factors uniquely through the |
| 77 | second projection. This is the ordinary opposite-kernel calculation. -/ |
| 78 | theorem character_factorization |
| 79 | (G H K : C ⥤ GrpCat.{w}) (χ : productGroupFunctor G H ⟶ K) |
| 80 | (hχ : ∀ X (g : G.obj X), χ.app X (g, 1) = 1) : |
| 81 | ∃! ψ : H ⟶ K, secondFactorProjection G H ≫ ψ = χ := by |
| 82 | refine ⟨secondFactorInclusion G H ≫ χ, character_reconstruction G H K χ hχ, ?_⟩ |
| 83 | intro ψ hψ |
| 84 | have h := congrArg (fun t => secondFactorInclusion G H ≫ t) hψ |
| 85 | simpa only [← Category.assoc, secondFactorInclusion_projection, |
| 86 | Category.id_comp] using h |
| 87 | |
| 88 | /-- The actual space of characters annihilating the multiplicative factor. -/ |
| 89 | def AnnihilatorCharacters (G H K : C ⥤ GrpCat.{w}) := |
| 90 | {χ : productGroupFunctor G H ⟶ K // ∀ X (g : G.obj X), χ.app X (g, 1) = 1} |
| 91 | |
| 92 | /-- The opposite annihilator is the character group of the quotient factor. |
| 93 | With Cartier duality this is the dual etale factor, hence multiplicative. -/ |
| 94 | def annihilatorCharacterEquiv (G H K : C ⥤ GrpCat.{w}) : |
| 95 | AnnihilatorCharacters G H K ≃ (H ⟶ K) where |
| 96 | toFun χ := secondFactorInclusion G H ≫ χ.val |
| 97 | invFun ψ := ⟨secondFactorProjection G H ≫ ψ, by |
| 98 | intro X g |
| 99 | change ψ.app X 1 = 1 |
| 100 | exact (ψ.app X).hom.map_one⟩ |
| 101 | left_inv χ := by |
| 102 | apply Subtype.ext |
| 103 | exact character_reconstruction G H K χ.val χ.property |
| 104 | right_inv ψ := by |
| 105 | change secondFactorInclusion G H ≫ (secondFactorProjection G H ≫ ψ) = ψ |
| 106 | rw [← Category.assoc, secondFactorInclusion_projection, Category.id_comp] |
| 107 | |
| 108 | variable [CartesianMonoidalCategory C] [BraidedCategory C] |
| 109 | |
| 110 | /-- The split group-scheme product on an arbitrary test scheme has exactly |
| 111 | the expected product group of points. -/ |
| 112 | def productPointEquiv (G H : Grp C) (X : C) : |
| 113 | (X ⟶ (G ⊗ H).X) ≃* ((X ⟶ G.X) × (X ⟶ H.X)) where |
| 114 | toFun a := (a ≫ fst G.X H.X, a ≫ snd G.X H.X) |
| 115 | invFun a := lift a.1 a.2 |
| 116 | left_inv a := by |
| 117 | apply CartesianMonoidalCategory.hom_ext <;> simp |
| 118 | right_inv a := by simp |
| 119 | map_mul' a b := |
| 120 | Prod.ext (MonObj.mul_comp a b (fst G.X H.X)) |
| 121 | (MonObj.mul_comp a b (snd G.X H.X)) |
| 122 | |
| 123 | /-- The product splitting is natural on all test schemes, so the preceding |
| 124 | annihilator calculation applies to native group-scheme character functors. -/ |
| 125 | def productPointIso (G H : Grp C) : |
| 126 | yonedaGrp.obj (G ⊗ H) ≅ productGroupFunctor (yonedaGrp.obj G) (yonedaGrp.obj H) := |
| 127 | NatIso.ofComponents (fun X => (productPointEquiv G H X.unop).toGrpIso) (by |
| 128 | intro X Y f |
| 129 | apply GrpCat.hom_ext |
| 130 | apply MonoidHom.ext |
| 131 | intro a |
| 132 | exact Prod.ext (Category.assoc _ _ _) (Category.assoc _ _ _)) |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.OrdinaryCharacters.Construction |