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 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Over |
| 4 | |
| 5 | /-! # Annihilator Sheaf -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.AnnihilatorSheaf.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The opposite kernel in a split ordinary block, formulated in CartierDuality's actual |
| 13 | fppf character sheaf. Characters vanishing on the first factor form the |
| 14 | character sheaf of the second factor. This includes every nonreduced test |
| 15 | scheme and does not replace the multiplicative factor by a constant group. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 19 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 20 | open scoped _root_.CategoryTheory.MonObj |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | open OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.CharacterSheaf.Construction.Schemes |
| 25 | |
| 26 | variable {S : Scheme.{u}} |
| 27 | |
| 28 | def splitFirstInclusion (G H : Grp (Over S)) : G ⟶ G ⊗ H := by |
| 29 | have : IsMonHom (1 : G.X ⟶ H.X) := by |
| 30 | change IsMonHom (toUnit G.X ≫ η[H.X]) |
| 31 | infer_instance |
| 32 | exact Grp.homMk (lift (𝟙 G.X) (1 : G.X ⟶ H.X)) |
| 33 | |
| 34 | def splitSecondInclusion (G H : Grp (Over S)) : H ⟶ G ⊗ H := by |
| 35 | have : IsMonHom (1 : H.X ⟶ G.X) := by |
| 36 | change IsMonHom (toUnit H.X ≫ η[G.X]) |
| 37 | infer_instance |
| 38 | exact Grp.homMk (lift (1 : H.X ⟶ G.X) (𝟙 H.X)) |
| 39 | |
| 40 | def splitSecondProjection (G H : Grp (Over S)) : G ⊗ H ⟶ H := |
| 41 | Grp.homMk (snd G.X H.X) |
| 42 | |
| 43 | theorem characterRestriction_comp {G H K : Grp (Over S)} |
| 44 | (i : G ⟶ H) (j : H ⟶ K) : |
| 45 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction j ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction i = CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (i ≫ j) := by |
| 46 | apply Sheaf.hom_ext |
| 47 | ext T χ |
| 48 | dsimp only [CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction, CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf, presheafHom] at * |
| 49 | ext U x |
| 50 | change χ.app U ((x ≫ i.hom.hom) ≫ j.hom.hom) = |
| 51 | χ.app U (x ≫ (i.hom.hom ≫ j.hom.hom)) |
| 52 | exact congrArg (fun z => χ.app U z) (Category.assoc x i.hom.hom j.hom.hom) |
| 53 | |
| 54 | theorem characterRestriction_id (G : Grp (Over S)) : |
| 55 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (𝟙 G) = 𝟙 (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G) := by |
| 56 | apply Sheaf.hom_ext |
| 57 | ext T χ |
| 58 | dsimp only [CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction, CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf, presheafHom] at * |
| 59 | ext U x |
| 60 | change χ.app U (x ≫ 𝟙 G.X) = χ.app U x |
| 61 | exact congrArg (fun z => χ.app U z) (Category.comp_id x) |
| 62 | |
| 63 | theorem splitSecond_character_retraction (G H : Grp (Over S)) : |
| 64 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) ≫ |
| 65 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) = 𝟙 (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S H) := by |
| 66 | rw [characterRestriction_comp] |
| 67 | have h : splitSecondInclusion G H ≫ splitSecondProjection G H = 𝟙 H := by |
| 68 | apply Grp.hom_ext |
| 69 | change lift (1 : H.X ⟶ G.X) (𝟙 H.X) ≫ snd G.X H.X = 𝟙 H.X |
| 70 | exact lift_snd _ _ |
| 71 | rw [h, characterRestriction_id] |
| 72 | |
| 73 | theorem splitSecond_character_annihilates (G H : Grp (Over S)) : |
| 74 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) ≫ |
| 75 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H) = |
| 76 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) ≫ |
| 77 | CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G := by |
| 78 | apply Sheaf.hom_ext |
| 79 | ext T χ |
| 80 | dsimp only [CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction, CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction, CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf, presheafHom] at * |
| 81 | ext U x |
| 82 | change U.unop.left ⟶ G.X at x |
| 83 | change χ.app U ((x ≫ lift (𝟙 G.X) (1 : G.X ⟶ H.X)) ≫ snd G.X H.X) = 1 |
| 84 | have h : (x ≫ lift (𝟙 G.X) (1 : G.X ⟶ H.X)) ≫ snd G.X H.X = 1 := by |
| 85 | rw [Category.assoc, lift_snd, MonObj.comp_one] |
| 86 | exact (congrArg (fun z => χ.app U z) h).trans (χ.app U).hom.map_one |
| 87 | |
| 88 | /-- Every section of the annihilator is reconstructed from its restriction |
| 89 | to the second factor. The test section is arbitrary, not geometric. -/ |
| 90 | theorem split_character_reconstruction |
| 91 | (G H : Grp (Over S)) (P : Sheaf (Scheme.fppfTopology.over S) (Type (u + 1))) |
| 92 | (a : P ⟶ CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S (G ⊗ H)) |
| 93 | (ha : a ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H) = |
| 94 | a ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G) : |
| 95 | a ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) ≫ |
| 96 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) = a := by |
| 97 | apply Sheaf.hom_ext |
| 98 | ext T x |
| 99 | dsimp only [CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction, CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf, presheafHom] at * |
| 100 | ext U z |
| 101 | change U.unop.left ⟶ (G ⊗ H).X at z |
| 102 | let χ : (Over.forget T.unop).op ⋙ yonedaGrp.obj (G ⊗ H) ⟶ |
| 103 | (Over.forget T.unop).op ⋙ yonedaGrp.obj (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S) := a.hom.app T x |
| 104 | let χU : (U.unop.left ⟶ (G ⊗ H).X) →* |
| 105 | (U.unop.left ⟶ (CartierDuality.CharacterSheaf.Construction.Schemes.multiplicativeGroupOver S).X) := (χ.app U).hom |
| 106 | have hann (g : U.unop.left ⟶ G.X) : |
| 107 | χU (lift g (1 : U.unop.left ⟶ H.X)) = 1 := by |
| 108 | have h := congrArg (fun b => ((b.hom.app T x).app U) g) ha |
| 109 | change χU (g ≫ lift (𝟙 G.X) (1 : G.X ⟶ H.X)) = 1 at h |
| 110 | have hg : g ≫ lift (𝟙 G.X) (1 : G.X ⟶ H.X) = |
| 111 | lift g (1 : U.unop.left ⟶ H.X) := by |
| 112 | rw [comp_lift, Category.comp_id, MonObj.comp_one] |
| 113 | exact (congrArg χU hg.symm).trans h |
| 114 | have hz : z = lift (z ≫ fst G.X H.X) (1 : U.unop.left ⟶ H.X) * |
| 115 | lift (1 : U.unop.left ⟶ G.X) (z ≫ snd G.X H.X) := by |
| 116 | apply CartesianMonoidalCategory.hom_ext |
| 117 | · simp only [MonObj.mul_comp, lift_fst, mul_one] |
| 118 | · simp only [MonObj.mul_comp, lift_snd, one_mul] |
| 119 | change χU ((z ≫ snd G.X H.X) ≫ |
| 120 | lift (1 : H.X ⟶ G.X) (𝟙 H.X)) = χU z |
| 121 | rw [comp_lift, MonObj.comp_one, Category.comp_id] |
| 122 | conv_rhs => rw [hz] |
| 123 | rw [map_mul, hann, one_mul] |
| 124 | |
| 125 | /-- The annihilator in the Cartier-character sheaf is the dual of the |
| 126 | second factor. In the ordinary decomposition this is the dual étale block. -/ |
| 127 | def splitAnnihilatorSheafIso (G H : Grp (Over S)) : |
| 128 | CartierDuality.CharacterSheaf.Construction.Schemes.annihilatorSheaf (splitFirstInclusion G H) ≅ CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S H := by |
| 129 | let r := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H) |
| 130 | let z := CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G |
| 131 | let p := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) |
| 132 | let j := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) |
| 133 | let c := Fork.ofι p (splitSecond_character_annihilates G H) |
| 134 | have hc : IsLimit c := Fork.IsLimit.ofExistsUnique (fun t => by |
| 135 | refine ⟨t.ι ≫ j, ?_, ?_⟩ |
| 136 | · exact split_character_reconstruction G H t.pt t.ι t.condition |
| 137 | · intro b hb |
| 138 | change b = t.ι ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) |
| 139 | calc |
| 140 | b = b ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) ≫ |
| 141 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) := by |
| 142 | exact (Category.comp_id b).symm.trans |
| 143 | (congrArg (fun f => b ≫ f) (splitSecond_character_retraction G H).symm) |
| 144 | _ = t.ι ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) := |
| 145 | congrArg (fun f => f ≫ CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H)) hb) |
| 146 | exact (equalizerIsEqualizer r z).conePointUniqueUpToIso hc |
| 147 | |
| 148 | theorem splitAnnihilatorSheafIso_hom (G H : Grp (Over S)) : |
| 149 | (splitAnnihilatorSheafIso G H).hom = |
| 150 | equalizer.ι (CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H)) |
| 151 | (CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G) ≫ |
| 152 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) := by |
| 153 | let p := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondProjection G H) |
| 154 | let j := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H) |
| 155 | have he : (splitAnnihilatorSheafIso G H).hom ≫ p = |
| 156 | equalizer.ι (CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H)) |
| 157 | (CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G) := |
| 158 | IsLimit.conePointUniqueUpToIso_hom_comp _ _ WalkingParallelPair.zero |
| 159 | exact (Category.comp_id _).symm.trans |
| 160 | ((congrArg (fun f => (splitAnnihilatorSheafIso G H).hom ≫ f) |
| 161 | (splitSecond_character_retraction G H).symm).trans |
| 162 | ((Category.assoc _ p j).symm.trans (congrArg (fun f => f ≫ j) he))) |
| 163 | |
| 164 | /-- Changing coordinates by an actual group-scheme isomorphism transports |
| 165 | the whole character sheaf. -/ |
| 166 | def characterSheafIso {G H : Grp (Over S)} (e : G ≅ H) : |
| 167 | CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G ≅ CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S H where |
| 168 | hom := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction e.inv |
| 169 | inv := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction e.hom |
| 170 | hom_inv_id := by |
| 171 | rw [characterRestriction_comp, e.hom_inv_id, characterRestriction_id] |
| 172 | inv_hom_id := by |
| 173 | rw [characterRestriction_comp, e.inv_hom_id, characterRestriction_id] |
| 174 | |
| 175 | /-- The split-block calculation holds in the original torsion block, |
| 176 | with its specified splitting isomorphism, rather than only in coordinates. -/ |
| 177 | def annihilatorSheafIsoOfSplitting (B G H : Grp (Over S)) (e : B ≅ G ⊗ H) : |
| 178 | CartierDuality.CharacterSheaf.Construction.Schemes.annihilatorSheaf (splitFirstInclusion G H ≫ e.inv) ≅ CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S H := by |
| 179 | let r := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H ≫ e.inv) |
| 180 | let z := CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction B G |
| 181 | let r' := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H) |
| 182 | let z' := CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G |
| 183 | have hr : r ≫ (Iso.refl (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G)).hom = |
| 184 | (characterSheafIso e).hom ≫ r' := by |
| 185 | exact (Category.comp_id r).trans |
| 186 | (characterRestriction_comp (splitFirstInclusion G H) e.inv).symm |
| 187 | have hz : z ≫ (Iso.refl (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G)).hom = |
| 188 | (characterSheafIso e).hom ≫ z' := by |
| 189 | apply Sheaf.hom_ext |
| 190 | ext T χ |
| 191 | rfl |
| 192 | let w := parallelPairIso r z r' z' (characterSheafIso e) |
| 193 | (Iso.refl (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G)) hr hz |
| 194 | let a := HasLimit.isoOfNatIso w |
| 195 | exact a ≪≫ splitAnnihilatorSheafIso G H |
| 196 | |
| 197 | theorem annihilatorSheafIsoOfSplitting_hom (B G H : Grp (Over S)) (e : B ≅ G ⊗ H) : |
| 198 | (annihilatorSheafIsoOfSplitting B G H e).hom = |
| 199 | equalizer.ι (CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H ≫ e.inv)) |
| 200 | (CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction B G) ≫ |
| 201 | CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitSecondInclusion G H ≫ e.inv) := by |
| 202 | let r := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H ≫ e.inv) |
| 203 | let z := CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction B G |
| 204 | let r' := CartierDuality.CharacterSheaf.Construction.Schemes.characterRestriction (splitFirstInclusion G H) |
| 205 | let z' := CartierDuality.CharacterSheaf.Construction.Schemes.characterTrivialRestriction (G ⊗ H) G |
| 206 | let w := parallelPairIso r z r' z' (characterSheafIso e) |
| 207 | (Iso.refl (CartierDuality.CharacterSheaf.Construction.Schemes.characterSheaf S G)) |
| 208 | ((Category.comp_id r).trans |
| 209 | (characterRestriction_comp (splitFirstInclusion G H) e.inv).symm) |
| 210 | (by apply Sheaf.hom_ext; ext T χ; rfl) |
| 211 | have hw : (HasLimit.isoOfNatIso w).hom ≫ equalizer.ι r' z' = |
| 212 | equalizer.ι r z ≫ (characterSheafIso e).hom := |
| 213 | HasLimit.isoOfNatIso_hom_π w WalkingParallelPair.zero |
| 214 | change (HasLimit.isoOfNatIso w).hom ≫ (splitAnnihilatorSheafIso G H).hom = _ |
| 215 | rw [splitAnnihilatorSheafIso_hom, ← Category.assoc, hw, Category.assoc] |
| 216 | exact congrArg (fun f => equalizer.ι r z ≫ f) |
| 217 | (characterRestriction_comp (splitSecondInclusion G H) e.inv) |
| 218 | |
| 219 | end |
| 220 | |
| 221 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.AnnihilatorSheaf.Construction |