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.PowerEnvelope |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Nilpotence |
| 3 | |
| 4 | /-! # Envelope Residue -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.EnvelopeResidue |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the closed subscheme of the divided-power envelope |
| 12 | |
| 13 | The quotient of the constructed envelope by its divided-power ideal is |
| 14 | proved to be the original quotient B/I. If p is nilpotent in B, the |
| 15 | envelope is a genuine divided-power thickening of that same quotient. |
| 16 | -/ |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.PowerEnvelope |
| 21 | |
| 22 | variable (A B : Type u) [CommRing A] [CommRing B] |
| 23 | variable (J : Ideal A) (δ : DividedPowers J) (f : A →+* B) (I : Ideal B) |
| 24 | |
| 25 | /-- The original quotient, carrying the zero divided-power ideal. -/ |
| 26 | def residueTarget (hf : J ≤ I.comap f) : DividedPower.PowerEnvelope.Target A B J δ f I where |
| 27 | ring := B ⧸ I |
| 28 | ideal := ⊥ |
| 29 | dividedPowers := dividedPowersBot _ |
| 30 | fromBase := Ideal.Quotient.mk I |
| 31 | mapsIdeal := fun _x hx => Ideal.Quotient.eq_zero_iff_mem.mpr hx |
| 32 | baseCompatible := by |
| 33 | refine ⟨Ideal.map_le_iff_le_comap.mpr (fun x hx => ?_), ?_⟩ |
| 34 | · exact Ideal.Quotient.eq_zero_iff_mem.mpr (hf hx) |
| 35 | · intro n x hx |
| 36 | have hx0 : Ideal.Quotient.mk I (f x) = 0 := Ideal.Quotient.eq_zero_iff_mem.mpr (hf hx) |
| 37 | simp only [RingHom.comp_apply] |
| 38 | rw [hx0] |
| 39 | by_cases hn : n = 0 |
| 40 | · subst n |
| 41 | rw [(dividedPowersBot (B ⧸ I)).dpow_zero (Ideal.zero_mem _), |
| 42 | δ.dpow_zero hx, map_one, map_one] |
| 43 | · rw [(dividedPowersBot (B ⧸ I)).dpow_eval_zero hn] |
| 44 | have hmem : f (δ.dpow n x) ∈ I := hf (δ.dpow_mem hn hx) |
| 45 | exact (Ideal.Quotient.eq_zero_iff_mem.mpr hmem).symm |
| 46 | |
| 47 | def reduction (hf : J ≤ I.comap f) : DividedPower.PowerEnvelope.Envelope A B J δ f I →+* B ⧸ I := |
| 48 | (DividedPower.PowerEnvelope.lift A B J δ f I (residueTarget A B J δ f I hf)).toRingHom |
| 49 | |
| 50 | lemma reduction_fromBase (hf : J ≤ I.comap f) : |
| 51 | (reduction A B J δ f I hf).comp (DividedPower.PowerEnvelope.toEnvelope A B J δ f I) = Ideal.Quotient.mk I := |
| 52 | DividedPower.PowerEnvelope.lift_fromBase A B J δ f I (residueTarget A B J δ f I hf) |
| 53 | |
| 54 | lemma reduction_kills (hf : J ≤ I.comap f) : |
| 55 | DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I ≤ RingHom.ker (reduction A B J δ f I hf) := |
| 56 | Ideal.map_le_iff_le_comap.mp (DividedPower.PowerEnvelope.lift A B J δ f I (residueTarget A B J δ f I hf)).ideal_comp |
| 57 | |
| 58 | def toQuotient (hf : J ≤ I.comap f) : |
| 59 | (DividedPower.PowerEnvelope.Envelope A B J δ f I ⧸ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) →+* B ⧸ I := |
| 60 | Ideal.Quotient.lift _ (reduction A B J δ f I hf) (reduction_kills A B J δ f I hf) |
| 61 | |
| 62 | def baseQuotientMap : B →+* (DividedPower.PowerEnvelope.Envelope A B J δ f I ⧸ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) := |
| 63 | (Ideal.Quotient.mk _).comp (DividedPower.PowerEnvelope.toEnvelope A B J δ f I) |
| 64 | |
| 65 | def fromQuotient : B ⧸ I →+* (DividedPower.PowerEnvelope.Envelope A B J δ f I ⧸ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) := |
| 66 | Ideal.Quotient.lift I (baseQuotientMap A B J δ f I) |
| 67 | (fun _x hx => Ideal.Quotient.eq_zero_iff_mem.mpr (DividedPower.PowerEnvelope.toEnvelope_mapsIdeal A B J δ f I hx)) |
| 68 | |
| 69 | private def expressionResidue : DividedPower.PowerEnvelope.expressionRing A B J δ f I →+* |
| 70 | (DividedPower.PowerEnvelope.Envelope A B J δ f I ⧸ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) := |
| 71 | (Ideal.Quotient.mk _).comp (DividedPower.PowerEnvelope.envelopeEquiv A B J δ f I).symm.toRingHom |
| 72 | |
| 73 | private lemma expression_mem_range : ∀ e : DividedPower.PowerEnvelope.Expression B I, |
| 74 | expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I e) ∈ |
| 75 | (baseQuotientMap A B J δ f I).range |
| 76 | | .constant b => ⟨b, rfl⟩ |
| 77 | | .add x y => by |
| 78 | change expressionResidue A B J δ f I |
| 79 | (DividedPower.PowerEnvelope.element A B J δ f I x + DividedPower.PowerEnvelope.element A B J δ f I y) ∈ _ |
| 80 | have he : expressionResidue A B J δ f I |
| 81 | (DividedPower.PowerEnvelope.element A B J δ f I x + DividedPower.PowerEnvelope.element A B J δ f I y) = |
| 82 | expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I x) + |
| 83 | expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I y) := |
| 84 | (expressionResidue A B J δ f I).map_add' _ _ |
| 85 | rw [he] |
| 86 | exact (baseQuotientMap A B J δ f I).range.add_mem |
| 87 | (expression_mem_range x) (expression_mem_range y) |
| 88 | | .neg x => by |
| 89 | change expressionResidue A B J δ f I (-DividedPower.PowerEnvelope.element A B J δ f I x) ∈ _ |
| 90 | erw [map_neg (expressionResidue A B J δ f I).toAddMonoidHom (DividedPower.PowerEnvelope.element A B J δ f I x)] |
| 91 | exact (baseQuotientMap A B J δ f I).range.neg_mem (expression_mem_range x) |
| 92 | | .mul x y => by |
| 93 | change expressionResidue A B J δ f I |
| 94 | (DividedPower.PowerEnvelope.element A B J δ f I x * DividedPower.PowerEnvelope.element A B J δ f I y) ∈ _ |
| 95 | have he : expressionResidue A B J δ f I |
| 96 | (DividedPower.PowerEnvelope.element A B J δ f I x * DividedPower.PowerEnvelope.element A B J δ f I y) = |
| 97 | expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I x) * |
| 98 | expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I y) := |
| 99 | (expressionResidue A B J δ f I).map_mul' _ _ |
| 100 | rw [he] |
| 101 | exact (baseQuotientMap A B J δ f I).range.mul_mem |
| 102 | (expression_mem_range x) (expression_mem_range y) |
| 103 | | .ideal x => by |
| 104 | have hz : expressionResidue A B J δ f I (DividedPower.PowerEnvelope.element A B J δ f I (.ideal x)) = 0 := |
| 105 | Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.mem_map_of_mem |
| 106 | (DividedPower.PowerEnvelope.envelopeEquiv A B J δ f I).symm.toRingHom ⟨x, rfl⟩) |
| 107 | rw [hz] |
| 108 | exact (baseQuotientMap A B J δ f I).range.zero_mem |
| 109 | |
| 110 | lemma fromQuotient_surjective : Function.Surjective (fromQuotient A B J δ f I) := by |
| 111 | intro z |
| 112 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective z |
| 113 | obtain ⟨x, rfl⟩ := (DividedPower.PowerEnvelope.envelopeEquiv A B J δ f I).symm.surjective x |
| 114 | obtain ⟨e, rfl⟩ := DividedPower.PowerEnvelope.element_surjective A B J δ f I x |
| 115 | obtain ⟨b, hb⟩ := EnvelopeResidue.expression_mem_range A B J δ f I e |
| 116 | exact ⟨Ideal.Quotient.mk I b, hb⟩ |
| 117 | |
| 118 | lemma toQuotient_fromQuotient (hf : J ≤ I.comap f) : |
| 119 | (toQuotient A B J δ f I hf).comp (fromQuotient A B J δ f I) = RingHom.id _ := by |
| 120 | apply RingHom.ext |
| 121 | intro x |
| 122 | obtain ⟨b, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 123 | exact DFunLike.congr_fun (reduction_fromBase A B J δ f I hf) b |
| 124 | |
| 125 | /-- Forming the divided-power envelope preserves the prescribed closed subscheme. -/ |
| 126 | def quotientEquiv (hf : J ≤ I.comap f) : |
| 127 | B ⧸ I ≃+* (DividedPower.PowerEnvelope.Envelope A B J δ f I ⧸ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) := |
| 128 | RingEquiv.ofBijective (fromQuotient A B J δ f I) |
| 129 | ⟨Function.LeftInverse.injective (fun x => |
| 130 | DFunLike.congr_fun (toQuotient_fromQuotient A B J δ f I hf) x), |
| 131 | fromQuotient_surjective A B J δ f I⟩ |
| 132 | |
| 133 | lemma prime_nilpotent (p : ℕ) (hp : IsNilpotent (p : B)) : |
| 134 | IsNilpotent (p : DividedPower.PowerEnvelope.Envelope A B J δ f I) := by |
| 135 | simpa only [map_natCast] using hp.map (DividedPower.PowerEnvelope.toEnvelope A B J δ f I) |
| 136 | |
| 137 | lemma envelope_nilIdeal (p : ℕ) (hp : 0 < p) (hpn : IsNilpotent (p : B)) |
| 138 | {x : DividedPower.PowerEnvelope.Envelope A B J δ f I} (hx : x ∈ DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I) : IsNilpotent x := |
| 139 | DividedPower.Nilpotence.nilpotent_of_mem |
| 140 | (DividedPower.PowerEnvelope.envelopeDividedPowers A B J δ f I) p hp (prime_nilpotent A B J δ f I p hpn) hx |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.NumberTheory.PadicHodge.IntegralComparison.EnvelopeResidue |