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.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Site |
| 2 | |
| 3 | /-! # Big Crystalline Site -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the affine presentation of the big crystalline site |
| 11 | |
| 12 | The closed subscheme of a thickening may map arbitrarily to X. Covering |
| 13 | maps must be cartesian on the closed subschemes as well as Zariski covers |
| 14 | on the ambient schemes. These are the covering conditions in Stacks, |
| 15 | Definition 60.8.4: https://stacks.math.columbia.edu/tag/07IB. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) (B : Type u) [CommRing B] (J : Ideal B) (δ : DividedPowers J) |
| 23 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of B)) |
| 24 | |
| 25 | structure Object where |
| 26 | ring : CommRingCat.{u} |
| 27 | base : B →+* ring |
| 28 | ideal : Ideal ring |
| 29 | dividedPowers : DividedPowers ideal |
| 30 | baseCompatible : DividedPowers.IsDPMorphism δ dividedPowers base |
| 31 | primeNilpotent : IsNilpotent (p : ring) |
| 32 | nilIdeal : ∀ x ∈ ideal, IsNilpotent x |
| 33 | mapToX : Spec (CommRingCat.of (ring ⧸ ideal)) ⟶ X |
| 34 | overBase : mapToX ≫ f = |
| 35 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk ideal)) ≫ Spec.map (CommRingCat.ofHom base) |
| 36 | |
| 37 | variable {p B J δ f} |
| 38 | |
| 39 | namespace Object |
| 40 | |
| 41 | variable (U V W : Object p B J δ f) |
| 42 | |
| 43 | def quotientMap (φ : DividedPowers.DPMorphism V.dividedPowers U.dividedPowers) : |
| 44 | V.ring ⧸ V.ideal →+* U.ring ⧸ U.ideal := |
| 45 | Ideal.quotientMap U.ideal φ.toRingHom (Ideal.map_le_iff_le_comap.mp φ.ideal_comp) |
| 46 | |
| 47 | lemma quotientMap_id : Object.quotientMap U U (DividedPowers.DPMorphism.id U.dividedPowers) = |
| 48 | RingHom.id (U.ring ⧸ U.ideal) := by ext x; rfl |
| 49 | |
| 50 | lemma quotientMap_comp |
| 51 | (φ : DividedPowers.DPMorphism V.dividedPowers U.dividedPowers) |
| 52 | (ψ : DividedPowers.DPMorphism W.dividedPowers V.dividedPowers) : |
| 53 | Object.quotientMap U W (φ.comp ψ) = (Object.quotientMap U V φ).comp (Object.quotientMap V W ψ) := by ext x; rfl |
| 54 | |
| 55 | structure Hom where |
| 56 | ringMap : DividedPowers.DPMorphism V.dividedPowers U.dividedPowers |
| 57 | overBase : ringMap.toRingHom.comp V.base = U.base |
| 58 | overX : Spec.map (CommRingCat.ofHom (Object.quotientMap U V ringMap)) ≫ V.mapToX = U.mapToX |
| 59 | |
| 60 | @[ext] |
| 61 | lemma Hom.ext {α β : Object.Hom U V} (h : α.ringMap = β.ringMap) : α = β := by |
| 62 | cases α |
| 63 | cases β |
| 64 | cases h |
| 65 | rfl |
| 66 | |
| 67 | def id : Object.Hom U U where |
| 68 | ringMap := DividedPowers.DPMorphism.id U.dividedPowers |
| 69 | overBase := rfl |
| 70 | overX := by rw [quotientMap_id]; simp |
| 71 | |
| 72 | def comp (α : Object.Hom U V) (β : Object.Hom V W) : Object.Hom U W where |
| 73 | ringMap := α.ringMap.comp β.ringMap |
| 74 | overBase := by |
| 75 | change α.ringMap.toRingHom.comp (β.ringMap.toRingHom.comp W.base) = U.base |
| 76 | rw [β.overBase, α.overBase] |
| 77 | overX := by |
| 78 | rw [quotientMap_comp] |
| 79 | change Spec.map (CommRingCat.ofHom (Object.quotientMap V W β.ringMap) ≫ |
| 80 | CommRingCat.ofHom (Object.quotientMap U V α.ringMap)) ≫ W.mapToX = _ |
| 81 | rw [Spec.map_comp, Category.assoc, β.overX, α.overX] |
| 82 | |
| 83 | instance : Category (Object p B J δ f) where |
| 84 | Hom := Object.Hom |
| 85 | id := fun U => Object.id U |
| 86 | comp := fun {U V W} α β => Object.comp U V W α β |
| 87 | id_comp α := by apply Object.Hom.ext; rfl |
| 88 | comp_id α := by apply Object.Hom.ext; rfl |
| 89 | assoc α β γ := by apply Object.Hom.ext; rfl |
| 90 | |
| 91 | def ambient : Object p B J δ f ⥤ Scheme.{u} where |
| 92 | obj U := Spec U.ring |
| 93 | map α := Spec.map (CommRingCat.ofHom α.ringMap.toRingHom) |
| 94 | map_id U := by change Spec.map (𝟙 U.ring) = _; simp |
| 95 | map_comp α β := by |
| 96 | change Spec.map (CommRingCat.ofHom β.ringMap.toRingHom ≫ |
| 97 | CommRingCat.ofHom α.ringMap.toRingHom) = _ |
| 98 | exact Spec.map_comp _ _ |
| 99 | |
| 100 | def closed : Object p B J δ f ⥤ Scheme.{u} where |
| 101 | obj U := Spec (CommRingCat.of (U.ring ⧸ U.ideal)) |
| 102 | map {U V} α := Spec.map (CommRingCat.ofHom (Object.quotientMap U V α.ringMap)) |
| 103 | map_id U := by |
| 104 | change Spec.map (CommRingCat.ofHom (Object.quotientMap U U (DividedPowers.DPMorphism.id U.dividedPowers))) = _ |
| 105 | rw [quotientMap_id] |
| 106 | simp |
| 107 | map_comp {U V W} α β := by |
| 108 | change Spec.map (CommRingCat.ofHom (Object.quotientMap U W (α.ringMap.comp β.ringMap))) = _ |
| 109 | rw [quotientMap_comp] |
| 110 | change Spec.map (CommRingCat.ofHom (Object.quotientMap V W β.ringMap) ≫ |
| 111 | CommRingCat.ofHom (Object.quotientMap U V α.ringMap)) = _ |
| 112 | exact Spec.map_comp _ _ |
| 113 | |
| 114 | def closedImmersion : closed (p := p) (B := B) (J := J) (δ := δ) (f := f) ⟶ ambient where |
| 115 | app U := Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk U.ideal)) |
| 116 | naturality {U V} α := by |
| 117 | change Spec.map (CommRingCat.ofHom (Object.quotientMap U V α.ringMap)) ≫ |
| 118 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk V.ideal)) = |
| 119 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk U.ideal)) ≫ |
| 120 | Spec.map (CommRingCat.ofHom α.ringMap.toRingHom) |
| 121 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 122 | congr 1 |
| 123 | |
| 124 | /-- The closed subscheme is pulled back along a crystalline covering map. -/ |
| 125 | def Cartesian {U V : Object p B J δ f} (α : U ⟶ V) : Prop := |
| 126 | IsPullback (closed.map α) (closedImmersion.app U) (closedImmersion.app V) (ambient.map α) |
| 127 | |
| 128 | def precoverage : Precoverage (Object p B J δ f) where |
| 129 | coverings U := {R | R.map ambient ∈ Scheme.precoverage IsOpenImmersion (ambient.obj U) ∧ |
| 130 | ∀ ⦃V⦄ (α : V ⟶ U), R α → Cartesian α} |
| 131 | |
| 132 | def topology : GrothendieckTopology (Object p B J δ f) := Object.precoverage.toGrothendieck |
| 133 | |
| 134 | end Object |
| 135 | |
| 136 | /-- The existing small crystalline site includes into the big one. -/ |
| 137 | def fromSmall : Crystalline.Site.AffineThickening p B J δ f ⥤ Object p B J δ f where |
| 138 | obj U := |
| 139 | { ring := U.ring |
| 140 | base := U.base |
| 141 | ideal := U.ideal |
| 142 | dividedPowers := U.dividedPowers |
| 143 | baseCompatible := U.baseCompatible |
| 144 | primeNilpotent := U.primeNilpotent |
| 145 | nilIdeal := U.nilIdeal |
| 146 | mapToX := U.openMap |
| 147 | overBase := U.overBase } |
| 148 | map α := { ringMap := α.ringMap, overBase := α.overBase, overX := α.overX } |
| 149 | map_id U := by apply Object.Hom.ext; rfl |
| 150 | map_comp α β := by apply Object.Hom.ext; rfl |
| 151 | |
| 152 | variable {Y : Scheme.{u}} {fY : Y ⟶ Spec (CommRingCat.of B)} |
| 153 | |
| 154 | /-- Composition on X gives the underlying functor needed for crystalline |
| 155 | pullback; ambient rings and divided powers are preserved. -/ |
| 156 | def postcompose (g : X ⟶ Y) (hg : g ≫ fY = f) : Object p B J δ f ⥤ Object p B J δ fY where |
| 157 | obj U := |
| 158 | { ring := U.ring |
| 159 | base := U.base |
| 160 | ideal := U.ideal |
| 161 | dividedPowers := U.dividedPowers |
| 162 | baseCompatible := U.baseCompatible |
| 163 | primeNilpotent := U.primeNilpotent |
| 164 | nilIdeal := U.nilIdeal |
| 165 | mapToX := U.mapToX ≫ g |
| 166 | overBase := by rw [Category.assoc, hg]; exact U.overBase } |
| 167 | map {U V} α := |
| 168 | { ringMap := α.ringMap |
| 169 | overBase := α.overBase |
| 170 | overX := by |
| 171 | change Spec.map (CommRingCat.ofHom (Object.quotientMap U V α.ringMap)) ≫ |
| 172 | (V.mapToX ≫ g) = U.mapToX ≫ g |
| 173 | exact (Category.assoc _ _ _).symm.trans (congrArg (fun t => t ≫ g) α.overX) } |
| 174 | map_id U := by apply Object.Hom.ext; rfl |
| 175 | map_comp α β := by apply Object.Hom.ext; rfl |
| 176 | |
| 177 | lemma postcompose_cartesian (g : X ⟶ Y) (hg : g ≫ fY = f) |
| 178 | {U V : Object p B J δ f} (α : U ⟶ V) : |
| 179 | Object.Cartesian ((postcompose g hg).map α) ↔ Object.Cartesian α := Iff.rfl |
| 180 | |
| 181 | end |
| 182 | |
| 183 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |