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.Valuation |
| 3 | import OAI.RepresentationTheory.Hecke.GaloisValuationIntrinsic |
| 4 | |
| 5 | /-! # Intrinsic Arithmetic -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Hecke.IntrinsicArithmetic.GaloisValuationIntrinsic |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The coefficient embedding, its normal Galois restriction, and the |
| 12 | q-adic valuation are constructed from field embeddings. The algebraic lifts |
| 13 | use the same complex embedding, preserving the RadialDilation polynomial identity. |
| 14 | These elementary bridges are isolated here to avoid importing unrelated |
| 15 | geometric statement modules through the broader CMExtraction development. -/ |
| 16 | |
| 17 | open scoped Classical |
| 18 | open OAI.NumberTheory.PadicHodge.Valuation.CM.ExtremeSlopesAdapter |
| 19 | abbrev Qbar := AlgebraicClosure ℚ |
| 20 | abbrev ComplexAlgebraics : IntermediateField ℚ ℂ := algebraicClosure ℚ ℂ |
| 21 | |
| 22 | instance complexAlgebraics_closed : IsAlgClosed ComplexAlgebraics := |
| 23 | (algebraicClosure.isAlgClosure ℚ ℂ).isAlgClosed |
| 24 | instance complexAlgebraics_algebraic : Algebra.IsAlgebraic ℚ ComplexAlgebraics := |
| 25 | algebraicClosure.isAlgebraic ℚ ℂ |
| 26 | |
| 27 | def chosenClosureEquiv (j : Qbar →+* ℂ) : Qbar ≃ₐ[ℚ] ComplexAlgebraics := by |
| 28 | let : IsAlgClosure ℚ Qbar := AlgebraicClosure.instIsAlgClosure ℚ |
| 29 | let f : Qbar →ₐ[ℚ] ComplexAlgebraics := j.toRatAlgHom.codRestrict |
| 30 | ComplexAlgebraics.toSubalgebra (fun a => mem_algebraicClosure_iff.mpr |
| 31 | ((Algebra.IsAlgebraic.isAlgebraic (R := ℚ) a).algHom j.toRatAlgHom)) |
| 32 | let g : ComplexAlgebraics →ₐ[ℚ] Qbar := IsAlgClosed.lift |
| 33 | exact AlgEquiv.ofBijective f (Algebra.IsAlgebraic.algHom_bijective₂ f g).1 |
| 34 | |
| 35 | theorem chosenClosureEquiv_inverse (j : Qbar →+* ℂ) (a : ComplexAlgebraics) : |
| 36 | j ((chosenClosureEquiv j).symm a) = (a : ℂ) := |
| 37 | congrArg (fun a : ComplexAlgebraics => (a : ℂ)) ((chosenClosureEquiv j).apply_symm_apply a) |
| 38 | |
| 39 | def extendAlgebraicEmbedding {E F : Type} [Field E] [NumberField E] |
| 40 | [Field F] [CharZero F] [IsAlgClosed F] |
| 41 | (ιE : E →ₐ[ℚ] Qbar) (f : E →+* F) : Qbar →+* F := by |
| 42 | let : Algebra.IsAlgebraic ℚ Qbar := AlgebraicClosure.isAlgebraic ℚ |
| 43 | let : Algebra E Qbar := ιE.toAlgebra |
| 44 | let : IsScalarTower ℚ E Qbar := IsScalarTower.of_algebraMap_eq |
| 45 | (fun x => (ιE.commutes x).symm) |
| 46 | let : Algebra.IsAlgebraic E Qbar := Algebra.IsAlgebraic.tower_top (K := ℚ) E |
| 47 | let : Algebra E F := f.toAlgebra |
| 48 | exact (IsAlgClosed.lift : Qbar →ₐ[E] F).toRingHom |
| 49 | |
| 50 | theorem extendAlgebraicEmbedding_spec {E F : Type} [Field E] [NumberField E] |
| 51 | [Field F] [CharZero F] [IsAlgClosed F] |
| 52 | (ιE : E →ₐ[ℚ] Qbar) (f : E →+* F) (x : E) : |
| 53 | extendAlgebraicEmbedding ιE f (ιE x) = f x := by |
| 54 | let : Algebra.IsAlgebraic ℚ Qbar := AlgebraicClosure.isAlgebraic ℚ |
| 55 | let : Algebra E Qbar := ιE.toAlgebra |
| 56 | let : IsScalarTower ℚ E Qbar := IsScalarTower.of_algebraMap_eq |
| 57 | (fun x => (ιE.commutes x).symm) |
| 58 | let : Algebra.IsAlgebraic E Qbar := Algebra.IsAlgebraic.tower_top (K := ℚ) E |
| 59 | let : Algebra E F := f.toAlgebra |
| 60 | exact (IsAlgClosed.lift : Qbar →ₐ[E] F).commutes x |
| 61 | |
| 62 | section Restriction |
| 63 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 64 | def restriction (ι : E →ₐ[ℚ] Qbar) : Gal(Qbar/ℚ) →* Gal(E/ℚ) := by |
| 65 | let : Algebra E Qbar := ι.toAlgebra |
| 66 | let : IsScalarTower ℚ E Qbar := IsScalarTower.of_algebraMap_eq |
| 67 | (fun x => (ι.commutes x).symm) |
| 68 | exact AlgEquiv.restrictNormalHom E |
| 69 | |
| 70 | omit [NumberField E] [NumberField.IsCMField E] in |
| 71 | theorem restriction_commutes (ι : E →ₐ[ℚ] Qbar) (σ : Gal(Qbar/ℚ)) (x : E) : |
| 72 | σ (ι x) = ι ((restriction E ι σ) x) := by |
| 73 | let : Algebra E Qbar := ι.toAlgebra |
| 74 | let : IsScalarTower ℚ E Qbar := IsScalarTower.of_algebraMap_eq |
| 75 | (fun x => (ι.commutes x).symm) |
| 76 | exact (AlgEquiv.restrictNormal_commutes σ E x).symm |
| 77 | |
| 78 | end Restriction |
| 79 | |
| 80 | def globalValuation (q : ℕ) [Fact q.Prime] |
| 81 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) (x : AlgebraicClosure ℚ) : ℚ := |
| 82 | NumberTheory.PadicHodge.Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q (ι x) |
| 83 | |
| 84 | lemma globalValuation_mul (q : ℕ) [Fact q.Prime] |
| 85 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) |
| 86 | (x y : AlgebraicClosure ℚ) (hx : x ≠ 0) (hy : y ≠ 0) : |
| 87 | globalValuation q ι (x * y) = globalValuation q ι x + globalValuation q ι y := by |
| 88 | simpa only [globalValuation, map_mul] using |
| 89 | NumberTheory.PadicHodge.Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_mul q (ι x) (ι y) ((map_ne_zero ι).mpr hx) ((map_ne_zero ι).mpr hy) |
| 90 | |
| 91 | lemma globalValuation_add (q : ℕ) [Fact q.Prime] |
| 92 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) |
| 93 | (x y : AlgebraicClosure ℚ) (hx : x ≠ 0) (hy : y ≠ 0) (hxy : x + y ≠ 0) : |
| 94 | min (globalValuation q ι x) (globalValuation q ι y) ≤ globalValuation q ι (x + y) := by |
| 95 | have hxy' : ι x + ι y ≠ 0 := by simpa only [← map_add] using (map_ne_zero ι).mpr hxy |
| 96 | simpa only [globalValuation, map_add] using |
| 97 | NumberTheory.PadicHodge.Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_add q (ι x) (ι y) ((map_ne_zero ι).mpr hx) ((map_ne_zero ι).mpr hy) hxy' |
| 98 | |
| 99 | lemma globalValuation_q (q : ℕ) [Fact q.Prime] |
| 100 | (ι : AlgebraicClosure ℚ →+* AlgebraicClosure ℚ_[q]) : |
| 101 | globalValuation q ι (q : AlgebraicClosure ℚ) = 1 := by |
| 102 | simpa only [globalValuation, map_natCast, Padic.valuation_p, Int.cast_one] using |
| 103 | NumberTheory.PadicHodge.Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_algebraMap q (q : ℚ_[q]) |
| 104 | |
| 105 | def liftComplexAlgebraic (j : Qbar →+* ℂ) (z : ℂ) (hz : IsAlgebraic ℚ z) : Qbar := |
| 106 | (chosenClosureEquiv j).symm ⟨z, hz.isIntegral⟩ |
| 107 | |
| 108 | theorem liftComplexAlgebraic_image (j : Qbar →+* ℂ) (z : ℂ) (hz : IsAlgebraic ℚ z) : |
| 109 | j (liftComplexAlgebraic j z hz) = z := chosenClosureEquiv_inverse j _ |
| 110 | |
| 111 | theorem finitePhase_isAlgebraic {z : ℂ} (hz : RadialDilation.Cm.finitePhase z) : |
| 112 | IsAlgebraic ℚ z := by |
| 113 | obtain ⟨n, hn, he⟩ := hz |
| 114 | apply IsAlgebraic.of_pow hn |
| 115 | rw [he] |
| 116 | exact isAlgebraic_one |
| 117 | |
| 118 | theorem unitCircle_all_conjugates (j : Qbar →+* ℂ) (a : Qbar) |
| 119 | (ha : RadialDilation.Cm.algebraicUnitCircle (j a)) : |
| 120 | ∀ σ : Gal(Qbar/ℚ), ‖j (σ a)‖ = 1 := by |
| 121 | intro σ |
| 122 | apply ha.2 |
| 123 | have he : minpoly ℚ (j a) = minpoly ℚ (σ a) := |
| 124 | (minpoly.algHom_eq j.toRatAlgHom j.injective a).trans (minpoly.algEquiv_eq σ a).symm |
| 125 | rw [he] |
| 126 | exact (Polynomial.aeval_algHom_apply j.toRatAlgHom (σ a) (minpoly ℚ (σ a))).trans |
| 127 | (by rw [minpoly.aeval, map_zero]) |
| 128 | |
| 129 | theorem lift_dilation_parameters |
| 130 | (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 131 | (j : Qbar →+* ℂ) (ιE : E →ₐ[ℚ] Qbar) |
| 132 | (hι : ∀ x : E, j (ιE x) = (x : ℂ)) |
| 133 | (reps : Finset Gal(E/ℚ)) (r : Eˣ) (d : Gal(E/ℚ) → ℤ) (ε : ℤ) |
| 134 | (ωc ζc : ℂ) (hζ : RadialDilation.Cm.finitePhase ζc) |
| 135 | (hω : RadialDilation.Cm.algebraicUnitCircle ωc) |
| 136 | (hrel : ωc ^ 2 = ζc * ∏ τ ∈ reps, |
| 137 | (AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ (r : E)) ^ (ε * 3 * d τ)) : |
| 138 | ∃ ω ζ : Qbar, j ω = ωc ∧ j ζ = ζc ∧ |
| 139 | (∃ n : ℕ, 0 < n ∧ ζ ^ n = 1) ∧ |
| 140 | ω ^ 2 = ζ * ∏ τ ∈ reps, (ιE (τ (r : E))) ^ (ε * 3 * d τ) ∧ |
| 141 | ∀ σ : Gal(Qbar/ℚ), ‖j (σ ω)‖ = 1 := by |
| 142 | let ω := liftComplexAlgebraic j ωc hω.1 |
| 143 | let ζ := liftComplexAlgebraic j ζc (finitePhase_isAlgebraic hζ) |
| 144 | have hωj : j ω = ωc := liftComplexAlgebraic_image j ωc hω.1 |
| 145 | have hζj : j ζ = ζc := liftComplexAlgebraic_image j ζc _ |
| 146 | refine ⟨ω, ζ, hωj, hζj, ?_, ?_, unitCircle_all_conjugates j ω (hωj.symm ▸ hω)⟩ |
| 147 | · obtain ⟨n, hn, he⟩ := hζ |
| 148 | refine ⟨n, hn, j.injective ?_⟩ |
| 149 | rw [map_pow, hζj, he, map_one] |
| 150 | · apply j.injective |
| 151 | rw [map_pow, hωj, map_mul, hζj] |
| 152 | simp only [map_prod, map_zpow₀, hι] |
| 153 | exact hrel |
| 154 | |
| 155 | theorem root_all_conjugates_norm_one (j : Qbar →+* ℂ) (ω e₀ : Qbar) |
| 156 | (M : ℕ) (hM : 0 < M) (hroot : e₀ ^ M = ω) |
| 157 | (hω : ∀ σ : Gal(Qbar/ℚ), ‖j (σ ω)‖ = 1) : |
| 158 | ∀ σ : Gal(Qbar/ℚ), ‖j (σ e₀)‖ = 1 := by |
| 159 | intro σ |
| 160 | apply (pow_eq_one_iff_of_nonneg (norm_nonneg _) hM.ne').mp |
| 161 | rw [← norm_pow, ← map_pow, ← map_pow, hroot, hω σ] |
| 162 | |
| 163 | theorem lift_dilation_root |
| 164 | (j : Qbar →+* ℂ) (ω : Qbar) (M : ℕ) (hM : 0 < M) |
| 165 | (hω : ∀ σ : Gal(Qbar/ℚ), ‖j (σ ω)‖ = 1) |
| 166 | (e₀c ec : ℂ) (hroot : e₀c ^ M = j ω) (he : ec = e₀c ∨ ec = e₀c⁻¹) : |
| 167 | ∃ e₀ e : Qbar, j e₀ = e₀c ∧ j e = ec ∧ e₀ ^ M = ω ∧ |
| 168 | (e = e₀ ∨ e = e₀⁻¹) ∧ ∀ σ : Gal(Qbar/ℚ), ‖j (σ e)‖ = 1 := by |
| 169 | let : Algebra.IsAlgebraic ℚ Qbar := AlgebraicClosure.isAlgebraic ℚ |
| 170 | have hωalg : IsAlgebraic ℚ (j ω) := |
| 171 | (Algebra.IsAlgebraic.isAlgebraic (R := ℚ) ω).algHom j.toRatAlgHom |
| 172 | have h₀alg : IsAlgebraic ℚ e₀c := IsAlgebraic.of_pow hM (hroot.symm ▸ hωalg) |
| 173 | let e₀ := liftComplexAlgebraic j e₀c h₀alg |
| 174 | have h₀j : j e₀ = e₀c := liftComplexAlgebraic_image j e₀c h₀alg |
| 175 | have h₀pow : e₀ ^ M = ω := j.injective (by rw [map_pow, h₀j, hroot]) |
| 176 | have h₀unit := root_all_conjugates_norm_one j ω e₀ M hM h₀pow hω |
| 177 | rcases he with rfl | rfl |
| 178 | · exact ⟨e₀, e₀, h₀j, h₀j, h₀pow, Or.inl rfl, h₀unit⟩ |
| 179 | · refine ⟨e₀, e₀⁻¹, h₀j, ?_, h₀pow, Or.inr rfl, ?_⟩ |
| 180 | · rw [map_inv₀, h₀j] |
| 181 | · intro σ |
| 182 | rw [map_inv₀, map_inv₀, norm_inv, h₀unit σ, inv_one] |
| 183 | |
| 184 | variable (q : ℕ) [Fact q.Prime] |
| 185 | |
| 186 | def liftedSqrt (j : Qbar →+* ℂ) : Qbar := |
| 187 | liftComplexAlgebraic j (Real.sqrt (q : ℝ) : ℂ) |
| 188 | (IsAlgebraic.of_pow (n := 2) (by decide) (by |
| 189 | have h : (Real.sqrt (q : ℝ) : ℂ) ^ 2 = (q : ℂ) := by |
| 190 | norm_cast |
| 191 | exact Real.sq_sqrt (Nat.cast_nonneg _) |
| 192 | rw [h] |
| 193 | exact isAlgebraic_natCast q)) |
| 194 | |
| 195 | omit [Fact q.Prime] in |
| 196 | theorem liftedSqrt_image (j : Qbar →+* ℂ) : |
| 197 | j (liftedSqrt q j) = (Real.sqrt (q : ℝ) : ℂ) := liftComplexAlgebraic_image j _ _ |
| 198 | |
| 199 | omit [Fact q.Prime] in |
| 200 | theorem liftedSqrt_sq (j : Qbar →+* ℂ) : (liftedSqrt q j) ^ 2 = (q : Qbar) := by |
| 201 | apply j.injective |
| 202 | rw [map_pow, liftedSqrt_image, map_natCast] |
| 203 | norm_cast |
| 204 | exact Real.sq_sqrt (Nat.cast_nonneg _) |
| 205 | |
| 206 | theorem liftedSqrt_ne_zero (j : Qbar →+* ℂ) : liftedSqrt q j ≠ 0 := by |
| 207 | intro h |
| 208 | have hh := liftedSqrt_sq q j |
| 209 | rw [h, zero_pow (by decide)] at hh |
| 210 | exact (Fact.out : q.Prime).ne_zero (Nat.cast_eq_zero.mp hh.symm) |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.RepresentationTheory.Hecke.IntrinsicArithmetic.GaloisValuationIntrinsic |