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 | |
| 3 | /-! # Envelope Functor -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.EnvelopeFunctor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: functorial endomorphisms of divided-power envelopes |
| 11 | |
| 12 | An explicitly constructed endomorphism of the input ring, compatible with |
| 13 | the divided-power base and preserving the defining ideal, induces an |
| 14 | actual divided-power endomorphism of its envelope by the proved universal |
| 15 | property. This is used for polynomial Frobenius lifts. |
| 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 | variable (hf : J ≤ I.comap f) |
| 25 | variable (α : DividedPowers.DPMorphism δ δ) (β : B →+* B) |
| 26 | variable (hcomm : β.comp f = f.comp α.toRingHom) (hβ : I ≤ I.comap β) |
| 27 | |
| 28 | def endomorphismTarget : DividedPower.PowerEnvelope.Target A B J δ f I where |
| 29 | ring := DividedPower.PowerEnvelope.Envelope A B J δ f I |
| 30 | ideal := DividedPower.PowerEnvelope.envelopeIdeal A B J δ f I |
| 31 | dividedPowers := DividedPower.PowerEnvelope.envelopeDividedPowers A B J δ f I |
| 32 | fromBase := (DividedPower.PowerEnvelope.toEnvelope A B J δ f I).comp β |
| 33 | mapsIdeal := fun _x hx => DividedPower.PowerEnvelope.toEnvelope_mapsIdeal A B J δ f I (hβ hx) |
| 34 | baseCompatible := by |
| 35 | have hc : ((DividedPower.PowerEnvelope.toEnvelope A B J δ f I).comp β).comp f = |
| 36 | ((DividedPower.PowerEnvelope.toEnvelope A B J δ f I).comp f).comp α.toRingHom := by |
| 37 | rw [RingHom.comp_assoc, hcomm, ← RingHom.comp_assoc] |
| 38 | rw [hc] |
| 39 | exact (DividedPower.PowerEnvelope.envelopeTarget A B J δ f I hf).baseCompatible.comp _ α.isDPMorphism |
| 40 | |
| 41 | /-- The induced divided-power endomorphism, with no assumed envelope maps. -/ |
| 42 | def endomorphism : |
| 43 | DividedPowers.DPMorphism (DividedPower.PowerEnvelope.envelopeDividedPowers A B J δ f I) |
| 44 | (DividedPower.PowerEnvelope.envelopeDividedPowers A B J δ f I) := |
| 45 | DividedPower.PowerEnvelope.lift A B J δ f I (endomorphismTarget A B J δ f I hf α β hcomm hβ) |
| 46 | |
| 47 | lemma endomorphism_fromBase : |
| 48 | (endomorphism A B J δ f I hf α β hcomm hβ).toRingHom.comp (DividedPower.PowerEnvelope.toEnvelope A B J δ f I) = |
| 49 | (DividedPower.PowerEnvelope.toEnvelope A B J δ f I).comp β := |
| 50 | DividedPower.PowerEnvelope.lift_fromBase A B J δ f I (endomorphismTarget A B J δ f I hf α β hcomm hβ) |
| 51 | |
| 52 | /-- Change the map from the presentation ring by its specified endomorphism. -/ |
| 53 | def transformedTarget (M : DividedPower.PowerEnvelope.Target A B J δ f I) : DividedPower.PowerEnvelope.Target A B J δ f I where |
| 54 | ring := M.ring |
| 55 | ideal := M.ideal |
| 56 | dividedPowers := M.dividedPowers |
| 57 | fromBase := M.fromBase.comp β |
| 58 | mapsIdeal := fun _x hx => M.mapsIdeal (hβ hx) |
| 59 | baseCompatible := by |
| 60 | have hc : (M.fromBase.comp β).comp f = (M.fromBase.comp f).comp α.toRingHom := by |
| 61 | rw [RingHom.comp_assoc, hcomm, ← RingHom.comp_assoc] |
| 62 | rw [hc] |
| 63 | exact M.baseCompatible.comp _ α.isDPMorphism |
| 64 | |
| 65 | /-- The envelope endomorphism commutes with any explicitly given compatible |
| 66 | target endomorphism. -/ |
| 67 | lemma endomorphism_natural (M : DividedPower.PowerEnvelope.Target A B J δ f I) |
| 68 | (η : DividedPowers.DPMorphism M.dividedPowers M.dividedPowers) |
| 69 | (hη : η.toRingHom.comp M.fromBase = M.fromBase.comp β) : |
| 70 | (DividedPower.PowerEnvelope.lift A B J δ f I M).comp (endomorphism A B J δ f I hf α β hcomm hβ) = |
| 71 | η.comp (DividedPower.PowerEnvelope.lift A B J δ f I M) := by |
| 72 | let N := transformedTarget A B J δ f I α β hcomm hβ M |
| 73 | have hleft : (DividedPower.PowerEnvelope.lift A B J δ f I M).comp (endomorphism A B J δ f I hf α β hcomm hβ) = |
| 74 | DividedPower.PowerEnvelope.lift A B J δ f I N := by |
| 75 | apply DividedPower.PowerEnvelope.lift_unique A B J δ f I N |
| 76 | change ((DividedPower.PowerEnvelope.lift A B J δ f I M).toRingHom.comp |
| 77 | (endomorphism A B J δ f I hf α β hcomm hβ).toRingHom).comp (DividedPower.PowerEnvelope.toEnvelope A B J δ f I) = |
| 78 | M.fromBase.comp β |
| 79 | rw [RingHom.comp_assoc, endomorphism_fromBase, ← RingHom.comp_assoc, DividedPower.PowerEnvelope.lift_fromBase] |
| 80 | have hright : η.comp (DividedPower.PowerEnvelope.lift A B J δ f I M) = DividedPower.PowerEnvelope.lift A B J δ f I N := by |
| 81 | apply DividedPower.PowerEnvelope.lift_unique A B J δ f I N |
| 82 | change η.toRingHom.comp ((DividedPower.PowerEnvelope.lift A B J δ f I M).toRingHom.comp (DividedPower.PowerEnvelope.toEnvelope A B J δ f I)) = |
| 83 | M.fromBase.comp β |
| 84 | rw [DividedPower.PowerEnvelope.lift_fromBase] |
| 85 | exact hη |
| 86 | exact hleft.trans hright.symm |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.NumberTheory.PadicHodge.IntegralComparison.EnvelopeFunctor |