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.HodgeConjecture.CMExtraction.LocalEmbedding |
| 2 | |
| 3 | /-! # Galois Discrete -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.GaloisDiscrete.ParameterChoices |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Discrete valuation normalization is forced by surjectivity onto the |
| 12 | integer value group. Native local embeddings contain the rational q-powers. -/ |
| 13 | |
| 14 | open _root_.NumberField IsDedekindDomain |
| 15 | open scoped WithZero |
| 16 | |
| 17 | theorem discrete_valuation_eq_of_equiv |
| 18 | {F : Type*} [Field F] (v w : Valuation F ℤᵐ⁰) |
| 19 | (h : v.IsEquiv w) (hv : Function.Surjective v) (hw : Function.Surjective w) : v = w := by |
| 20 | obtain ⟨x, hx⟩ := hv (WithZero.exp (1 : ℤ)) |
| 21 | obtain ⟨y, hy⟩ := hw (WithZero.exp (1 : ℤ)) |
| 22 | have hvx : 1 < v x := by rw [hx, ← WithZero.exp_zero]; exact WithZero.exp_lt_exp.mpr (by decide) |
| 23 | have hwy : 1 < w y := by rw [hy, ← WithZero.exp_zero]; exact WithZero.exp_lt_exp.mpr (by decide) |
| 24 | have hwx := h.one_lt_iff_one_lt.mp hvx |
| 25 | have hvy := h.one_lt_iff_one_lt.mpr hwy |
| 26 | have hx0 : w x ≠ 0 := ne_of_gt (lt_trans zero_lt_one hwx) |
| 27 | have hy0 : v y ≠ 0 := ne_of_gt (lt_trans zero_lt_one hvy) |
| 28 | let m := WithZero.log (w x) |
| 29 | let n := WithZero.log (v y) |
| 30 | have hmx : WithZero.exp m = w x := WithZero.exp_log hx0 |
| 31 | have hny : WithZero.exp n = v y := WithZero.exp_log hy0 |
| 32 | have hm : 0 < m := by |
| 33 | apply WithZero.exp_lt_exp.mp |
| 34 | simpa only [WithZero.exp_zero, hmx] using hwx |
| 35 | have hn : 0 < n := by |
| 36 | apply WithZero.exp_lt_exp.mp |
| 37 | simpa only [WithZero.exp_zero, hny] using hvy |
| 38 | have hwy_pow : w (y ^ m) = w x := by |
| 39 | rw [map_zpow₀, hy, ← WithZero.exp_zsmul] |
| 40 | simpa only [smul_eq_mul, mul_one] using hmx |
| 41 | have hvy_pow : v (y ^ m) = v x := h.eq_iff.mpr hwy_pow |
| 42 | have hmn : m * n = 1 := by |
| 43 | rw [map_zpow₀, ← hny, hx, ← WithZero.exp_zsmul] at hvy_pow |
| 44 | exact WithZero.exp_injective hvy_pow |
| 45 | have hm1 : m = 1 := by nlinarith |
| 46 | have hwx1 : w x = WithZero.exp (1 : ℤ) := by rw [← hmx, hm1] |
| 47 | ext a |
| 48 | by_cases ha : a = 0 |
| 49 | · subst a |
| 50 | simp |
| 51 | have hva : v a ≠ 0 := (Valuation.ne_zero_iff _).mpr ha |
| 52 | let k := WithZero.log (v a) |
| 53 | have hka : WithZero.exp k = v a := WithZero.exp_log hva |
| 54 | have hpow : v (x ^ k) = v a := by |
| 55 | rw [map_zpow₀, hx, ← WithZero.exp_zsmul] |
| 56 | simpa only [smul_eq_mul, mul_one] using hka |
| 57 | have hpoww := h.eq_iff.mp hpow |
| 58 | rw [map_zpow₀, hwx1, ← WithZero.exp_zsmul] at hpoww |
| 59 | exact hka.symm.trans (by simpa only [smul_eq_mul, mul_one] using hpoww) |
| 60 | |
| 61 | theorem padic_mulValuation_equiv_norm (q : ℕ) [Fact q.Prime] : |
| 62 | (Padic.mulValuation (p := q)).IsEquiv (NormedField.valuation (K := ℚ_[q])) := by |
| 63 | classical |
| 64 | rw [Valuation.isEquiv_iff_val_le_one] |
| 65 | intro x |
| 66 | by_cases hx : x = 0 |
| 67 | · subst x |
| 68 | simp |
| 69 | have hq : (1 : ℝ) < q := Nat.one_lt_cast.mpr (Fact.out : q.Prime).one_lt |
| 70 | change Padic.mulValuation x ≤ 1 ↔ ‖x‖₊ ≤ 1 |
| 71 | rw [← NNReal.coe_le_coe] |
| 72 | change Padic.mulValuation x ≤ 1 ↔ ‖x‖ ≤ 1 |
| 73 | change (if x = 0 then 0 else WithZero.exp (-x.valuation)) ≤ 1 ↔ ‖x‖ ≤ 1 |
| 74 | rw [ite_eq_right hx, ← WithZero.exp_zero, |
| 75 | WithZero.exp_le_exp, Padic.norm_eq_zpow_neg_valuation hx, zpow_le_one_iff_right₀ hq] |
| 76 | |
| 77 | theorem padic_comap_mulValuation_surjective {E : Type} [Field E] [CharZero E] |
| 78 | {q : ℕ} [Fact q.Prime] (f : E →+* ℚ_[q]) : |
| 79 | Function.Surjective ((Padic.mulValuation (p := q)).comap f) := by |
| 80 | classical |
| 81 | intro z |
| 82 | by_cases hz : z = 0 |
| 83 | · exact ⟨0, by simp [hz]⟩ |
| 84 | have hq : (q : ℚ_[q]) ≠ 0 := Nat.cast_ne_zero.mpr (Fact.out : q.Prime).ne_zero |
| 85 | have hvq : ((Padic.mulValuation (p := q)).comap f) (q : E) = WithZero.exp (-1 : ℤ) := by |
| 86 | rw [Valuation.comap_apply, map_natCast] |
| 87 | change (if (q : ℚ_[q]) = 0 then 0 else WithZero.exp (-(q : ℚ_[q]).valuation)) = _ |
| 88 | rw [ite_eq_right hq, Padic.valuation_p] |
| 89 | refine ⟨(q : E) ^ (-WithZero.log z), ?_⟩ |
| 90 | rw [map_zpow₀, hvq, ← WithZero.exp_zsmul] |
| 91 | simpa only [smul_eq_mul, neg_mul_neg, mul_one] using WithZero.exp_log hz |
| 92 | |
| 93 | theorem nativeFieldEmbedding_normalized |
| 94 | {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 95 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 96 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) (i : Fin s × Bool) : |
| 97 | (Intrinsic.Primes.ParameterChoices.nativeLocalPrime D i).valuation E = (Padic.mulValuation (p := q)).comap (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i) := by |
| 98 | apply discrete_valuation_eq_of_equiv |
| 99 | · exact (LocalEmbedding.ParameterChoices.nativeFieldEmbedding_valuation_equiv D i).trans |
| 100 | ((padic_mulValuation_equiv_norm q).comap (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i)).symm |
| 101 | · exact (Intrinsic.Primes.ParameterChoices.nativeLocalPrime D i).valuation_surjective E |
| 102 | · exact padic_comap_mulValuation_surjective (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i) |
| 103 | |
| 104 | theorem nativeFieldEmbedding_valuation_of_value |
| 105 | {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 106 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 107 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) (i : Fin s × Bool) |
| 108 | (x : E) (hx : x ≠ 0) (n : ℤ) |
| 109 | (hv : (Intrinsic.Primes.ParameterChoices.nativeLocalPrime D i).valuation E x = WithZero.exp (-n)) : |
| 110 | (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i x).valuation = n := by |
| 111 | classical |
| 112 | have hf : LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i x ≠ 0 := (map_ne_zero _).mpr hx |
| 113 | have h := congrArg (fun v : Valuation E ℤᵐ⁰ => v x) (nativeFieldEmbedding_normalized D i) |
| 114 | change (Intrinsic.Primes.ParameterChoices.nativeLocalPrime D i).valuation E x = |
| 115 | if LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i x = 0 then 0 else WithZero.exp (-(LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i x).valuation) at h |
| 116 | rw [hv, ite_eq_right hf] at h |
| 117 | exact neg_injective (WithZero.exp_injective h).symm |
| 118 | |
| 119 | /-- The valuation of the native norm-one scalar is now the usual additive |
| 120 | q-adic valuation, with its exact integer normalization. -/ |
| 121 | theorem exists_native_scalar_normalized |
| 122 | {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 123 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 124 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) (hg : D.IsGoodCompletelySplitPrime) |
| 125 | (v : Fin s) (side : Bool) : |
| 126 | ∃ (r : Eˣ) (M : ℕ), 0 < M ∧ |
| 127 | (r : E) * NumberField.IsCMField.complexConj E (r : E) = 1 ∧ |
| 128 | (∀ i : Fin s × Bool, (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i (r : E)).valuation = |
| 129 | if i = (v, side) then (M : ℤ) else if i = (v, !side) then -(M : ℤ) else 0) ∧ |
| 130 | (∀ (S : Finset (HeightOneSpectrum (𝓞 E))) (depth : HeightOneSpectrum (𝓞 E) → ℕ), |
| 131 | Intrinsic.Primes.ParameterChoices.nativeLocalPrime D (v, side) ∉ S → Intrinsic.Primes.ParameterChoices.nativeLocalPrime D (v, !side) ∉ S → |
| 132 | ∃ N : ℕ, 0 < N ∧ ∀ p ∈ S, |
| 133 | p.valuation E ((r : E) ^ N - 1) ≤ WithZero.exp (-(depth p : ℤ))) := by |
| 134 | classical |
| 135 | obtain ⟨r, M, hM, hnorm, hval, _, happrox⟩ := Intrinsic.Primes.ParameterChoices.exists_native_split_scalar D hg v side |
| 136 | refine ⟨r, M, hM, hnorm, ?_, happrox⟩ |
| 137 | intro i |
| 138 | apply nativeFieldEmbedding_valuation_of_value D i (r : E) r.ne_zero |
| 139 | have h := hval i |
| 140 | split_ifs at h ⊢ <;> simpa only [neg_neg, neg_zero, WithZero.exp_zero] using h |
| 141 | |
| 142 | end |
| 143 | |
| 144 | section |
| 145 | |
| 146 | /-! The native split slots are identified with the actual Galois embeddings |
| 147 | using one chosen q-adic embedding and the reference datum's full embedding set. -/ |
| 148 | |
| 149 | open _root_.NumberField IsDedekindDomain |
| 150 | |
| 151 | def embeddingAutEquiv {E F : Type} [Field E] [NumberField E] [IsGalois ℚ E] |
| 152 | [Field F] [CharZero F] (f : E →+* F) : (E →ₐ[ℚ] F) ≃ Gal(E/ℚ) := by |
| 153 | let : Algebra E F := f.toAlgebra |
| 154 | let : IsScalarTower ℚ E F := IsScalarTower.of_algebraMap_eq (fun r => by |
| 155 | change (r : F) = f (r : E) |
| 156 | simp) |
| 157 | exact Normal.algHomEquivAut ℚ F E |
| 158 | |
| 159 | theorem embeddingAutEquiv_spec {E F : Type} [Field E] [NumberField E] [IsGalois ℚ E] |
| 160 | [Field F] [CharZero F] (f : E →+* F) (g : E →ₐ[ℚ] F) (x : E) : |
| 161 | f (embeddingAutEquiv f g x) = g x := by |
| 162 | exact congrArg (fun h : E →ₐ[ℚ] F => h x) ((embeddingAutEquiv f).symm_apply_apply g) |
| 163 | |
| 164 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 165 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 166 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 167 | |
| 168 | def nativeFieldAlgEmbedding (i : Fin s × Bool) : E →ₐ[ℚ] ℚ_[q] where |
| 169 | toRingHom := LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i |
| 170 | commutes' r := by simp |
| 171 | |
| 172 | omit [IsGalois ℚ E] in |
| 173 | theorem nativeFieldAlgEmbedding_injective (hq : D.IsGoodCompletelySplitPrime) : |
| 174 | Function.Injective (nativeFieldAlgEmbedding D) := by |
| 175 | intro i j hij |
| 176 | apply Intrinsic.Primes.ParameterChoices.nativeResidueCharacter_injective D hq |
| 177 | ext a |
| 178 | have h := congrArg (fun f : E →ₐ[ℚ] ℚ_[q] => f (a : E)) hij |
| 179 | change LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i (a : E) = LocalEmbedding.ParameterChoices.nativeFieldEmbedding D j (a : E) at h |
| 180 | rw [LocalEmbedding.ParameterChoices.nativeFieldEmbedding_onIntegers, LocalEmbedding.ParameterChoices.nativeFieldEmbedding_onIntegers] at h |
| 181 | exact congrArg PadicInt.toZMod (PadicInt.ext h) |
| 182 | |
| 183 | def nativeLocalLabel (i₀ : Fin s × Bool) (i : Fin s × Bool) : Gal(E/ℚ) := |
| 184 | embeddingAutEquiv (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i₀) (nativeFieldAlgEmbedding D i) |
| 185 | |
| 186 | theorem nativeLocalLabel_spec (i₀ i : Fin s × Bool) (x : E) : |
| 187 | LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i₀ (nativeLocalLabel D i₀ i x) = LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i x := |
| 188 | embeddingAutEquiv_spec (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i₀) (nativeFieldAlgEmbedding D i) x |
| 189 | |
| 190 | theorem nativeLocalLabel_bijective (hg : D.HasIntegralModelGeometry) (hq : D.IsGoodCompletelySplitPrime) |
| 191 | (i₀ : Fin s × Bool) : Function.Bijective (nativeLocalLabel D i₀) := by |
| 192 | classical |
| 193 | apply (Fintype.bijective_iff_injective_and_card _).mpr |
| 194 | refine ⟨(embeddingAutEquiv (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i₀)).injective.comp |
| 195 | (nativeFieldAlgEmbedding_injective D hq), ?_⟩ |
| 196 | have hcard := Fintype.card_congr (Equiv.ofBijective _ hg.reference_admissible.1) |
| 197 | exact hcard.trans (Fintype.card_congr (embeddingAutEquiv D.reference.μ)) |
| 198 | |
| 199 | def nativeLocalLabelEquiv (hg : D.HasIntegralModelGeometry) (hq : D.IsGoodCompletelySplitPrime) |
| 200 | (i₀ : Fin s × Bool) : (Fin s × Bool) ≃ Gal(E/ℚ) := |
| 201 | Equiv.ofBijective (nativeLocalLabel D i₀) (nativeLocalLabel_bijective D hg hq i₀) |
| 202 | |
| 203 | theorem nativeLocalLabel_self (i₀ : Fin s × Bool) : nativeLocalLabel D i₀ i₀ = 1 := by |
| 204 | ext x |
| 205 | apply (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D i₀).injective |
| 206 | exact nativeLocalLabel_spec D i₀ i₀ x |
| 207 | |
| 208 | theorem nativeFieldEmbedding_conjugate (hq : D.IsGoodCompletelySplitPrime) |
| 209 | (v : Fin s) (side : Bool) : |
| 210 | LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, !side) = |
| 211 | (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, side)).comp (NumberField.IsCMField.complexConj E).toRingHom := by |
| 212 | apply IsFractionRing.ringHom_ext (A := 𝓞 E) |
| 213 | intro a |
| 214 | change LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, !side) (a : E) = |
| 215 | LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, side) |
| 216 | (NumberField.IsCMField.ringOfIntegersComplexConj E a : E) |
| 217 | rw [LocalEmbedding.ParameterChoices.nativeFieldEmbedding_onIntegers, LocalEmbedding.ParameterChoices.nativeFieldEmbedding_onIntegers] |
| 218 | exact congrArg (fun z : ℤ_[q] => (z : ℚ_[q])) (hq.2.1 v side a) |
| 219 | |
| 220 | theorem nativeLocalLabel_conjugate (hq : D.IsGoodCompletelySplitPrime) |
| 221 | (v : Fin s) (side : Bool) : |
| 222 | nativeLocalLabel D (v, side) (v, !side) = |
| 223 | (NumberField.IsCMField.complexConj E).restrictScalars ℚ := by |
| 224 | ext x |
| 225 | apply (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, side)).injective |
| 226 | exact (nativeLocalLabel_spec D (v, side) (v, !side) x).trans |
| 227 | (RingHom.congr_fun (nativeFieldEmbedding_conjugate D hq v side) x) |
| 228 | |
| 229 | end |
| 230 | |
| 231 | /-! The actual norm-one scalar has the full Galois-labelled splitting formula, |
| 232 | with positive valuation at conjugation and negative valuation at identity. -/ |
| 233 | |
| 234 | open _root_.NumberField IsDedekindDomain |
| 235 | open scoped WithZero Classical |
| 236 | |
| 237 | theorem exists_native_scalar_galois |
| 238 | {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 239 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 240 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) (hg : D.HasIntegralModelGeometry) |
| 241 | (hq : D.IsGoodCompletelySplitPrime) (v : Fin s) (side : Bool) : |
| 242 | ∃ (r : Eˣ) (M : ℕ), 0 < M ∧ |
| 243 | (r : E) * NumberField.IsCMField.complexConj E (r : E) = 1 ∧ |
| 244 | (∀ τ : Gal(E/ℚ), (LocalEmbedding.ParameterChoices.nativeFieldEmbedding D (v, side) (τ (r : E))).valuation = |
| 245 | if τ = (NumberField.IsCMField.complexConj E).restrictScalars ℚ then (M : ℤ) |
| 246 | else if τ = 1 then -(M : ℤ) else 0) ∧ |
| 247 | (∀ (S : Finset (HeightOneSpectrum (𝓞 E))) (depth : HeightOneSpectrum (𝓞 E) → ℕ), |
| 248 | Intrinsic.Primes.ParameterChoices.nativeLocalPrime D (v, side) ∉ S → Intrinsic.Primes.ParameterChoices.nativeLocalPrime D (v, !side) ∉ S → |
| 249 | ∃ N : ℕ, 0 < N ∧ ∀ p ∈ S, |
| 250 | p.valuation E ((r : E) ^ N - 1) ≤ WithZero.exp (-(depth p : ℤ))) := by |
| 251 | classical |
| 252 | obtain ⟨r, M, hM, hnorm, hval, happrox⟩ := exists_native_scalar_normalized D hq v (!side) |
| 253 | refine ⟨r, M, hM, hnorm, ?_, ?_⟩ |
| 254 | · intro τ |
| 255 | obtain ⟨i, rfl⟩ := (nativeLocalLabel_bijective D hg hq (v, side)).2 τ |
| 256 | rw [nativeLocalLabel_spec] |
| 257 | have hc : nativeLocalLabel D (v, side) i = |
| 258 | (NumberField.IsCMField.complexConj E).restrictScalars ℚ ↔ i = (v, !side) := by |
| 259 | rw [← nativeLocalLabel_conjugate D hq v side] |
| 260 | exact (nativeLocalLabel_bijective D hg hq (v, side)).1.eq_iff |
| 261 | have hid : nativeLocalLabel D (v, side) i = 1 ↔ i = (v, side) := by |
| 262 | rw [← nativeLocalLabel_self D (v, side)] |
| 263 | exact (nativeLocalLabel_bijective D hg hq (v, side)).1.eq_iff |
| 264 | simpa only [Bool.not_not, hc, hid] using hval i |
| 265 | · intro S depth h₁ h₂ |
| 266 | exact happrox S depth h₂ (by simpa only [Bool.not_not] using h₁) |
| 267 | |
| 268 | end |
| 269 | |
| 270 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.GaloisDiscrete.ParameterChoices |