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.SeparatedProductRing |
| 2 | |
| 3 | /-! # Separated Product Geometry -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductGeometry |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the crystalline product object over a separated scheme and its projections |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductRing |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductData |
| 19 | |
| 20 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 21 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of B)) [IsSeparated f] |
| 22 | variable (U V : BigCrystallineSite.Object p B J δ f) |
| 23 | |
| 24 | def fstResidue : U.ring ⧸ U.ideal →+* SeparatedProductRing.Ring f U V ⧸ SeparatedProductRing.ideal f U V := |
| 25 | Ideal.quotientMap (SeparatedProductRing.ideal f U V) (SeparatedProductRing.fstDP f U V).toRingHom |
| 26 | (Ideal.map_le_iff_le_comap.mp (SeparatedProductRing.fstDP f U V).ideal_comp) |
| 27 | |
| 28 | def sndResidue : V.ring ⧸ V.ideal →+* SeparatedProductRing.Ring f U V ⧸ SeparatedProductRing.ideal f U V := |
| 29 | Ideal.quotientMap (SeparatedProductRing.ideal f U V) (SeparatedProductRing.sndDP f U V).toRingHom |
| 30 | (Ideal.map_le_iff_le_comap.mp (SeparatedProductRing.sndDP f U V).ideal_comp) |
| 31 | |
| 32 | lemma residueEquiv_fst : (SeparatedProductRing.residueEquiv f U V).toRingHom.comp (fstResidue f U V) = (Spec.preimage (SeparatedProductData.closedFst f U V)).hom := by |
| 33 | apply RingHom.ext |
| 34 | intro x |
| 35 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 36 | exact SeparatedProductRing.residueEquiv_left f U V y |
| 37 | |
| 38 | lemma residueEquiv_snd : (SeparatedProductRing.residueEquiv f U V).toRingHom.comp (sndResidue f U V) = (Spec.preimage (SeparatedProductData.closedSnd f U V)).hom := by |
| 39 | apply RingHom.ext |
| 40 | intro x |
| 41 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 42 | exact SeparatedProductRing.residueEquiv_right f U V y |
| 43 | |
| 44 | def closedIso : Spec (CommRingCat.of (SeparatedProductRing.Ring f U V ⧸ SeparatedProductRing.ideal f U V)) ≅ Spec (SeparatedProductData.ClosedRing f U V) := |
| 45 | (Scheme.Spec.mapIso (SeparatedProductRing.residueEquiv f U V).toCommRingCatIso.op).symm |
| 46 | |
| 47 | def fstClosed : Spec (CommRingCat.of (SeparatedProductRing.Ring f U V ⧸ SeparatedProductRing.ideal f U V)) ⟶ |
| 48 | Spec (CommRingCat.of (U.ring ⧸ U.ideal)) := Spec.map (CommRingCat.ofHom (fstResidue f U V)) |
| 49 | |
| 50 | def sndClosed : Spec (CommRingCat.of (SeparatedProductRing.Ring f U V ⧸ SeparatedProductRing.ideal f U V)) ⟶ |
| 51 | Spec (CommRingCat.of (V.ring ⧸ V.ideal)) := Spec.map (CommRingCat.ofHom (sndResidue f U V)) |
| 52 | |
| 53 | lemma fstClosed_eq : fstClosed f U V = (closedIso f U V).hom ≫ Spec.map (CommRingCat.ofHom ((Spec.preimage (SeparatedProductData.closedFst f U V)).hom)) := by |
| 54 | have hr : fstResidue f U V = (SeparatedProductRing.residueEquiv f U V).symm.toRingHom.comp ((Spec.preimage (SeparatedProductData.closedFst f U V)).hom) := by |
| 55 | apply RingHom.ext |
| 56 | intro x |
| 57 | apply (SeparatedProductRing.residueEquiv f U V).injective |
| 58 | exact (DFunLike.congr_fun (residueEquiv_fst f U V) x).trans |
| 59 | ((SeparatedProductRing.residueEquiv f U V).apply_symm_apply _).symm |
| 60 | change Spec.map (CommRingCat.ofHom (fstResidue f U V)) = |
| 61 | Spec.map (CommRingCat.ofHom (SeparatedProductRing.residueEquiv f U V).symm.toRingHom) ≫ |
| 62 | Spec.map (CommRingCat.ofHom ((Spec.preimage (SeparatedProductData.closedFst f U V)).hom)) |
| 63 | rw [← Spec.map_comp] |
| 64 | exact congrArg (fun t => Spec.map (CommRingCat.ofHom t)) hr |
| 65 | |
| 66 | lemma sndClosed_eq : sndClosed f U V = (closedIso f U V).hom ≫ Spec.map (CommRingCat.ofHom ((Spec.preimage (SeparatedProductData.closedSnd f U V)).hom)) := by |
| 67 | have hr : sndResidue f U V = (SeparatedProductRing.residueEquiv f U V).symm.toRingHom.comp ((Spec.preimage (SeparatedProductData.closedSnd f U V)).hom) := by |
| 68 | apply RingHom.ext |
| 69 | intro x |
| 70 | apply (SeparatedProductRing.residueEquiv f U V).injective |
| 71 | exact (DFunLike.congr_fun (residueEquiv_snd f U V) x).trans |
| 72 | ((SeparatedProductRing.residueEquiv f U V).apply_symm_apply _).symm |
| 73 | change Spec.map (CommRingCat.ofHom (sndResidue f U V)) = |
| 74 | Spec.map (CommRingCat.ofHom (SeparatedProductRing.residueEquiv f U V).symm.toRingHom) ≫ |
| 75 | Spec.map (CommRingCat.ofHom ((Spec.preimage (SeparatedProductData.closedSnd f U V)).hom)) |
| 76 | rw [← Spec.map_comp] |
| 77 | exact congrArg (fun t => Spec.map (CommRingCat.ofHom t)) hr |
| 78 | |
| 79 | lemma closed_square : fstClosed f U V ≫ U.mapToX = sndClosed f U V ≫ V.mapToX := by |
| 80 | rw [fstClosed_eq, sndClosed_eq] |
| 81 | change ((closedIso f U V).hom ≫ Spec.map (Spec.preimage (SeparatedProductData.closedFst f U V))) ≫ U.mapToX = |
| 82 | ((closedIso f U V).hom ≫ Spec.map (Spec.preimage (SeparatedProductData.closedSnd f U V))) ≫ V.mapToX |
| 83 | rw [Spec.map_preimage, Spec.map_preimage, |
| 84 | Category.assoc, Category.assoc, (SeparatedProductData.closed_pullback f U V).w] |
| 85 | |
| 86 | lemma fstClosed_naturality : fstClosed f U V ≫ Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk U.ideal)) = |
| 87 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (SeparatedProductRing.ideal f U V))) ≫ |
| 88 | Spec.map (CommRingCat.ofHom (SeparatedProductRing.fstDP f U V).toRingHom) := by |
| 89 | change Spec.map (CommRingCat.ofHom (fstResidue f U V)) ≫ |
| 90 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk U.ideal)) = _ |
| 91 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 92 | rfl |
| 93 | |
| 94 | variable (hp : 0 < p) |
| 95 | |
| 96 | abbrev object : BigCrystallineSite.Object p B J δ f where |
| 97 | ring := CommRingCat.of (SeparatedProductRing.Ring f U V) |
| 98 | base := (SeparatedProductRing.fstDP f U V).toRingHom.comp U.base |
| 99 | ideal := SeparatedProductRing.ideal f U V |
| 100 | dividedPowers := SeparatedProductRing.dividedPowers f U V |
| 101 | baseCompatible := (SeparatedProductRing.fstDP f U V).isDPMorphism.comp _ U.baseCompatible |
| 102 | primeNilpotent := SeparatedProductRing.prime_nilpotent f U V |
| 103 | nilIdeal _ hx := SeparatedProductRing.nilIdeal f U V hp hx |
| 104 | mapToX := fstClosed f U V ≫ U.mapToX |
| 105 | overBase := by |
| 106 | rw [Category.assoc, U.overBase, ← Category.assoc, fstClosed_naturality, |
| 107 | Category.assoc, ← Spec.map_comp] |
| 108 | rfl |
| 109 | |
| 110 | def fst : object f U V hp ⟶ U where |
| 111 | ringMap := SeparatedProductRing.fstDP f U V |
| 112 | overBase := rfl |
| 113 | overX := rfl |
| 114 | |
| 115 | def snd : object f U V hp ⟶ V where |
| 116 | ringMap := SeparatedProductRing.sndDP f U V |
| 117 | overBase := (SeparatedProductRing.base_agree f U V).symm |
| 118 | overX := (closed_square f U V).symm |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.SeparatedProductGeometry |