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.Relations |
| 3 | |
| 4 | /-! # Pushout -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Pushout |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the ring underlying a divided-power pushout |
| 12 | |
| 13 | Start with the tensor product of the two rings. Form a relative |
| 14 | divided-power envelope for the left ring, then impose the divided-power |
| 15 | compatibility relations for the right ring. Both original rings map to |
| 16 | the resulting ring by actual divided-power morphisms. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (A B C : Type u) [CommRing A] [CommRing B] [CommRing C] [Algebra A B] [Algebra A C] |
| 24 | variable (I : Ideal B) (δ : DividedPowers I) (J : Ideal C) (ε : DividedPowers J) |
| 25 | |
| 26 | abbrev Tensor := TensorProduct A B C |
| 27 | |
| 28 | def leftRingMap : B →+* Tensor A B C := (Algebra.TensorProduct.includeLeft : B →ₐ[A] Tensor A B C).toRingHom |
| 29 | |
| 30 | def rightRingMap : C →+* Tensor A B C := (Algebra.TensorProduct.includeRight : C →ₐ[A] Tensor A B C).toRingHom |
| 31 | |
| 32 | def tensorIdeal : Ideal (Tensor A B C) := I.map (leftRingMap A B C) ⊔ J.map (rightRingMap A B C) |
| 33 | |
| 34 | lemma left_ideal : I ≤ (tensorIdeal A B C I J).comap (leftRingMap A B C) := |
| 35 | fun _ hx => (show I.map (leftRingMap A B C) ≤ tensorIdeal A B C I J from le_sup_left) |
| 36 | (Ideal.mem_map_of_mem _ hx) |
| 37 | |
| 38 | abbrev Envelope := PowerEnvelope.Envelope B (Tensor A B C) I δ |
| 39 | (leftRingMap A B C) (tensorIdeal A B C I J) |
| 40 | |
| 41 | abbrev envelopeIdeal := PowerEnvelope.envelopeIdeal B (Tensor A B C) I δ |
| 42 | (leftRingMap A B C) (tensorIdeal A B C I J) |
| 43 | |
| 44 | abbrev envelopeDividedPowers := PowerEnvelope.envelopeDividedPowers B (Tensor A B C) I δ |
| 45 | (leftRingMap A B C) (tensorIdeal A B C I J) |
| 46 | |
| 47 | def toEnvelope : Tensor A B C →+* Envelope A B C I δ J := |
| 48 | PowerEnvelope.toEnvelope B (Tensor A B C) I δ |
| 49 | (leftRingMap A B C) (tensorIdeal A B C I J) |
| 50 | |
| 51 | def leftToEnvelope : DividedPowers.DPMorphism δ (envelopeDividedPowers A B C I δ J) where |
| 52 | toRingHom := (toEnvelope A B C I δ J).comp (leftRingMap A B C) |
| 53 | ideal_comp := (PowerEnvelope.envelopeTarget B (Tensor A B C) I δ |
| 54 | (leftRingMap A B C) (tensorIdeal A B C I J) (left_ideal A B C I J)).baseCompatible.ideal_comp |
| 55 | dpow_comp := (PowerEnvelope.envelopeTarget B (Tensor A B C) I δ |
| 56 | (leftRingMap A B C) (tensorIdeal A B C I J) (left_ideal A B C I J)).baseCompatible.dpow_comp |
| 57 | |
| 58 | def rightToEnvelope : C →+* Envelope A B C I δ J := |
| 59 | (toEnvelope A B C I δ J).comp (rightRingMap A B C) |
| 60 | |
| 61 | lemma right_ideal {x : C} (hx : x ∈ J) : rightToEnvelope A B C I δ J x ∈ envelopeIdeal A B C I δ J := |
| 62 | PowerEnvelope.toEnvelope_mapsIdeal B (Tensor A B C) I δ |
| 63 | (leftRingMap A B C) (tensorIdeal A B C I J) |
| 64 | ((show J.map (rightRingMap A B C) ≤ tensorIdeal A B C I J from le_sup_right) |
| 65 | (Ideal.mem_map_of_mem _ hx)) |
| 66 | |
| 67 | def relations : Set (Envelope A B C I δ J) := |
| 68 | {z | ∃ (n : ℕ) (_ : n ≠ 0) (x : C) (_ : x ∈ J), z = |
| 69 | (envelopeDividedPowers A B C I δ J).dpow n (rightToEnvelope A B C I δ J x) - |
| 70 | rightToEnvelope A B C I δ J (ε.dpow n x)} |
| 71 | |
| 72 | lemma relations_subset : relations A B C I δ J ε ⊆ envelopeIdeal A B C I δ J := by |
| 73 | rintro _ ⟨n, hn, x, hx, rfl⟩ |
| 74 | exact (envelopeIdeal A B C I δ J).sub_mem |
| 75 | ((envelopeDividedPowers A B C I δ J).dpow_mem hn (right_ideal A B C I δ J hx)) |
| 76 | (right_ideal A B C I δ J (ε.dpow_mem hn hx)) |
| 77 | |
| 78 | abbrev Ring := Envelope A B C I δ J ⧸ Relations.relationIdeal |
| 79 | (envelopeDividedPowers A B C I δ J) (relations A B C I δ J ε) |
| 80 | |
| 81 | abbrev dividedPowers := Relations.dividedPowers |
| 82 | (envelopeDividedPowers A B C I δ J) (relations A B C I δ J ε) (relations_subset A B C I δ J ε) |
| 83 | |
| 84 | def quotientDP : DividedPowers.DPMorphism (envelopeDividedPowers A B C I δ J) |
| 85 | (dividedPowers A B C I δ J ε) := |
| 86 | Relations.quotientMap (envelopeDividedPowers A B C I δ J) |
| 87 | (relations A B C I δ J ε) (relations_subset A B C I δ J ε) |
| 88 | |
| 89 | def leftMap : DividedPowers.DPMorphism δ (dividedPowers A B C I δ J ε) := |
| 90 | (quotientDP A B C I δ J ε).comp (leftToEnvelope A B C I δ J) |
| 91 | |
| 92 | def rightMapRing : C →+* Ring A B C I δ J ε := |
| 93 | (quotientDP A B C I δ J ε).toRingHom.comp (rightToEnvelope A B C I δ J) |
| 94 | |
| 95 | lemma rightMap_isDPMorphism : DividedPowers.IsDPMorphism ε (dividedPowers A B C I δ J ε) |
| 96 | (rightMapRing A B C I δ J ε) := by |
| 97 | apply (DividedPowers.isDPMorphism_iff _ _ _).mpr |
| 98 | refine ⟨Ideal.map_le_iff_le_comap.mpr (fun x hx => ?_), ?_⟩ |
| 99 | · exact Ideal.mem_map_of_mem _ (right_ideal A B C I δ J hx) |
| 100 | · intro n hn x hx |
| 101 | change (dividedPowers A B C I δ J ε).dpow n |
| 102 | ((quotientDP A B C I δ J ε) (rightToEnvelope A B C I δ J x)) = |
| 103 | (quotientDP A B C I δ J ε) (rightToEnvelope A B C I δ J (ε.dpow n x)) |
| 104 | have hdp := (quotientDP A B C I δ J ε).dpow_comp (n := n) |
| 105 | (rightToEnvelope A B C I δ J x) (right_ideal A B C I δ J hx) |
| 106 | refine hdp.trans ?_ |
| 107 | apply sub_eq_zero.mp |
| 108 | change (quotientDP A B C I δ J ε).toRingHom |
| 109 | ((envelopeDividedPowers A B C I δ J).dpow n (rightToEnvelope A B C I δ J x)) - |
| 110 | (quotientDP A B C I δ J ε).toRingHom (rightToEnvelope A B C I δ J (ε.dpow n x)) = 0 |
| 111 | rw [← map_sub] |
| 112 | exact Ideal.Quotient.eq_zero_iff_mem.mpr |
| 113 | (Relations.relation_mem (envelopeDividedPowers A B C I δ J) |
| 114 | (relations A B C I δ J ε) (relations_subset A B C I δ J ε) ⟨n, hn, x, hx, rfl⟩) |
| 115 | |
| 116 | def rightMap : DividedPowers.DPMorphism ε (dividedPowers A B C I δ J ε) where |
| 117 | toRingHom := rightMapRing A B C I δ J ε |
| 118 | ideal_comp := (rightMap_isDPMorphism A B C I δ J ε).ideal_comp |
| 119 | dpow_comp := (rightMap_isDPMorphism A B C I δ J ε).dpow_comp |
| 120 | |
| 121 | lemma maps_agree : (leftMap A B C I δ J ε).toRingHom.comp (algebraMap A B) = |
| 122 | (rightMap A B C I δ J ε).toRingHom.comp (algebraMap A C) := by |
| 123 | apply RingHom.ext |
| 124 | intro a |
| 125 | change (quotientDP A B C I δ J ε) (toEnvelope A B C I δ J ((leftRingMap A B C) (algebraMap A B a))) = |
| 126 | (quotientDP A B C I δ J ε) (toEnvelope A B C I δ J ((rightRingMap A B C) (algebraMap A C a))) |
| 127 | congr 2 |
| 128 | exact ((Algebra.TensorProduct.includeLeft : B →ₐ[A] Tensor A B C).commutes a).trans |
| 129 | ((Algebra.TensorProduct.includeRight : C →ₐ[A] Tensor A B C).commutes a).symm |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Pushout |