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.Coverings |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Localization |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.QuotientPullback |
| 4 | |
| 5 | /-! # Localization -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Localization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: principal open crystalline thickenings |
| 13 | |
| 14 | Localizing an ambient divided-power ring gives an actual crystalline |
| 15 | object. Its closed subscheme is the base change of the original closed |
| 16 | subscheme, with a proved pullback square in the category of all schemes. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 24 | |
| 25 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 26 | variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} |
| 27 | variable (U : BigCrystallineSite.Object p B J δ f) (r : U.ring) |
| 28 | |
| 29 | abbrev Ring := Localization.Away r |
| 30 | |
| 31 | abbrev ideal : Ideal (Ring U r) := U.ideal.map (algebraMap U.ring (Ring U r)) |
| 32 | |
| 33 | abbrev dividedPowers := |
| 34 | DividedPower.Localization.dividedPowers U.dividedPowers (Submonoid.powers r) (Ring U r) |
| 35 | |
| 36 | def baseMap : B →+* Ring U r := (algebraMap U.ring (Ring U r)).comp U.base |
| 37 | |
| 38 | def localizationDP : DividedPowers.DPMorphism U.dividedPowers (Crystalline.Localization.dividedPowers U r) := |
| 39 | DividedPower.Localization.localizationMap U.dividedPowers (Submonoid.powers r) (Ring U r) |
| 40 | |
| 41 | def closedMap : Spec (CommRingCat.of (Ring U r ⧸ Crystalline.Localization.ideal U r)) ⟶ |
| 42 | Spec (CommRingCat.of (U.ring ⧸ U.ideal)) := |
| 43 | Spec.map (CommRingCat.ofHom (IntegralComparison.Quotient.QuotientPullback.residueMap U.ideal |
| 44 | (algebraMap U.ring (Ring U r)))) |
| 45 | |
| 46 | lemma primeNilpotent : IsNilpotent (p : Ring U r) := by |
| 47 | obtain ⟨n, hn⟩ := U.primeNilpotent |
| 48 | refine ⟨n, ?_⟩ |
| 49 | rw [← map_natCast (algebraMap U.ring (Ring U r)) p, ← map_pow, hn, map_zero] |
| 50 | |
| 51 | lemma nilIdeal : ∀ x ∈ Crystalline.Localization.ideal U r, IsNilpotent x := by |
| 52 | intro x hx |
| 53 | obtain ⟨a, s, rfl⟩ := |
| 54 | DividedPower.Localization.ideal_fraction (Submonoid.powers r) (Ring U r) hx |
| 55 | obtain ⟨n, hn⟩ := U.nilIdeal a a.property |
| 56 | refine ⟨n, ?_⟩ |
| 57 | rw [IsLocalization.mk'_eq_mul_mk'_one, mul_pow, ← map_pow, hn, map_zero, zero_mul] |
| 58 | |
| 59 | lemma closed_cartesian : IsPullback (closedMap U r) |
| 60 | (Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (Crystalline.Localization.ideal U r)))) |
| 61 | (Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk U.ideal))) |
| 62 | (Spec.map (CommRingCat.ofHom (algebraMap U.ring (Ring U r)))) := |
| 63 | IntegralComparison.Quotient.QuotientPullback.schemePullback U.ideal (algebraMap U.ring (Ring U r)) |
| 64 | |
| 65 | abbrev object : BigCrystallineSite.Object p B J δ f where |
| 66 | ring := CommRingCat.of (Ring U r) |
| 67 | base := baseMap U r |
| 68 | ideal := Crystalline.Localization.ideal U r |
| 69 | dividedPowers := Crystalline.Localization.dividedPowers U r |
| 70 | baseCompatible := (localizationDP U r).isDPMorphism.comp _ U.baseCompatible |
| 71 | primeNilpotent := Crystalline.Localization.primeNilpotent U r |
| 72 | nilIdeal := Crystalline.Localization.nilIdeal U r |
| 73 | mapToX := closedMap U r ≫ U.mapToX |
| 74 | overBase := by |
| 75 | rw [Category.assoc, U.overBase, ← Category.assoc, (closed_cartesian U r).w, |
| 76 | Category.assoc, ← Spec.map_comp] |
| 77 | rfl |
| 78 | |
| 79 | def hom : object U r ⟶ U where |
| 80 | ringMap := localizationDP U r |
| 81 | overBase := rfl |
| 82 | overX := rfl |
| 83 | |
| 84 | lemma hom_cartesian : BigCrystallineSite.Object.Cartesian (hom U r) := closed_cartesian U r |
| 85 | |
| 86 | instance hom_open : IsOpenImmersion (BigCrystallineSite.Object.ambient.map (hom U r)) := |
| 87 | inferInstanceAs (IsOpenImmersion |
| 88 | (Spec.map (CommRingCat.ofHom (algebraMap U.ring (Localization.Away r))))) |
| 89 | |
| 90 | lemma hom_range : (BigCrystallineSite.Object.ambient.map (hom U r)).opensRange = PrimeSpectrum.basicOpen r := |
| 91 | Scheme.Hom.opensRange_localizationAway r |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Localization |