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.Crystalline.Cohomology.Site |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.Crystalline |
| 3 | |
| 4 | /-! # Small Crystalline Dpow -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SmallCrystallineDpow.SmallCrystallineAdapter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The two affine crystalline presentations retain the same ambient DP ring. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {p : ℕ} [Fact p.Prime] {k : Type u} [Field k] [CharP k p] |
| 16 | {X : Over (Spec (CommRingCat.of k))} |
| 17 | |
| 18 | abbrev Small62 := AlgebraicGeometry.Crystalline.Cohomology.Site.Object p k X |
| 19 | abbrev Small65 := IntegralComparison.Witt.Crystalline.CrystallineObject p k X |
| 20 | |
| 21 | def residueEquiv (S : Small62 (p := p) (k := k) (X := X)) : |
| 22 | S.thickening.ring ⧸ RingHom.ker S.thickening.reduction ≃+* S.residueRing := |
| 23 | S.thickening.reduction.quotientKerEquivOfSurjective S.thickening.reduction_surjective |
| 24 | |
| 25 | def residueSchemeIso (S : Small62 (p := p) (k := k) (X := X)) : |
| 26 | Spec (CommRingCat.of (S.thickening.ring ⧸ RingHom.ker S.thickening.reduction)) ≅ |
| 27 | Spec S.residueRing := |
| 28 | Scheme.Spec.mapIso (residueEquiv S).toCommRingCatIso.symm.op |
| 29 | |
| 30 | theorem residueSchemeIso_hom (S : Small62 (p := p) (k := k) (X := X)) : |
| 31 | (residueSchemeIso S).hom = Spec.map (CommRingCat.ofHom (residueEquiv S).symm.toRingHom) := rfl |
| 32 | |
| 33 | theorem residueBase (S : Small62 (p := p) (k := k) (X := X)) : |
| 34 | (residueEquiv S).symm.toRingHom.comp |
| 35 | ((algebraMap k S.residueRing).comp (WittVector.constantCoeff : WittVector p k →+* k)) = |
| 36 | (Ideal.Quotient.mk (RingHom.ker S.thickening.reduction)).comp |
| 37 | (algebraMap (WittVector p k) S.thickening.ring) := by |
| 38 | rw [← S.thickening.reduction_base, ← RingHom.comp_assoc] |
| 39 | exact congrArg (fun f => f.comp (algebraMap (WittVector p k) S.thickening.ring)) |
| 40 | (RingHom.quotientKerEquivOfSurjective_symm_comp S.thickening.reduction_surjective) |
| 41 | |
| 42 | def to65Object (S : Small62 (p := p) (k := k) (X := X)) : Small65 (p := p) (k := k) (X := X) where |
| 43 | ring := S.thickening.ring |
| 44 | base := algebraMap (WittVector p k) S.thickening.ring |
| 45 | ideal := RingHom.ker S.thickening.reduction |
| 46 | dividedPowers := S.thickening.dividedPowers |
| 47 | baseCompatible := S.thickening.baseDP |
| 48 | primeNilpotent := S.thickening.p_nilpotent |
| 49 | nilIdeal := S.thickening.kernel_element_isNilpotent |
| 50 | openMap := (residueSchemeIso S).hom ≫ S.immersion |
| 51 | overBase := by |
| 52 | change ((residueSchemeIso S).hom ≫ S.immersion) ≫ |
| 53 | (X.hom ≫ Spec.map (CommRingCat.ofHom WittVector.constantCoeff)) = _ |
| 54 | rw [Category.assoc, ← Category.assoc S.immersion, S.over_base] |
| 55 | change Spec.map (CommRingCat.ofHom (residueEquiv S).symm.toRingHom) ≫ |
| 56 | (Spec.map (CommRingCat.ofHom (algebraMap k S.residueRing)) ≫ |
| 57 | Spec.map (CommRingCat.ofHom WittVector.constantCoeff)) = _ |
| 58 | rw [← Spec.map_comp, ← Spec.map_comp, ← Spec.map_comp] |
| 59 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f)) (residueBase S) |
| 60 | |
| 61 | def to65DPMap {S T : Small62 (p := p) (k := k) (X := X)} (f : S ⟶ T) : |
| 62 | DividedPowers.DPMorphism (to65Object T).dividedPowers (to65Object S).dividedPowers := |
| 63 | DividedPowers.DPMorphism.mk' f.dp_comp |
| 64 | |
| 65 | theorem residue_naturality {S T : Small62 (p := p) (k := k) (X := X)} (f : S ⟶ T) : |
| 66 | (IntegralComparison.Crystalline.Site.AffineThickening.quotientMap (to65Object S) (to65Object T) |
| 67 | (to65DPMap f)).comp (residueEquiv T).symm.toRingHom = |
| 68 | (residueEquiv S).symm.toRingHom.comp f.reducedMap.toRingHom := by |
| 69 | ext x |
| 70 | obtain ⟨a, rfl⟩ := T.thickening.reduction_surjective x |
| 71 | change IntegralComparison.Crystalline.Site.AffineThickening.quotientMap (to65Object S) (to65Object T) |
| 72 | (to65DPMap f) ((residueEquiv T).symm (T.thickening.reduction a)) = |
| 73 | (residueEquiv S).symm (f.reducedMap (T.thickening.reduction a)) |
| 74 | rw [← f.reduction_comm] |
| 75 | simp only [residueEquiv, RingHom.quotientKerEquivOfSurjective_symm_apply] |
| 76 | rfl |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false in |
| 79 | def to65Hom {S T : Small62 (p := p) (k := k) (X := X)} (f : S ⟶ T) : |
| 80 | to65Object S ⟶ to65Object T where |
| 81 | ringMap := to65DPMap f |
| 82 | overBase := by |
| 83 | ext a |
| 84 | exact f.ambientMap.commutes a |
| 85 | overX := by |
| 86 | change Spec.map (CommRingCat.ofHom |
| 87 | (IntegralComparison.Crystalline.Site.AffineThickening.quotientMap (to65Object S) (to65Object T) |
| 88 | (to65DPMap f))) ≫ ((residueSchemeIso T).hom ≫ T.immersion) = |
| 89 | (residueSchemeIso S).hom ≫ S.immersion |
| 90 | have h := congrArg (fun h => Spec.map (CommRingCat.ofHom h) ≫ T.immersion) |
| 91 | (residue_naturality f) |
| 92 | simpa only [residueSchemeIso_hom, CommRingCat.ofHom_comp, Spec.map_comp, |
| 93 | Category.assoc, f.over_X] using h |
| 94 | |
| 95 | def to65 : Small62 (p := p) (k := k) (X := X) ⥤ Small65 (p := p) (k := k) (X := X) where |
| 96 | obj := to65Object |
| 97 | map := to65Hom |
| 98 | map_id S := by apply IntegralComparison.Crystalline.Site.AffineThickening.Hom.ext; rfl |
| 99 | map_comp f g := by apply IntegralComparison.Crystalline.Site.AffineThickening.Hom.ext; rfl |
| 100 | |
| 101 | /-- The conversion preserves the actual ambient affine scheme, including all maps. -/ |
| 102 | def ambientIso : to65 (p := p) (k := k) (X := X) ⋙ |
| 103 | IntegralComparison.Crystalline.Site.AffineThickening.ambient ≅ AlgebraicGeometry.Crystalline.Cohomology.Site.ambient p k X := |
| 104 | NatIso.ofComponents (fun _ => Iso.refl _) (fun _ => by simp; rfl) |
| 105 | |
| 106 | def residueBase65 (U : Small65 (p := p) (k := k) (X := X)) : k →+* U.ring ⧸ U.ideal := |
| 107 | (Spec.preimage (U.openMap ≫ X.hom)).hom |
| 108 | |
| 109 | theorem residueBase65_spec (U : Small65 (p := p) (k := k) (X := X)) : |
| 110 | Spec.map (CommRingCat.ofHom (residueBase65 U)) = U.openMap ≫ X.hom := |
| 111 | Spec.map_preimage _ |
| 112 | |
| 113 | theorem residueBase65_witt (U : Small65 (p := p) (k := k) (X := X)) : |
| 114 | (residueBase65 U).comp (WittVector.constantCoeff : WittVector p k →+* k) = |
| 115 | (Ideal.Quotient.mk U.ideal).comp U.base := by |
| 116 | have h := (congrArg |
| 117 | (fun t => t ≫ Spec.map (CommRingCat.ofHom (WittVector.constantCoeff : WittVector p k →+* k))) |
| 118 | (residueBase65_spec U)).trans ((Category.assoc _ _ _).trans U.overBase) |
| 119 | rw [← Spec.map_comp, ← Spec.map_comp] at h |
| 120 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective h) |
| 121 | |
| 122 | def quotientDP (U : Small65 (p := p) (k := k) (X := X)) : |
| 123 | DividedPowers (RingHom.ker (Ideal.Quotient.mk U.ideal)) := |
| 124 | (Ideal.mk_ker (I := U.ideal)).symm ▸ U.dividedPowers |
| 125 | |
| 126 | theorem transportDP_dpow {R : Type*} [CommSemiring R] {I J : Ideal R} |
| 127 | (h : I = J) (δ : DividedPowers I) (n : ℕ) (a : R) : |
| 128 | (h ▸ δ).dpow n a = δ.dpow n a := by |
| 129 | subst J |
| 130 | rfl |
| 131 | |
| 132 | theorem quotientDP_dpow (U : Small65 (p := p) (k := k) (X := X)) (n : ℕ) (a : U.ring) : |
| 133 | (quotientDP U).dpow n a = U.dividedPowers.dpow n a := |
| 134 | transportDP_dpow (Ideal.mk_ker (I := U.ideal)).symm U.dividedPowers n a |
| 135 | |
| 136 | def to62Thickening (U : Small65 (p := p) (k := k) (X := X)) : |
| 137 | letI : Algebra k (U.ring ⧸ U.ideal) := (residueBase65 U).toAlgebra |
| 138 | AlgebraicGeometry.Crystalline.Cohomology.PD.Thickening.AffinePDThickening p k (U.ring ⧸ U.ideal) := by |
| 139 | let : Algebra k (U.ring ⧸ U.ideal) := (residueBase65 U).toAlgebra |
| 140 | exact |
| 141 | { ring := U.ring |
| 142 | baseAlgebra := U.base.toAlgebra |
| 143 | reduction := Ideal.Quotient.mk U.ideal |
| 144 | reduction_surjective := Ideal.Quotient.mk_surjective |
| 145 | reduction_base := (residueBase65_witt U).symm |
| 146 | p_nilpotent := U.primeNilpotent |
| 147 | dividedPowers := quotientDP U |
| 148 | baseDP := |
| 149 | { ideal_comp := by |
| 150 | change Ideal.map U.base _ ≤ RingHom.ker (Ideal.Quotient.mk U.ideal) |
| 151 | rw [Ideal.mk_ker] |
| 152 | exact U.baseCompatible.ideal_comp |
| 153 | dpow_comp := by |
| 154 | intro n a ha |
| 155 | rw [quotientDP_dpow] |
| 156 | exact U.baseCompatible.dpow_comp a ha } } |
| 157 | |
| 158 | def to62Object (U : Small65 (p := p) (k := k) (X := X)) : Small62 (p := p) (k := k) (X := X) where |
| 159 | residueRing := CommRingCat.of (U.ring ⧸ U.ideal) |
| 160 | residueAlgebra := (residueBase65 U).toAlgebra |
| 161 | thickening := to62Thickening U |
| 162 | immersion := U.openMap |
| 163 | over_base := (residueBase65_spec U).symm |
| 164 | |
| 165 | theorem quotientMap_residueBase {U V : Small65 (p := p) (k := k) (X := X)} (f : U ⟶ V) : |
| 166 | (IntegralComparison.Crystalline.Site.AffineThickening.quotientMap U V f.ringMap).comp (residueBase65 V) = |
| 167 | residueBase65 U := by |
| 168 | have h := congrArg (fun g => g ≫ X.hom) f.overX |
| 169 | rw [Category.assoc, ← residueBase65_spec V, ← residueBase65_spec U, ← Spec.map_comp] at h |
| 170 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective h) |
| 171 | |
| 172 | def to62Reduced {U V : Small65 (p := p) (k := k) (X := X)} (f : U ⟶ V) : |
| 173 | (to62Object V).residueRing →ₐ[k] (to62Object U).residueRing where |
| 174 | __ := IntegralComparison.Crystalline.Site.AffineThickening.quotientMap U V f.ringMap |
| 175 | commutes' c := DFunLike.congr_fun (quotientMap_residueBase f) c |
| 176 | |
| 177 | def to62Ambient {U V : Small65 (p := p) (k := k) (X := X)} (f : U ⟶ V) : |
| 178 | (to62Object V).thickening.ring →ₐ[WittVector p k] (to62Object U).thickening.ring where |
| 179 | __ := f.ringMap.toRingHom |
| 180 | commutes' c := DFunLike.congr_fun f.overBase c |
| 181 | |
| 182 | def to62Hom {U V : Small65 (p := p) (k := k) (X := X)} (f : U ⟶ V) : |
| 183 | to62Object U ⟶ to62Object V where |
| 184 | reducedMap := to62Reduced f |
| 185 | ambientMap := to62Ambient f |
| 186 | reduction_comm := fun _ => rfl |
| 187 | over_X := f.overX |
| 188 | dp_comp := |
| 189 | { ideal_comp := by |
| 190 | change Ideal.map f.ringMap.toRingHom (RingHom.ker (Ideal.Quotient.mk V.ideal)) ≤ |
| 191 | RingHom.ker (Ideal.Quotient.mk U.ideal) |
| 192 | rw [Ideal.mk_ker, Ideal.mk_ker] |
| 193 | exact f.ringMap.ideal_comp |
| 194 | dpow_comp := by |
| 195 | intro n a ha |
| 196 | change V.ring at a |
| 197 | change a ∈ RingHom.ker (Ideal.Quotient.mk V.ideal) at ha |
| 198 | change (quotientDP U).dpow n (f.ringMap a) = f.ringMap ((quotientDP V).dpow n a) |
| 199 | rw [quotientDP_dpow, quotientDP_dpow] |
| 200 | exact f.ringMap.dpow_comp a (by simpa only [Ideal.mk_ker] using ha) } |
| 201 | |
| 202 | def to62 : Small65 (p := p) (k := k) (X := X) ⥤ Small62 (p := p) (k := k) (X := X) where |
| 203 | obj := to62Object |
| 204 | map := to62Hom |
| 205 | map_id U := by |
| 206 | apply AlgebraicGeometry.Crystalline.Cohomology.Site.Object.Hom.ext |
| 207 | · apply AlgHom.ext |
| 208 | intro x |
| 209 | change U.ring ⧸ U.ideal at x |
| 210 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 211 | rfl |
| 212 | · rfl |
| 213 | map_comp {U V W} f g := by |
| 214 | apply AlgebraicGeometry.Crystalline.Cohomology.Site.Object.Hom.ext |
| 215 | · apply AlgHom.ext |
| 216 | intro x |
| 217 | change W.ring ⧸ W.ideal at x |
| 218 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 219 | rfl |
| 220 | · rfl |
| 221 | |
| 222 | def ambientIso62 : to62 (p := p) (k := k) (X := X) ⋙ |
| 223 | AlgebraicGeometry.Crystalline.Cohomology.Site.ambient p k X ≅ IntegralComparison.Crystalline.Site.AffineThickening.ambient := |
| 224 | NatIso.ofComponents (fun _ => Iso.refl _) (fun _ => by simp; rfl) |
| 225 | |
| 226 | end |
| 227 | |
| 228 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SmallCrystallineDpow.SmallCrystallineAdapter |