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.RepresentationTheory.Hecke.GaloisValuationCm |
| 2 | import OAI.NumberTheory.PadicHodge.Newton |
| 3 | |
| 4 | /-! # Arithmetic -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.Arithmetic.CM.ExtremeSlopesAdapter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The full recorded arithmetic input propositions, with only parser-level |
| 11 | renamings from FrobeniusSlope. No admitted statement is imported or used. -/ |
| 12 | |
| 13 | open scoped Classical TensorProduct |
| 14 | |
| 15 | /-- The full FrobeniusSlope specification, not an assumed numerical Newton formula. -/ |
| 16 | def FrobeniusSlopeInput : Prop := ∀ |
| 17 | {K L V : Type*} |
| 18 | [Field K] [CharZero K] |
| 19 | [Field L] [CharZero L] [IsAlgClosed L] |
| 20 | [AddCommGroup V] [Module L V] |
| 21 | [FiniteDimensional L V] [Nontrivial V] |
| 22 | (q : ℕ) (_hq : q.Prime) |
| 23 | (jC : K →+* ℂ) (ι : K →+* L) |
| 24 | (r b e : K) |
| 25 | (_hr : r ^ 2 = (q : K)) |
| 26 | (_hrC : jC r = (Real.sqrt (q : ℝ) : ℂ)) |
| 27 | (_heC : ‖jC e‖ = 1) |
| 28 | (_hcentral : ∃ n : ℕ, 0 < n ∧ (b ^ 3 * e) ^ n = 1) |
| 29 | (Φ : Module.End L V) |
| 30 | (T : Fin 3 → Module.End L V) |
| 31 | |
| 32 | -- Commuting pullbacks on the chosen summand. |
| 33 | (_hcomm : ∀ i j, Commute (T i) (T j)) |
| 34 | (_hΦcomm : ∀ i, Commute Φ (T i)) |
| 35 | |
| 36 | -- Equation (7), transported to contravariant H¹. |
| 37 | (_hpoly : |
| 38 | Φ ^ 3 - T 0 * Φ ^ 2 + |
| 39 | q • (T 1 * Φ) - (q ^ 3) • T 2 = 0) |
| 40 | |
| 41 | -- Full generalized Hecke eigendata after absorbing C₀. |
| 42 | (_hSatake : |
| 43 | ∀ i : Fin 3, |
| 44 | (T i).genEigenspace |
| 45 | (ι ((![ |
| 46 | (q : K) * b * (r + r⁻¹ + e), |
| 47 | (q : K) * b ^ 2 * |
| 48 | (r * r⁻¹ + r * e + r⁻¹ * e), |
| 49 | b ^ 3 * e |
| 50 | ] : Fin 3 → K) i)) ⊤ = ⊤) |
| 51 | |
| 52 | -- Weil weights and characteristic-polynomial comparison. |
| 53 | (_hWeil : |
| 54 | ∀ a : K, Φ.HasEigenvalue (ι a) → |
| 55 | ‖jC a‖ = Real.sqrt (q : ℝ)) |
| 56 | |
| 57 | (ν : AddValuation L (WithTop ℚ)) |
| 58 | (_hνq : ν (q : L) = (1 : WithTop ℚ)) |
| 59 | (s : ℚ) |
| 60 | (_hνe : ν (ι e) = (s : WithTop ℚ)), |
| 61 | |
| 62 | -- Generalized eigenspaces allow nonsemisimple Frobenius. |
| 63 | Φ.genEigenspace (ι (b * r)) ⊤ = ⊤ ∧ |
| 64 | ∀ μ : L, Φ.HasEigenvalue μ → |
| 65 | μ = ι (b * r) ∧ |
| 66 | ν μ = ((1 / 2 - s / 3 : ℚ) : WithTop ℚ) |
| 67 | |
| 68 | open OAI.RepresentationTheory.Hecke.GaloisValuationCm in |
| 69 | /-- The full GaloisValuation specification, including every projective extension. -/ |
| 70 | def GaloisValuationInput : Prop := ∀ |
| 71 | (E : IntermediateField ℚ ℂ) |
| 72 | [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 73 | (ιE : E →ₐ[ℚ] RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 74 | (res : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ) →* Gal(E/ℚ)) |
| 75 | (_hres : ∀ (σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ)) (x : E), |
| 76 | σ (ιE x) = ιE ((res σ) x)) |
| 77 | (v : AlgebraicGeometry.ComplexMultiplication.OddSignSwitch.CM.OddSignPattern |
| 78 | (fun τ : Gal(E/ℚ) => AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)) |
| 79 | (_hL2_8_normalized : v.val 1 = true) |
| 80 | (d : Gal(E/ℚ) → ℤ) |
| 81 | (_hL2_8_sign : ∀ τ, d τ = AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (v.val τ⁻¹)) |
| 82 | (reps : Finset (Gal(E/ℚ))) |
| 83 | (_hL2_8_active : (1 : Gal(E/ℚ)) ∈ reps) |
| 84 | (_hL2_8_representatives : ∀ τ : Gal(E/ℚ), |
| 85 | τ ∈ reps ↔ AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) |
| 86 | (q : ℕ) (_hq : q.Prime) |
| 87 | (M : ℕ) (_hM : 0 < M) |
| 88 | (r : Eˣ) |
| 89 | (_hnorm : (r : E) * AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (r : E) = 1) |
| 90 | (ν : RepresentationTheory.Hecke.GaloisValuationCm.Qbar → ℚ) |
| 91 | (_hν_mul : ∀ x y : RepresentationTheory.Hecke.GaloisValuationCm.Qbar, x ≠ 0 → y ≠ 0 → |
| 92 | ν (x * y) = ν x + ν y) |
| 93 | (_hν_add : ∀ x y : RepresentationTheory.Hecke.GaloisValuationCm.Qbar, |
| 94 | x ≠ 0 → y ≠ 0 → x + y ≠ 0 → |
| 95 | min (ν x) (ν y) ≤ ν (x + y)) |
| 96 | (_hν_q : ν (q : RepresentationTheory.Hecke.GaloisValuationCm.Qbar) = 1) |
| 97 | (_hsplit : ∀ τ : Gal(E/ℚ), |
| 98 | ν (ιE (τ (r : E))) = |
| 99 | if τ = AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E then (M : ℚ) |
| 100 | else if τ = 1 then -(M : ℚ) |
| 101 | else 0) |
| 102 | (e₀ e ω ζ : RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 103 | (ε : ℤ) (_hC4_10_convention : ε = 1 ∨ ε = -1) |
| 104 | (_hC4_10_phase : ∃ n : ℕ, 0 < n ∧ ζ ^ n = 1) |
| 105 | (_hC4_10_relation : ω ^ 2 = |
| 106 | ζ * ∏ τ ∈ reps, (ιE (τ (r : E))) ^ (ε * 3 * d τ)) |
| 107 | (_hC4_11_root : e₀ ^ M = ω) |
| 108 | (_hC4_11_parameter : e = e₀ ∨ e = e₀⁻¹) |
| 109 | (j : RepresentationTheory.Hecke.GaloisValuationCm.Qbar →ₐ[ℚ] ℂ) |
| 110 | (_hC4_10_unit : ∀ σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ), ‖j (σ e)‖ = 1) |
| 111 | (s : RepresentationTheory.Hecke.GaloisValuationCm.Qbar) (_hs : s ^ 2 = (q : RepresentationTheory.Hecke.GaloisValuationCm.Qbar)) |
| 112 | (P : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ) → Fin 3 → RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 113 | (_hE52 : ∀ σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ), |
| 114 | RepresentationTheory.Hecke.GaloisValuationCm.ProjectivelyEqual (P σ) |
| 115 | (fun i => σ (RepresentationTheory.Hecke.GaloisValuationCm.parameterTriple s e i))), |
| 116 | (ν e = (-3 / 2 : ℚ) ∨ ν e = (3 / 2 : ℚ)) ∧ |
| 117 | ∀ σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ), |
| 118 | ν (σ e) = (d ((res σ)⁻¹) : ℚ) * ν e ∧ |
| 119 | (∃ eσ : RepresentationTheory.Hecke.GaloisValuationCm.Qbar, |
| 120 | RepresentationTheory.Hecke.GaloisValuationCm.ProjectivelyEqual (P σ) (RepresentationTheory.Hecke.GaloisValuationCm.parameterTriple s eσ)) ∧ |
| 121 | (∀ eσ : RepresentationTheory.Hecke.GaloisValuationCm.Qbar, |
| 122 | RepresentationTheory.Hecke.GaloisValuationCm.ProjectivelyEqual (P σ) (RepresentationTheory.Hecke.GaloisValuationCm.parameterTriple s eσ) → |
| 123 | (eσ = σ e ∨ eσ = -(σ e)) ∧ |
| 124 | ν eσ = (d ((res σ)⁻¹) : ℚ) * ν e) |
| 125 | |
| 126 | /-- Apply the full FrobeniusSlope proposition to the actual base-changed Frobenius. |
| 127 | The polynomial, Hecke eigenvalues and Weil bounds are its original antecedents; |
| 128 | the Newton-number formula is proved from the resulting eigenvalue valuations. -/ |
| 129 | theorem newton_number_of_full_FrobeniusSlope |
| 130 | (h_FrobeniusSlope : FrobeniusSlopeInput.{0, 0, 0}) |
| 131 | (q : ℕ) [Fact q.Prime] |
| 132 | (L : IntermediateField ℚ_[q] (AlgebraicClosure ℚ_[q])) |
| 133 | [FiniteDimensional ℚ_[q] L] |
| 134 | {D : Type} [AddCommGroup D] [Module L D] [FiniteDimensional L D] |
| 135 | [Nontrivial D] [Module ℚ_[q] D] [IsScalarTower ℚ_[q] L D] |
| 136 | (φ : D ≃ₗ[L] D) |
| 137 | (jC : AlgebraicClosure ℚ →+* ℂ) |
| 138 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) |
| 139 | (r b e : AlgebraicClosure ℚ) |
| 140 | (hr : r ^ 2 = (q : AlgebraicClosure ℚ)) |
| 141 | (hrC : jC r = (Real.sqrt (q : ℝ) : ℂ)) |
| 142 | (heC : ‖jC e‖ = 1) |
| 143 | (hcentral : ∃ n : ℕ, 0 < n ∧ (b ^ 3 * e) ^ n = 1) |
| 144 | (T : Fin 3 → Module.End (AlgebraicClosure ℚ_[q]) |
| 145 | (AlgebraicClosure ℚ_[q] ⊗[L] D)) |
| 146 | (hcomm : ∀ i j, Commute (T i) (T j)) |
| 147 | (hΦcomm : ∀ i, Commute (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) (T i)) |
| 148 | (hpoly : let Φ := φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q]) |
| 149 | Φ ^ 3 - T 0 * Φ ^ 2 + q • (T 1 * Φ) - (q ^ 3) • T 2 = 0) |
| 150 | (hSatake : ∀ i : Fin 3, |
| 151 | (T i).genEigenspace |
| 152 | (ι ((![(q : AlgebraicClosure ℚ) * b * (r + r⁻¹ + e), |
| 153 | (q : AlgebraicClosure ℚ) * b ^ 2 * (r * r⁻¹ + r * e + r⁻¹ * e), |
| 154 | b ^ 3 * e] : Fin 3 → AlgebraicClosure ℚ) i)) ⊤ = ⊤) |
| 155 | (hWeil : ∀ a : AlgebraicClosure ℚ, |
| 156 | Module.End.HasEigenvalue (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) (ι a) → |
| 157 | ‖jC a‖ = Real.sqrt (q : ℝ)) : |
| 158 | (Padic.valuation (p := q) (LinearMap.det (φ.restrictScalars ℚ_[q]).toLinearMap) : ℚ) = |
| 159 | (Module.finrank ℚ_[q] L : ℚ) * (Module.finrank L D : ℚ) * |
| 160 | (1 / 2 - Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q (ι e) / 3) := by |
| 161 | have he : e ≠ 0 := by |
| 162 | intro he |
| 163 | simp [he] at heC |
| 164 | have hs := h_FrobeniusSlope q (Fact.out : q.Prime) jC ι r b e hr hrC heC hcentral |
| 165 | (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) T hcomm hΦcomm hpoly hSatake hWeil |
| 166 | (Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q) (Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation_q q) |
| 167 | (Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q (ι e)) |
| 168 | (Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation_apply q (ι e) ((map_ne_zero ι).mpr he)) |
| 169 | exact Newton.CM.ExtremeSlopesAdapter.rational_newton_of_constant_slope q L φ _ (fun x hx => (hs.2 x hx).2) |
| 170 | |
| 171 | /-- The valuation on algebraic global parameters obtained from the chosen |
| 172 | embedding into the p-adic algebraic closure. -/ |
| 173 | def globalValuation (q : ℕ) [Fact q.Prime] |
| 174 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) (x : AlgebraicClosure ℚ) : ℚ := |
| 175 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q (ι x) |
| 176 | |
| 177 | lemma globalValuation_mul (q : ℕ) [Fact q.Prime] |
| 178 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) |
| 179 | (x y : AlgebraicClosure ℚ) (hx : x ≠ 0) (hy : y ≠ 0) : |
| 180 | globalValuation q ι (x * y) = globalValuation q ι x + globalValuation q ι y := by |
| 181 | simpa only [globalValuation, map_mul] using |
| 182 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_mul q (ι x) (ι y) ((map_ne_zero ι).mpr hx) ((map_ne_zero ι).mpr hy) |
| 183 | |
| 184 | lemma globalValuation_add (q : ℕ) [Fact q.Prime] |
| 185 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) |
| 186 | (x y : AlgebraicClosure ℚ) (hx : x ≠ 0) (hy : y ≠ 0) (hxy : x + y ≠ 0) : |
| 187 | min (globalValuation q ι x) (globalValuation q ι y) ≤ globalValuation q ι (x + y) := by |
| 188 | have hxy' : ι x + ι y ≠ 0 := by simpa only [← map_add] using (map_ne_zero ι).mpr hxy |
| 189 | simpa only [globalValuation, map_add] using |
| 190 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_add q (ι x) (ι y) ((map_ne_zero ι).mpr hx) ((map_ne_zero ι).mpr hy) hxy' |
| 191 | |
| 192 | lemma globalValuation_q (q : ℕ) [Fact q.Prime] |
| 193 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) : |
| 194 | globalValuation q ι (q : AlgebraicClosure ℚ) = 1 := by |
| 195 | simpa only [globalValuation, map_natCast, Padic.valuation_p, Int.cast_one] using |
| 196 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_algebraMap q (q : ℚ_[q]) |
| 197 | |
| 198 | open OAI.RepresentationTheory.Hecke.GaloisValuationCm in |
| 199 | /-- Invoke FULL GaloisValuation with the proved canonical valuation interface. |
| 200 | Its rule holds for every normalized full extension of the projective parameter. -/ |
| 201 | theorem signs_of_full_GaloisValuation |
| 202 | (h_GaloisValuation : GaloisValuationInput) |
| 203 | (E : IntermediateField ℚ ℂ) |
| 204 | [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 205 | (ιE : E →ₐ[ℚ] RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 206 | (res : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ) →* Gal(E/ℚ)) |
| 207 | (hres : ∀ (σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ)) (x : E), |
| 208 | σ (ιE x) = ιE ((res σ) x)) |
| 209 | (v : AlgebraicGeometry.ComplexMultiplication.OddSignSwitch.CM.OddSignPattern |
| 210 | (fun τ : Gal(E/ℚ) => AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)) |
| 211 | (hLefschetzNormalization_normalized : v.val 1 = true) |
| 212 | (d : Gal(E/ℚ) → ℤ) |
| 213 | (hLefschetzNormalization_sign : ∀ τ, d τ = AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (v.val τ⁻¹)) |
| 214 | (reps : Finset (Gal(E/ℚ))) |
| 215 | (_hL2_8_active : (1 : Gal(E/ℚ)) ∈ reps) |
| 216 | (hLefschetzNormalization_representatives : ∀ τ : Gal(E/ℚ), |
| 217 | τ ∈ reps ↔ AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) |
| 218 | (q : ℕ) [Fact q.Prime] |
| 219 | (ι : RepresentationTheory.Hecke.GaloisValuationCm.Qbar →+* AlgebraicClosure ℚ_[q]) |
| 220 | (M : ℕ) (hM : 0 < M) |
| 221 | (r : Eˣ) |
| 222 | (_hnorm : (r : E) * AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (r : E) = 1) |
| 223 | (hsplit : ∀ τ : Gal(E/ℚ), |
| 224 | (globalValuation q ι) (ιE (τ (r : E))) = |
| 225 | if τ = AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E then (M : ℚ) |
| 226 | else if τ = 1 then -(M : ℚ) |
| 227 | else 0) |
| 228 | (e₀ e ω ζ : RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 229 | (ε : ℤ) (hRadialDilation_convention : ε = 1 ∨ ε = -1) |
| 230 | (hRadialDilation_phase : ∃ n : ℕ, 0 < n ∧ ζ ^ n = 1) |
| 231 | (hRadialDilation_relation : ω ^ 2 = |
| 232 | ζ * ∏ τ ∈ reps, (ιE (τ (r : E))) ^ (ε * 3 * d τ)) |
| 233 | (hSphericalAction_root : e₀ ^ M = ω) |
| 234 | (hSphericalAction_parameter : e = e₀ ∨ e = e₀⁻¹) |
| 235 | (j : RepresentationTheory.Hecke.GaloisValuationCm.Qbar →ₐ[ℚ] ℂ) |
| 236 | (hRadialDilation_unit : ∀ σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ), ‖j (σ e)‖ = 1) |
| 237 | (s : RepresentationTheory.Hecke.GaloisValuationCm.Qbar) (hs : s ^ 2 = (q : RepresentationTheory.Hecke.GaloisValuationCm.Qbar)) |
| 238 | (P : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ) → Fin 3 → RepresentationTheory.Hecke.GaloisValuationCm.Qbar) |
| 239 | (hRationalStructure : ∀ σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ), |
| 240 | RepresentationTheory.Hecke.GaloisValuationCm.ProjectivelyEqual (P σ) |
| 241 | (fun i => σ (RepresentationTheory.Hecke.GaloisValuationCm.parameterTriple s e i))) : |
| 242 | (globalValuation q ι e = -3 / 2 ∨ globalValuation q ι e = 3 / 2) ∧ |
| 243 | ∀ (σ : Gal(RepresentationTheory.Hecke.GaloisValuationCm.Qbar/ℚ)) (eσ : RepresentationTheory.Hecke.GaloisValuationCm.Qbar), |
| 244 | RepresentationTheory.Hecke.GaloisValuationCm.ProjectivelyEqual (P σ) (RepresentationTheory.Hecke.GaloisValuationCm.parameterTriple s eσ) → |
| 245 | globalValuation q ι eσ = |
| 246 | (AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (v.val (res σ)) : ℚ) * globalValuation q ι e := by |
| 247 | have h := h_GaloisValuation E ιE res hres v hLefschetzNormalization_normalized d hLefschetzNormalization_sign reps |
| 248 | _hL2_8_active hLefschetzNormalization_representatives q (Fact.out : q.Prime) M hM r _hnorm |
| 249 | (globalValuation q ι) (globalValuation_mul q ι) (globalValuation_add q ι) |
| 250 | (globalValuation_q q ι) hsplit e₀ e ω ζ ε hRadialDilation_convention hRadialDilation_phase |
| 251 | hRadialDilation_relation hSphericalAction_root hSphericalAction_parameter j hRadialDilation_unit s hs P hRationalStructure |
| 252 | refine ⟨h.1, ?_⟩ |
| 253 | intro σ eσ heσ |
| 254 | have hv := ((h.2 σ).2.2 eσ heσ).2 |
| 255 | simpa only [hLefschetzNormalization_sign, inv_inv] using hv |
| 256 | |
| 257 | end |
| 258 | |
| 259 | end OAI.NumberTheory.PadicHodge.Arithmetic.CM.ExtremeSlopesAdapter |