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.AlgebraicGeometry.Sites.Fpqc |
| 2 | import Mathlib.CategoryTheory.Sites.Over |
| 3 | import Mathlib.CategoryTheory.Sites.SubcanonicalOver |
| 4 | import Mathlib.CategoryTheory.Sites.CoverLifting |
| 5 | import Mathlib.CategoryTheory.Sites.Limits |
| 6 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Equalizers |
| 7 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 8 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Over |
| 9 | |
| 10 | /-! # Base Change -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.BaseChange.Construction |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | Actual fppf quotient sheaves and arbitrary specialization. The base-change |
| 18 | functor is restriction on the big fppf sites. Its preservation of quotients |
| 19 | is proved using the continuous/cocontinuous adjunction, including for a |
| 20 | closed residue-field immersion. No reducedness or constant-group condition |
| 21 | is imposed on either member of the relation. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 25 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 26 | open scoped _root_.CategoryTheory.MonObj |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | local instance pulledBackGroup {S T : Scheme.{u}} (f : T ⟶ S) |
| 31 | (A : Over S) [GrpObj A] : GrpObj ((Over.pullback f).obj A) := |
| 32 | Functor.grpObjObj (F := Over.pullback f) (G := A) |
| 33 | |
| 34 | abbrev FppfSheaves (S : Scheme.{u}) := |
| 35 | Sheaf (Scheme.fppfTopology.over S) (Type (u + 1)) |
| 36 | |
| 37 | /-- The genuine functor of points, retaining sections on nonreduced schemes. -/ |
| 38 | abbrev fppfPoints (S : Scheme.{u}) : Over S ⥤ FppfSheaves S := |
| 39 | (Scheme.fppfTopology.over S).uliftYoneda.{u + 1} |
| 40 | |
| 41 | /-- Restriction from S-schemes to T-schemes along an arbitrary base map. -/ |
| 42 | abbrev fppfBaseChange {S T : Scheme.{u}} (f : T ⟶ S) : |
| 43 | FppfSheaves S ⥤ FppfSheaves T := |
| 44 | Scheme.fppfTopology.overMapPullback (Type (u + 1)) f |
| 45 | |
| 46 | instance fppfBaseChange_isLeftAdjoint {S T : Scheme.{u}} (f : T ⟶ S) : |
| 47 | (fppfBaseChange f).IsLeftAdjoint := |
| 48 | ((Over.map f).sheafAdjunctionCocontinuous (Type (u + 1)) |
| 49 | (Scheme.fppfTopology.over T) (Scheme.fppfTopology.over S)).isLeftAdjoint |
| 50 | |
| 51 | instance fppfBaseChange_preservesColimits {S T : Scheme.{u}} (f : T ⟶ S) : |
| 52 | PreservesColimits (fppfBaseChange f) := inferInstance |
| 53 | |
| 54 | /-- Restricting a representable sheaf gives the sheaf of the actual scheme |
| 55 | pullback. This is the pullback universal property on every test scheme. -/ |
| 56 | def fppfBaseChangePointsIso {S T : Scheme.{u}} (f : T ⟶ S) (A : Over S) : |
| 57 | (fppfBaseChange f).obj ((fppfPoints S).obj A) ≅ |
| 58 | (fppfPoints T).obj ((Over.pullback f).obj A) := |
| 59 | (fullyFaithfulSheafToPresheaf _ _).preimageIso <| |
| 60 | NatIso.ofComponents |
| 61 | (fun X => (Equiv.ulift.trans |
| 62 | ((Over.mapPullbackAdj f).homEquiv X.unop A) |>.trans Equiv.ulift.symm).toIso) |
| 63 | (by |
| 64 | intro X Y g |
| 65 | ext a |
| 66 | apply ULift.ext |
| 67 | exact (Over.mapPullbackAdj f).homEquiv_naturality_left g.unop a.down) |
| 68 | |
| 69 | theorem fppfBaseChangePointsIso_naturality {S T : Scheme.{u}} (f : T ⟶ S) |
| 70 | {A B : Over S} (a : A ⟶ B) : |
| 71 | (fppfBaseChange f).map ((fppfPoints S).map a) ≫ |
| 72 | (fppfBaseChangePointsIso f B).hom = |
| 73 | (fppfBaseChangePointsIso f A).hom ≫ |
| 74 | (fppfPoints T).map ((Over.pullback f).map a) := by |
| 75 | apply Sheaf.hom_ext |
| 76 | ext X x |
| 77 | apply ULift.ext |
| 78 | exact (Over.mapPullbackAdj f).homEquiv_naturality_right x.down a |
| 79 | |
| 80 | /-- The sheaf quotient of a scheme relation. For a subgroup action the two |
| 81 | maps are translation and projection H x A -> A. -/ |
| 82 | def relationQuotient {S : Scheme.{u}} {R A : Over S} (r₁ r₂ : R ⟶ A) : |
| 83 | FppfSheaves S := |
| 84 | coequalizer ((fppfPoints S).map r₁) ((fppfPoints S).map r₂) |
| 85 | |
| 86 | def relationQuotientProjection {S : Scheme.{u}} {R A : Over S} |
| 87 | (r₁ r₂ : R ⟶ A) : (fppfPoints S).obj A ⟶ relationQuotient r₁ r₂ := |
| 88 | coequalizer.π _ _ |
| 89 | |
| 90 | /-- Construction of a quotient in characteristic q requires no choice of |
| 91 | an etale presentation of the subgroup. -/ |
| 92 | def subgroupQuotient {S : Scheme.{u}} {A H : Over S} [GrpObj A] |
| 93 | (i : H ⟶ A) : FppfSheaves S := |
| 94 | relationQuotient ((fst H A ≫ i) * snd H A) (snd H A) |
| 95 | |
| 96 | /-- Specialization commutes with the constructed coequalizer as a sheaf. |
| 97 | The map is the canonical colimit comparison, not an assumed isomorphism. -/ |
| 98 | def relationQuotientSpecialization {S T : Scheme.{u}} (f : T ⟶ S) |
| 99 | {R A : Over S} (r₁ r₂ : R ⟶ A) : |
| 100 | (fppfBaseChange f).obj (relationQuotient r₁ r₂) ≅ |
| 101 | coequalizer ((fppfBaseChange f).map ((fppfPoints S).map r₁)) |
| 102 | ((fppfBaseChange f).map ((fppfPoints S).map r₂)) := |
| 103 | (PreservesCoequalizer.iso (fppfBaseChange f) |
| 104 | ((fppfPoints S).map r₁) ((fppfPoints S).map r₂)).symm |
| 105 | |
| 106 | /-- The comparison preserves the quotient map itself. -/ |
| 107 | theorem relationQuotientSpecialization_projection {S T : Scheme.{u}} |
| 108 | (f : T ⟶ S) {R A : Over S} (r₁ r₂ : R ⟶ A) : |
| 109 | (fppfBaseChange f).map (relationQuotientProjection r₁ r₂) ≫ |
| 110 | (relationQuotientSpecialization f r₁ r₂).hom = |
| 111 | coequalizer.π ((fppfBaseChange f).map ((fppfPoints S).map r₁)) |
| 112 | ((fppfBaseChange f).map ((fppfPoints S).map r₂)) := by |
| 113 | exact map_π_preserves_coequalizer_inv (fppfBaseChange f) |
| 114 | ((fppfPoints S).map r₁) ((fppfPoints S).map r₂) |
| 115 | |
| 116 | /-- Specialization is the quotient of the base-changed *schemes* and maps, |
| 117 | not merely the quotient of unnamed sheaves. Both canonical comparisons |
| 118 | are constructed from universal properties. -/ |
| 119 | def relationQuotientBaseChangeIso {S T : Scheme.{u}} (f : T ⟶ S) |
| 120 | {R A : Over S} (r₁ r₂ : R ⟶ A) : |
| 121 | (fppfBaseChange f).obj (relationQuotient r₁ r₂) ≅ |
| 122 | relationQuotient ((Over.pullback f).map r₁) ((Over.pullback f).map r₂) := |
| 123 | (relationQuotientSpecialization f r₁ r₂).trans <| |
| 124 | HasColimit.isoOfNatIso (parallelPairIso |
| 125 | ((fppfBaseChange f).map ((fppfPoints S).map r₁)) |
| 126 | ((fppfBaseChange f).map ((fppfPoints S).map r₂)) |
| 127 | ((fppfPoints T).map ((Over.pullback f).map r₁)) |
| 128 | ((fppfPoints T).map ((Over.pullback f).map r₂)) |
| 129 | (fppfBaseChangePointsIso f R) (fppfBaseChangePointsIso f A) |
| 130 | (fppfBaseChangePointsIso_naturality f r₁) |
| 131 | (fppfBaseChangePointsIso_naturality f r₂)) |
| 132 | |
| 133 | theorem baseChange_translation {S T : Scheme.{u}} (f : T ⟶ S) |
| 134 | {A H : Over S} [GrpObj A] (i : H ⟶ A) : |
| 135 | (Functor.Monoidal.μIso (Over.pullback f) H A).hom ≫ |
| 136 | (Over.pullback f).map ((fst H A ≫ i) * snd H A) = |
| 137 | (fst ((Over.pullback f).obj H) ((Over.pullback f).obj A) ≫ |
| 138 | (Over.pullback f).map i) * |
| 139 | snd ((Over.pullback f).obj H) ((Over.pullback f).obj A) := by |
| 140 | rw [(Over.pullback f).map_mul, MonObj.comp_mul, (Over.pullback f).map_comp] |
| 141 | simp only [← Category.assoc, Functor.Monoidal.μIso_hom, |
| 142 | Functor.Monoidal.μ_fst, Functor.Monoidal.μ_snd] |
| 143 | |
| 144 | /-- The specialized quotient is the quotient by the actual specialized |
| 145 | subgroup action. Product coherence identifies the pulled-back relation |
| 146 | with H_T x A_T acting on A_T. -/ |
| 147 | def subgroupQuotientBaseChangeIso {S T : Scheme.{u}} (f : T ⟶ S) |
| 148 | {A H : Over S} [GrpObj A] (i : H ⟶ A) : |
| 149 | (fppfBaseChange f).obj (subgroupQuotient i) ≅ |
| 150 | subgroupQuotient ((Over.pullback f).map i) := by |
| 151 | let F := Over.pullback f |
| 152 | let p := Functor.Monoidal.μIso F H A |
| 153 | let act := (fst H A ≫ i) * snd H A |
| 154 | let act' := (fst (F.obj H) (F.obj A) ≫ F.map i) * snd (F.obj H) (F.obj A) |
| 155 | have ha : F.map act = p.inv ≫ act' := by |
| 156 | apply (cancel_epi p.hom).mp |
| 157 | rw [← Category.assoc, p.hom_inv_id, Category.id_comp] |
| 158 | exact baseChange_translation f i |
| 159 | have hp : F.map (snd H A) = p.inv ≫ snd (F.obj H) (F.obj A) := by |
| 160 | apply (cancel_epi p.hom).mp |
| 161 | rw [← Category.assoc, p.hom_inv_id, Category.id_comp] |
| 162 | exact Functor.Monoidal.μ_snd F H A |
| 163 | refine (relationQuotientBaseChangeIso f act (snd H A)).trans ?_ |
| 164 | apply HasColimit.isoOfNatIso |
| 165 | apply parallelPairIso _ _ _ _ ((fppfPoints T).mapIso p.symm) (Iso.refl _) |
| 166 | · simpa only [Iso.refl_hom, Category.comp_id, Functor.mapIso_hom, Iso.symm_hom, |
| 167 | ← Functor.map_comp] using congrArg (fppfPoints T).map ha |
| 168 | · simpa only [Iso.refl_hom, Category.comp_id, Functor.mapIso_hom, Iso.symm_hom, |
| 169 | ← Functor.map_comp] using congrArg (fppfPoints T).map hp |
| 170 | |
| 171 | /-- The quotient is constructed by the universal property on all fppf |
| 172 | sheaves, hence in particular on the functors represented by schemes. -/ |
| 173 | theorem relationQuotient_universal {S : Scheme.{u}} {R A : Over S} |
| 174 | (r₁ r₂ : R ⟶ A) (Q : FppfSheaves S) |
| 175 | (a : (fppfPoints S).obj A ⟶ Q) |
| 176 | (ha : (fppfPoints S).map r₁ ≫ a = (fppfPoints S).map r₂ ≫ a) : |
| 177 | ∃! b : relationQuotient r₁ r₂ ⟶ Q, |
| 178 | relationQuotientProjection r₁ r₂ ≫ b = a := by |
| 179 | refine ⟨coequalizer.desc a ha, coequalizer.π_desc a ha, ?_⟩ |
| 180 | intro b hb |
| 181 | apply coequalizer.hom_ext |
| 182 | exact hb.trans (coequalizer.π_desc a ha).symm |
| 183 | |
| 184 | end |
| 185 | |
| 186 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.BaseChange.Construction |