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 Mathlib |
| 2 | |
| 3 | /-! # Differential Derivation Core -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.DifferentialDerivationCore.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! In characteristic zero, an ideal preserved by a derivation has a |
| 12 | radical preserved by the same derivation. This is the algebraic step |
| 13 | needed to pass infinitesimal invariance to a reduced closed subgroup. -/ |
| 14 | |
| 15 | variable {k A : Type*} [Field k] [CommRing A] [Algebra k A] |
| 16 | |
| 17 | theorem derivation_pow_mul_self (D : Derivation k A A) (x : A) (n : ℕ) : |
| 18 | D (x ^ n) * x = n • (x ^ n * D x) := by |
| 19 | cases n with |
| 20 | | zero => simp |
| 21 | | succ n => |
| 22 | rw [Derivation.leibniz_pow] |
| 23 | simp only [Nat.add_sub_cancel, nsmul_eq_mul, smul_eq_mul, pow_succ] |
| 24 | ring |
| 25 | |
| 26 | theorem derivation_power_step_identity (D : Derivation k A A) (x : A) (a b : ℕ) : |
| 27 | D (x ^ (a + 1) * (D x) ^ b) * D x = |
| 28 | (a + 1) • (x ^ a * (D x) ^ (b + 2)) + |
| 29 | b • (x ^ (a + 1) * (D x) ^ b * D (D x)) := by |
| 30 | rw [Derivation.leibniz] |
| 31 | simp only [smul_eq_mul, add_mul] |
| 32 | rw [mul_assoc (x ^ (a + 1)), derivation_pow_mul_self, |
| 33 | Derivation.leibniz_pow] |
| 34 | simp only [Nat.add_sub_cancel, nsmul_eq_mul, smul_eq_mul, pow_add, pow_one, pow_two] |
| 35 | ring |
| 36 | |
| 37 | variable [CharZero k] |
| 38 | |
| 39 | theorem derivation_power_mem (D : Derivation k A A) (I : Ideal A) |
| 40 | (hD : ∀ x ∈ I, D x ∈ I) (x : A) (a b : ℕ) |
| 41 | (h : x ^ a * (D x) ^ b ∈ I) : (D x) ^ (b + 2 * a) ∈ I := by |
| 42 | induction a generalizing b with |
| 43 | | zero => simpa using h |
| 44 | | succ a ih => |
| 45 | have hfirst : D (x ^ (a + 1) * (D x) ^ b) * D x ∈ I := |
| 46 | I.mul_mem_right _ (hD _ h) |
| 47 | have hsecond : b • (x ^ (a + 1) * (D x) ^ b * D (D x)) ∈ I := |
| 48 | I.nsmul_mem (I.mul_mem_right _ h) b |
| 49 | rw [derivation_power_step_identity] at hfirst |
| 50 | have hscale : (a + 1) • (x ^ a * (D x) ^ (b + 2)) ∈ I := |
| 51 | (I.add_mem_iff_left hsecond).mp hfirst |
| 52 | have hscale' : ((a + 1 : ℕ) : k) • (x ^ a * (D x) ^ (b + 2)) ∈ I := by |
| 53 | simpa only [Nat.cast_smul_eq_nsmul] using hscale |
| 54 | have ha : ((a + 1 : ℕ) : k) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.succ_ne_zero a) |
| 55 | have hnext : x ^ a * (D x) ^ (b + 2) ∈ I := |
| 56 | ((I.restrictScalars k).smul_mem_iff ha).mp hscale' |
| 57 | have hh := ih (b + 2) hnext |
| 58 | have he : b + 2 * a.succ = b + 2 + 2 * a := by omega |
| 59 | rw [he] |
| 60 | exact hh |
| 61 | |
| 62 | theorem derivation_preserves_radical (D : Derivation k A A) (I : Ideal A) |
| 63 | (hD : ∀ x ∈ I, D x ∈ I) : ∀ x ∈ I.radical, D x ∈ I.radical := by |
| 64 | intro x hx |
| 65 | obtain ⟨n, hn⟩ := hx |
| 66 | have h : x ^ n * (D x) ^ 0 ∈ I := by simpa using hn |
| 67 | exact ⟨2 * n, by simpa using derivation_power_mem D I hD x n 0 h⟩ |
| 68 | |
| 69 | end |
| 70 | |
| 71 | section |
| 72 | |
| 73 | /-! The largest ideal inside a given ideal preserved by a specified |
| 74 | family of derivations. Over characteristic zero, the core of a radical |
| 75 | ideal is radical. -/ |
| 76 | |
| 77 | variable {k A : Type*} [Field k] [CommRing A] [Algebra k A] |
| 78 | |
| 79 | def derivativeIdealStep (S : Set (Derivation k A A)) (I : Ideal A) : Ideal A where |
| 80 | carrier := {x | x ∈ I ∧ ∀ D ∈ S, D x ∈ I} |
| 81 | zero_mem' := ⟨I.zero_mem, by intro D _; simp⟩ |
| 82 | add_mem' := by |
| 83 | rintro x y ⟨hx, hx'⟩ ⟨hy, hy'⟩ |
| 84 | refine ⟨I.add_mem hx hy, ?_⟩ |
| 85 | intro D hD |
| 86 | rw [map_add] |
| 87 | exact I.add_mem (hx' D hD) (hy' D hD) |
| 88 | smul_mem' := by |
| 89 | rintro a x ⟨hx, hx'⟩ |
| 90 | refine ⟨I.smul_mem a hx, ?_⟩ |
| 91 | intro D hD |
| 92 | change D (a * x) ∈ I |
| 93 | rw [Derivation.leibniz] |
| 94 | exact I.add_mem (I.smul_mem a (hx' D hD)) (I.mul_mem_right _ hx) |
| 95 | |
| 96 | def iteratedDerivativeIdeal (S : Set (Derivation k A A)) (I : Ideal A) : ℕ → Ideal A |
| 97 | | 0 => I |
| 98 | | n + 1 => derivativeIdealStep S (iteratedDerivativeIdeal S I n) |
| 99 | |
| 100 | def differentialCore (S : Set (Derivation k A A)) (I : Ideal A) : Ideal A := |
| 101 | ⨅ n, Construction.iteratedDerivativeIdeal S I n |
| 102 | |
| 103 | theorem differentialCore_le (S : Set (Derivation k A A)) (I : Ideal A) : |
| 104 | differentialCore S I ≤ I := iInf_le _ 0 |
| 105 | |
| 106 | theorem differentialCore_derivation (S : Set (Derivation k A A)) (I : Ideal A) |
| 107 | (D : Derivation k A A) (hD : D ∈ S) {x : A} (hx : x ∈ differentialCore S I) : |
| 108 | D x ∈ differentialCore S I := by |
| 109 | apply Ideal.mem_iInf.mpr |
| 110 | intro n |
| 111 | have hn := Ideal.mem_iInf.mp hx (n + 1) |
| 112 | exact hn.2 D hD |
| 113 | |
| 114 | theorem le_differentialCore (S : Set (Derivation k A A)) (I J : Ideal A) |
| 115 | (hle : J ≤ I) (hD : ∀ D ∈ S, ∀ x ∈ J, D x ∈ J) : J ≤ differentialCore S I := by |
| 116 | apply le_iInf |
| 117 | intro n |
| 118 | induction n with |
| 119 | | zero => exact hle |
| 120 | | succ n ih => |
| 121 | intro x hx |
| 122 | exact ⟨ih hx, fun D hDS => ih (hD D hDS x hx)⟩ |
| 123 | |
| 124 | theorem differentialCore_isRadical [CharZero k] |
| 125 | (S : Set (Derivation k A A)) (I : Ideal A) (hI : I.IsRadical) : |
| 126 | (differentialCore S I).IsRadical := by |
| 127 | change (differentialCore S I).radical ≤ differentialCore S I |
| 128 | apply le_differentialCore |
| 129 | · exact hI.radical_le_iff.mpr (differentialCore_le S I) |
| 130 | · intro D hD |
| 131 | exact derivation_preserves_radical D _ (fun _ hx => differentialCore_derivation S I D hD hx) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | /-! Polynomial maps intertwining a family of derivations preserve its |
| 136 | differential core when they preserve the initial ideal. -/ |
| 137 | |
| 138 | theorem differentialCore_map_mem |
| 139 | {k A : Type*} [Field k] [CommRing A] [Algebra k A] |
| 140 | (S : Set (Derivation k A A)) (I : Ideal A) (f : A →ₐ[k] A) |
| 141 | (hf : ∀ x ∈ I, f x ∈ I) |
| 142 | (hcomm : ∀ D ∈ S, ∃ E ∈ S, ∀ x, D (f x) = f (E x)) |
| 143 | {x : A} (hx : x ∈ differentialCore S I) : f x ∈ differentialCore S I := by |
| 144 | apply Ideal.mem_iInf.mpr |
| 145 | intro n |
| 146 | induction n generalizing x with |
| 147 | | zero => exact hf x (differentialCore_le S I hx) |
| 148 | | succ n ih => |
| 149 | refine ⟨ih hx, ?_⟩ |
| 150 | intro D hD |
| 151 | obtain ⟨E, hE, he⟩ := hcomm D hD |
| 152 | rw [he] |
| 153 | exact ih (differentialCore_derivation S I E hE hx) |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.NumberTheory.ArithmeticGroups.Lattices.DifferentialDerivationCore.Construction |