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.DividedPower.PushoutLift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Nilpotence |
| 3 | |
| 4 | /-! # Pushout Residue -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.PushoutResidue |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the closed subscheme of a divided-power pushout |
| 12 | |
| 13 | The closed quotient represents the tensor product of the two original |
| 14 | closed quotients over the common ring. This follows from the actual |
| 15 | pushout universal property by testing against zero divided-power ideals. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Pushout |
| 23 | |
| 24 | variable (A B C : Type u) [CommRing A] [CommRing B] [CommRing C] [Algebra A B] [Algebra A C] |
| 25 | variable (I : Ideal B) (δ : DividedPowers I) (J : Ideal C) (ε : DividedPowers J) |
| 26 | |
| 27 | abbrev ideal : Ideal (Pushout.Ring A B C I δ J ε) := |
| 28 | (Pushout.envelopeIdeal A B C I δ J).map (Pushout.quotientDP A B C I δ J ε).toRingHom |
| 29 | |
| 30 | abbrev Residue := Pushout.Ring A B C I δ J ε ⧸ ideal A B C I δ J ε |
| 31 | |
| 32 | def leftResidue : B ⧸ I →+* Residue A B C I δ J ε := |
| 33 | Ideal.quotientMap (ideal A B C I δ J ε) (Pushout.leftMap A B C I δ J ε).toRingHom |
| 34 | (Ideal.map_le_iff_le_comap.mp (Pushout.leftMap A B C I δ J ε).ideal_comp) |
| 35 | |
| 36 | def rightResidue : C ⧸ J →+* Residue A B C I δ J ε := |
| 37 | Ideal.quotientMap (ideal A B C I δ J ε) (Pushout.rightMap A B C I δ J ε).toRingHom |
| 38 | (Ideal.map_le_iff_le_comap.mp (Pushout.rightMap A B C I δ J ε).ideal_comp) |
| 39 | |
| 40 | def leftBase : A →+* B ⧸ I := (Ideal.Quotient.mk I).comp (algebraMap A B) |
| 41 | |
| 42 | def rightBase : A →+* C ⧸ J := (Ideal.Quotient.mk J).comp (algebraMap A C) |
| 43 | |
| 44 | lemma residue_agree : (leftResidue A B C I δ J ε).comp (leftBase A B I) = |
| 45 | (rightResidue A B C I δ J ε).comp (rightBase A C J) := by |
| 46 | apply RingHom.ext |
| 47 | intro a |
| 48 | exact congrArg (Ideal.Quotient.mk (ideal A B C I δ J ε)) |
| 49 | (DFunLike.congr_fun (Pushout.maps_agree A B C I δ J ε) a) |
| 50 | |
| 51 | variable {D : Type u} [CommRing D] (b : B ⧸ I →+* D) (c : C ⧸ J →+* D) |
| 52 | variable (h : b.comp (leftBase A B I) = c.comp (rightBase A C J)) |
| 53 | |
| 54 | def leftToBot : DividedPowers.DPMorphism δ (dividedPowersBot D) := |
| 55 | Transfer.mapToBot δ (b.comp (Ideal.Quotient.mk I)) (by |
| 56 | intro x hx |
| 57 | change b (Ideal.Quotient.mk I x) = 0 |
| 58 | rw [Ideal.Quotient.eq_zero_iff_mem.mpr hx, map_zero]) |
| 59 | |
| 60 | def rightToBot : DividedPowers.DPMorphism ε (dividedPowersBot D) := |
| 61 | Transfer.mapToBot ε (c.comp (Ideal.Quotient.mk J)) (by |
| 62 | intro x hx |
| 63 | change c (Ideal.Quotient.mk J x) = 0 |
| 64 | rw [Ideal.Quotient.eq_zero_iff_mem.mpr hx, map_zero]) |
| 65 | |
| 66 | def residueLiftDP : DividedPowers.DPMorphism (Pushout.dividedPowers A B C I δ J ε) (dividedPowersBot D) := |
| 67 | PushoutLift.lift A B C I δ J ε |
| 68 | (leftToBot B I δ b) (rightToBot C J ε c) h |
| 69 | |
| 70 | def residueLift : Residue A B C I δ J ε →+* D := |
| 71 | Ideal.Quotient.lift (ideal A B C I δ J ε) (residueLiftDP A B C I δ J ε b c h).toRingHom |
| 72 | (Ideal.map_le_iff_le_comap.mp (residueLiftDP A B C I δ J ε b c h).ideal_comp) |
| 73 | |
| 74 | lemma residueLift_left : (residueLift A B C I δ J ε b c h).comp (leftResidue A B C I δ J ε) = b := by |
| 75 | apply RingHom.ext |
| 76 | intro x |
| 77 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 78 | exact DFunLike.congr_fun (PushoutLift.lift_left A B C I δ J ε |
| 79 | (leftToBot B I δ b) (rightToBot C J ε c) h) y |
| 80 | |
| 81 | lemma residueLift_right : (residueLift A B C I δ J ε b c h).comp (rightResidue A B C I δ J ε) = c := by |
| 82 | apply RingHom.ext |
| 83 | intro x |
| 84 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 85 | exact DFunLike.congr_fun (PushoutLift.lift_right A B C I δ J ε |
| 86 | (leftToBot B I δ b) (rightToBot C J ε c) h) y |
| 87 | |
| 88 | lemma residueLift_unique (m : Residue A B C I δ J ε →+* D) |
| 89 | (hm : m.comp (leftResidue A B C I δ J ε) = b) |
| 90 | (hm' : m.comp (rightResidue A B C I δ J ε) = c) : m = residueLift A B C I δ J ε b c h := by |
| 91 | let ψ := Transfer.mapToBot (Pushout.dividedPowers A B C I δ J ε) |
| 92 | (m.comp (Ideal.Quotient.mk (ideal A B C I δ J ε))) (by |
| 93 | intro x hx |
| 94 | change m (Ideal.Quotient.mk (ideal A B C I δ J ε) x) = 0 |
| 95 | exact (congrArg m (show Ideal.Quotient.mk (ideal A B C I δ J ε) x = 0 from |
| 96 | Ideal.Quotient.eq_zero_iff_mem.mpr hx)).trans (map_zero m)) |
| 97 | have he : ψ = residueLiftDP A B C I δ J ε b c h := by |
| 98 | apply PushoutLift.lift_unique A B C I δ J ε |
| 99 | (leftToBot B I δ b) (rightToBot C J ε c) h |
| 100 | · apply DFunLike.ext |
| 101 | intro x |
| 102 | exact DFunLike.congr_fun hm (Ideal.Quotient.mk I x) |
| 103 | · apply DFunLike.ext |
| 104 | intro x |
| 105 | exact DFunLike.congr_fun hm' (Ideal.Quotient.mk J x) |
| 106 | apply RingHom.ext |
| 107 | intro x |
| 108 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 109 | exact DFunLike.congr_fun he y |
| 110 | |
| 111 | omit b c h in |
| 112 | lemma ringPushout : IsPushout (CommRingCat.ofHom (leftBase A B I)) |
| 113 | (CommRingCat.ofHom (rightBase A C J)) (CommRingCat.ofHom (leftResidue A B C I δ J ε)) |
| 114 | (CommRingCat.ofHom (rightResidue A B C I δ J ε)) := by |
| 115 | refine ⟨⟨congrArg CommRingCat.ofHom (residue_agree A B C I δ J ε)⟩, ⟨?_⟩⟩ |
| 116 | apply PushoutCocone.isColimitAux' |
| 117 | intro s |
| 118 | let hs := congrArg CommRingCat.Hom.hom s.condition |
| 119 | refine ⟨CommRingCat.ofHom (residueLift A B C I δ J ε s.inl.hom s.inr.hom hs), ?_, ?_, ?_⟩ |
| 120 | · exact congrArg CommRingCat.ofHom (residueLift_left A B C I δ J ε s.inl.hom s.inr.hom hs) |
| 121 | · exact congrArg CommRingCat.ofHom (residueLift_right A B C I δ J ε s.inl.hom s.inr.hom hs) |
| 122 | · intro m hm hm' |
| 123 | exact congrArg CommRingCat.ofHom (residueLift_unique A B C I δ J ε s.inl.hom s.inr.hom hs |
| 124 | m.hom (congrArg CommRingCat.Hom.hom hm) (congrArg CommRingCat.Hom.hom hm')) |
| 125 | |
| 126 | omit b c h in |
| 127 | lemma schemePullback : IsPullback (Spec.map (CommRingCat.ofHom (rightResidue A B C I δ J ε))) |
| 128 | (Spec.map (CommRingCat.ofHom (leftResidue A B C I δ J ε))) |
| 129 | (Spec.map (CommRingCat.ofHom (rightBase A C J))) (Spec.map (CommRingCat.ofHom (leftBase A B I))) := |
| 130 | (ringPushout A B C I δ J ε).op.map Scheme.Spec |
| 131 | |
| 132 | omit b c h in |
| 133 | lemma prime_nilpotent (p : ℕ) (hp : IsNilpotent (p : B)) : IsNilpotent (p : Pushout.Ring A B C I δ J ε) := by |
| 134 | simpa only [map_natCast] using hp.map (Pushout.leftMap A B C I δ J ε).toRingHom |
| 135 | |
| 136 | omit b c h in |
| 137 | lemma nilIdeal (p : ℕ) (hp : 0 < p) (hpn : IsNilpotent (p : B)) |
| 138 | {x : Pushout.Ring A B C I δ J ε} (hx : x ∈ ideal A B C I δ J ε) : IsNilpotent x := |
| 139 | Nilpotence.nilpotent_of_mem (Pushout.dividedPowers A B C I δ J ε) p hp |
| 140 | (prime_nilpotent A B C I δ J ε p hpn) hx |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.PushoutResidue |