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.AlgebraicGeometry.Resolution.Blowups.DifferentialCoefficientOrder |
| 2 | import Mathlib.RingTheory.Filtration |
| 3 | import Mathlib.RingTheory.Noetherian.Basic |
| 4 | |
| 5 | /-! # Regularity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Coordinate.Regularity.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Regularity of a coordinate with unit derivative in a Noetherian rational algebra. -/ |
| 12 | |
| 13 | variable {k A : Type*} [CommRing k] [CommRing A] [Algebra k A] |
| 14 | |
| 15 | theorem iteratedDerivation_zero (D : Derivation k A A) (j : ℕ) : D^[j] 0 = 0 := by |
| 16 | induction j with |
| 17 | | zero => rfl |
| 18 | | succ j ih => simp only [Function.iterate_succ_apply', ih, map_zero] |
| 19 | |
| 20 | /-- If multiplication by a coordinate kills an element, every derivative |
| 21 | of that element lies in the coordinate ideal. -/ |
| 22 | theorem coordinate_annihilator_derivatives_mem [Algebra ℚ A] |
| 23 | (D : Derivation k A A) (z : A) (hz : D z = 1) (x : A) (hx : z * x = 0) (j : ℕ) : |
| 24 | D^[j] x ∈ Ideal.span {z} := by |
| 25 | have h := congrArg (fun r => D^[j + 1] r) hx |
| 26 | rw [DifferentialCoefficientOrder.Construction.iteratedDerivation_coordinate_mul D z hz, iteratedDerivation_zero] at h |
| 27 | have hn : (j + 1) • D^[j] x ∈ Ideal.span {z} := by |
| 28 | have he : (j + 1) • D^[j] x = -(z * D^[j + 1] x) := eq_neg_of_add_eq_zero_right h |
| 29 | rw [he] |
| 30 | exact (Ideal.span {z}).neg_mem (Ideal.mul_mem_right _ _ (Ideal.mem_span_singleton_self z)) |
| 31 | obtain ⟨u, hu⟩ := DifferentialCoefficientOrder.Construction.natCast_isUnit_of_rationalAlgebra (A := A) (j + 1) (by omega) |
| 32 | rw [nsmul_eq_mul, ← hu] at hn |
| 33 | have hmul := (Ideal.span {z}).mul_mem_left (u⁻¹ : Aˣ) hn |
| 34 | simpa only [← mul_assoc, Units.inv_mul, one_mul] using hmul |
| 35 | |
| 36 | /-- A coordinate is a non-zero-divisor in a Noetherian rational algebra. |
| 37 | The proof uses the derivative order criterion and Krull intersection. -/ |
| 38 | theorem coordinate_isRegular [Algebra ℚ A] [IsNoetherianRing A] |
| 39 | (D : Derivation k A A) (z : A) (hz : D z = 1) : IsRegular z := by |
| 40 | have hzero : ∀ x : A, z * x = 0 → x = 0 := by |
| 41 | intro x hx |
| 42 | let Z : Ideal A := Ideal.span {z} |
| 43 | have hp : ∀ b : ℕ, x ∈ Z ^ b := by |
| 44 | intro b |
| 45 | apply (DifferentialCoefficientOrder.Construction.mem_pow_iff_coordinate_derivatives D z hz Z (Ideal.mem_span_singleton_self z) b x).mpr |
| 46 | intro j _ |
| 47 | exact Submodule.mem_sup_right (coordinate_annihilator_derivatives_mem D z hz x hx j) |
| 48 | have hi : x ∈ (⨅ b : ℕ, Z ^ b • ⊤ : Submodule A A) := by |
| 49 | rw [Submodule.mem_iInf] |
| 50 | intro b |
| 51 | simpa only [smul_eq_mul, Ideal.mul_top] using hp b |
| 52 | obtain ⟨r, hr⟩ := (Z.mem_iInf_smul_pow_eq_bot_iff x).mp hi |
| 53 | obtain ⟨s, hs⟩ := Ideal.mem_span_singleton.mp r.property |
| 54 | change r.val * x = x at hr |
| 55 | rw [hs, mul_assoc, mul_left_comm z s x, hx, mul_zero] at hr |
| 56 | exact hr.symm |
| 57 | constructor |
| 58 | · intro x y h |
| 59 | change z * x = z * y at h |
| 60 | apply sub_eq_zero.mp |
| 61 | apply hzero |
| 62 | rw [mul_sub, h, sub_self] |
| 63 | · intro x y h |
| 64 | change x * z = y * z at h |
| 65 | apply sub_eq_zero.mp |
| 66 | apply hzero |
| 67 | rw [mul_sub, mul_comm z x, mul_comm z y, h, sub_self] |
| 68 | |
| 69 | /-- A derivation descends through an ideal that it preserves. -/ |
| 70 | def quotientDerivation (D : Derivation k A A) (I : Ideal A) |
| 71 | (hI : ∀ x ∈ I, D x ∈ I) : Derivation k (A ⧸ I) (A ⧸ I) where |
| 72 | toLinearMap := (I.restrictScalars k).liftQ |
| 73 | ((Ideal.Quotient.mkₐ k I).toLinearMap.comp D.toLinearMap) (by |
| 74 | intro x hx |
| 75 | exact Ideal.Quotient.eq_zero_iff_mem.mpr (hI x hx)) |
| 76 | map_one_eq_zero' := by |
| 77 | change Ideal.Quotient.mk I (D 1) = 0 |
| 78 | rw [D.map_one_eq_zero, map_zero] |
| 79 | leibniz' x y := by |
| 80 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 81 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective y |
| 82 | change Ideal.Quotient.mk I (D (x * y)) = |
| 83 | Ideal.Quotient.mk I x * Ideal.Quotient.mk I (D y) + |
| 84 | Ideal.Quotient.mk I y * Ideal.Quotient.mk I (D x) |
| 85 | rw [D.leibniz] |
| 86 | change Ideal.Quotient.mk I (x * D y + y * D x) = _ |
| 87 | rw [map_add, map_mul, map_mul] |
| 88 | |
| 89 | theorem quotientDerivation_mk (D : Derivation k A A) (I : Ideal A) |
| 90 | (hI : ∀ x ∈ I, D x ∈ I) (x : A) : |
| 91 | quotientDerivation D I hI (Ideal.Quotient.mk I x) = Ideal.Quotient.mk I (D x) := rfl |
| 92 | |
| 93 | /-- A regular pair can be swapped when its second element is regular |
| 94 | modulo the first. -/ |
| 95 | theorem regular_quotient_swap (c z : A) (hc : IsRegular c) |
| 96 | (hz : IsRegular (Ideal.Quotient.mk (Ideal.span {c}) z)) : |
| 97 | IsRegular (Ideal.Quotient.mk (Ideal.span {z}) c) := by |
| 98 | let C : Ideal A := Ideal.span {c} |
| 99 | let Z : Ideal A := Ideal.span {z} |
| 100 | have hzero : ∀ x : A ⧸ Z, Ideal.Quotient.mk Z c * x = 0 → x = 0 := by |
| 101 | intro x hx |
| 102 | obtain ⟨r, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 103 | have hcr : c * r ∈ Z := by |
| 104 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 105 | rwa [map_mul] |
| 106 | obtain ⟨s, hs⟩ := Ideal.mem_span_singleton.mp hcr |
| 107 | have hsC : Ideal.Quotient.mk C s = 0 := by |
| 108 | apply hz.left |
| 109 | have he := congrArg (Ideal.Quotient.mk C) hs |
| 110 | have hc0 : Ideal.Quotient.mk C c = 0 := |
| 111 | Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.mem_span_singleton_self c) |
| 112 | simpa only [map_mul, hc0, zero_mul, mul_zero] using he.symm |
| 113 | obtain ⟨t, ht⟩ := Ideal.mem_span_singleton.mp (Ideal.Quotient.eq_zero_iff_mem.mp hsC) |
| 114 | have hr : r = z * t := by |
| 115 | apply hc.left |
| 116 | change c * r = c * (z * t) |
| 117 | rw [hs, ht] |
| 118 | ring |
| 119 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 120 | rw [hr] |
| 121 | exact Z.mul_mem_right t (Ideal.mem_span_singleton_self z) |
| 122 | constructor |
| 123 | · intro x y h |
| 124 | change Ideal.Quotient.mk Z c * x = Ideal.Quotient.mk Z c * y at h |
| 125 | apply sub_eq_zero.mp |
| 126 | apply hzero |
| 127 | rw [mul_sub, h, sub_self] |
| 128 | · intro x y h |
| 129 | change x * Ideal.Quotient.mk Z c = y * Ideal.Quotient.mk Z c at h |
| 130 | apply sub_eq_zero.mp |
| 131 | apply hzero |
| 132 | rw [mul_sub, mul_comm _ x, mul_comm _ y, h, sub_self] |
| 133 | |
| 134 | /-- A regular element annihilated by the coordinate derivation remains |
| 135 | regular on the coordinate hypersurface in a Noetherian rational algebra. -/ |
| 136 | theorem regular_mod_coordinate [Algebra ℚ A] [IsNoetherianRing A] |
| 137 | (D : Derivation k A A) (c z : A) (hc : IsRegular c) (hDc : D c = 0) (hDz : D z = 1) : |
| 138 | IsRegular (Ideal.Quotient.mk (Ideal.span {z}) c) := by |
| 139 | let : IsNoetherianRing (A ⧸ Ideal.span {c}) := |
| 140 | isNoetherianRing_of_surjective A _ (Ideal.Quotient.mk (Ideal.span {c})) Ideal.Quotient.mk_surjective |
| 141 | have hI : ∀ x ∈ Ideal.span {c}, D x ∈ Ideal.span {c} := by |
| 142 | intro x hx |
| 143 | obtain ⟨t, ht⟩ := Ideal.mem_span_singleton.mp hx |
| 144 | rw [ht, D.leibniz, hDc] |
| 145 | change c * D t + t * 0 ∈ Ideal.span {c} |
| 146 | rw [mul_zero, add_zero] |
| 147 | exact Ideal.mul_mem_right _ _ (Ideal.mem_span_singleton_self c) |
| 148 | let E := quotientDerivation D (Ideal.span {c}) hI |
| 149 | have hz : E (Ideal.Quotient.mk (Ideal.span {c}) z) = 1 := by |
| 150 | rw [quotientDerivation_mk, hDz, map_one] |
| 151 | exact regular_quotient_swap c z hc (coordinate_isRegular E _ hz) |
| 152 | |
| 153 | end |
| 154 | |
| 155 | end OAI.AlgebraicGeometry.Resolution.Blowups.Coordinate.Regularity.Construction |