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.Analysis.InnerProductSpace.Adjoint |
| 2 | import Mathlib.Algebra.Star.TensorProduct |
| 3 | import Mathlib.LinearAlgebra.Eigenspace.Charpoly |
| 4 | import Mathlib.LinearAlgebra.Eigenspace.Minpoly |
| 5 | import Mathlib.LinearAlgebra.Charpoly.BaseChange |
| 6 | import Mathlib.FieldTheory.Minpoly.Field |
| 7 | import Mathlib.Tactic |
| 8 | |
| 9 | /-! # Spectral -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Spectral.Construction |
| 12 | |
| 13 | /-! |
| 14 | # Completion: spectral consequences of the polarization adjoint identity |
| 15 | |
| 16 | These are linear-algebra lemmas for the Weil proof, not the geometric |
| 17 | theorem. The adjoint identity must still be derived from a polarization |
| 18 | of the abelian variety. No project statement stub is imported. |
| 19 | -/ |
| 20 | |
| 21 | open scoped InnerProductSpace |
| 22 | |
| 23 | open scoped TensorProduct |
| 24 | |
| 25 | /-- The tensor involution is multiplicative in reverse order. -/ |
| 26 | noncomputable instance complexTensorStarRing |
| 27 | {D : Type*} [Ring D] [Algebra ℚ D] [StarRing D] [StarModule ℚ D] : |
| 28 | StarRing (TensorProduct ℚ ℂ D) where |
| 29 | star_add := map_add (starLinearEquiv ℚ) |
| 30 | star_mul x y := by |
| 31 | induction x using TensorProduct.inductionOn with |
| 32 | | tmul a b => |
| 33 | induction y using TensorProduct.inductionOn with |
| 34 | | tmul c d => |
| 35 | simp only [Algebra.TensorProduct.tmul_mul_tmul, TensorProduct.star_tmul, star_mul] |
| 36 | | add x y hx hy => simp only [mul_add, star_add, add_mul, hx, hy] |
| 37 | | add x y hx hy => simp only [add_mul, star_add, mul_add, hx, hy] |
| 38 | |
| 39 | /-- The complex scalar action is compatible with the tensor involution. -/ |
| 40 | instance complexTensorStarModule |
| 41 | {D : Type*} [Ring D] [Algebra ℚ D] [StarRing D] [StarModule ℚ D] : |
| 42 | StarModule ℂ (TensorProduct ℚ ℂ D) where |
| 43 | star_smul c x := by |
| 44 | induction x using TensorProduct.inductionOn with |
| 45 | | tmul a b => simp only [TensorProduct.smul_tmul', TensorProduct.star_tmul, star_smul] |
| 46 | | add x y hx hy => simp only [smul_add, star_add, hx, hy] |
| 47 | |
| 48 | /-- A faithful positive functional constructs the inner product used by |
| 49 | the regular representation; no norm or eigenvalue bound is assumed. -/ |
| 50 | @[instance_reducible] |
| 51 | def positiveFunctionalCore |
| 52 | {B : Type*} [Ring B] [Algebra ℂ B] [StarRing B] [StarModule ℂ B] |
| 53 | (τ : B →ₗ[ℂ] ℂ) |
| 54 | (hstar : ∀ x : B, τ (star x) = star (τ x)) |
| 55 | (hpos : ∀ x : B, x ≠ 0 → 0 < (τ (star x * x)).re) : |
| 56 | InnerProductSpace.Core ℂ B where |
| 57 | inner x y := τ (star x * y) |
| 58 | conj_inner_symm x y := by |
| 59 | change star (τ (star y * x)) = τ (star x * y) |
| 60 | rw [← hstar, star_mul, star_star] |
| 61 | re_inner_nonneg x := by |
| 62 | change 0 ≤ (τ (star x * x)).re |
| 63 | by_cases hx : x = 0 |
| 64 | · simp [hx] |
| 65 | · exact (hpos x hx).le |
| 66 | add_left x y z := by |
| 67 | simp only [star_add, add_mul, map_add] |
| 68 | smul_left x y r := by |
| 69 | change τ (star (r • x) * y) = star r * τ (star x * y) |
| 70 | rw [star_smul, smul_mul_assoc, map_smul, smul_eq_mul] |
| 71 | definite x hx := by |
| 72 | by_contra hne |
| 73 | have hp := hpos x hne |
| 74 | change τ (star x * x) = 0 at hx |
| 75 | rw [hx, Complex.zero_re] at hp |
| 76 | exact (lt_irrefl 0) hp |
| 77 | |
| 78 | /-- The involution acts as the adjoint on the inner product just constructed. -/ |
| 79 | theorem positiveFunctional_left_adjoint |
| 80 | {B : Type*} [Ring B] [Algebra ℂ B] [StarRing B] [StarModule ℂ B] |
| 81 | [FiniteDimensional ℂ B] |
| 82 | (τ : B →ₗ[ℂ] ℂ) |
| 83 | (hstar : ∀ x : B, τ (star x) = star (τ x)) |
| 84 | (hpos : ∀ x : B, x ≠ 0 → 0 < (τ (star x * x)).re) : |
| 85 | let c := positiveFunctionalCore τ hstar hpos |
| 86 | letI : NormedAddCommGroup B := c.toNormedAddCommGroup |
| 87 | letI : InnerProductSpace ℂ B := InnerProductSpace.ofCore c.toCore |
| 88 | ∀ a : B, (Algebra.lmul ℂ B a).adjoint = Algebra.lmul ℂ B (star a) := by |
| 89 | let c := positiveFunctionalCore τ hstar hpos |
| 90 | let : NormedAddCommGroup B := c.toNormedAddCommGroup |
| 91 | let : InnerProductSpace ℂ B := InnerProductSpace.ofCore c.toCore |
| 92 | change ∀ a : B, (Algebra.lmul ℂ B a).adjoint = Algebra.lmul ℂ B (star a) |
| 93 | intro a |
| 94 | ext y |
| 95 | apply ext_inner_left ℂ |
| 96 | intro x |
| 97 | rw [LinearMap.adjoint_inner_right] |
| 98 | change τ (star (a * x) * y) = τ (star x * (star a * y)) |
| 99 | rw [star_mul, mul_assoc] |
| 100 | |
| 101 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V] |
| 102 | [FiniteDimensional ℂ V] |
| 103 | |
| 104 | /-- The adjoint relation forces the squared norm of an eigenvalue. -/ |
| 105 | theorem eigenvalue_norm_sq_of_adjoint_comp |
| 106 | (T : Module.End ℂ V) (q : ℝ) |
| 107 | (hT : T.adjoint.comp T = (q : ℂ) • LinearMap.id) |
| 108 | (z : ℂ) (hz : T.HasEigenvalue z) : |
| 109 | ‖z‖ ^ 2 = q := by |
| 110 | obtain ⟨v, hv⟩ := hz.exists_hasEigenvector |
| 111 | have hv0 : v ≠ 0 := hv.2 |
| 112 | have hev : T v = z • v := Module.End.mem_eigenspace_iff.mp hv.1 |
| 113 | have hTv : T.adjoint (T v) = (q : ℂ) • v := |
| 114 | congrArg (fun S : Module.End ℂ V => S v) hT |
| 115 | have hi : inner ℂ (T v) (T v) = (q : ℂ) * inner ℂ v v := by |
| 116 | rw [← LinearMap.adjoint_inner_right, hTv, inner_smul_right] |
| 117 | have hn : ‖T v‖ ^ 2 = q * ‖v‖ ^ 2 := by |
| 118 | have hre := congrArg Complex.re hi |
| 119 | rw [norm_sq_eq_re_inner (𝕜 := ℂ) (T v), norm_sq_eq_re_inner (𝕜 := ℂ) v] |
| 120 | change (inner ℂ (T v) (T v)).re = q * (inner ℂ v v).re |
| 121 | simpa only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 122 | zero_mul, sub_zero] using hre |
| 123 | rw [hev, norm_smul, mul_pow] at hn |
| 124 | exact mul_right_cancel₀ (pow_ne_zero 2 (norm_ne_zero_iff.mpr hv0)) hn |
| 125 | |
| 126 | /-- The positive square root gives the complex absolute value. -/ |
| 127 | theorem eigenvalue_norm_of_adjoint_comp |
| 128 | (T : Module.End ℂ V) (q : ℝ) |
| 129 | (hT : T.adjoint.comp T = (q : ℂ) • LinearMap.id) |
| 130 | (z : ℂ) (hz : T.HasEigenvalue z) : |
| 131 | ‖z‖ = Real.sqrt q := by |
| 132 | rw [← eigenvalue_norm_sq_of_adjoint_comp T q hT z hz, |
| 133 | Real.sqrt_sq (norm_nonneg z)] |
| 134 | |
| 135 | /-- A common rational characteristic polynomial transfers the adjoint |
| 136 | bound to all complex conjugates of an eigenvalue over any extension of ℚ. -/ |
| 137 | theorem algebraic_and_conjugates_of_common_charpoly |
| 138 | {L : Type*} [Field L] [Algebra ℚ L] |
| 139 | {W : Type*} [AddCommGroup W] [Module L W] [FiniteDimensional L W] |
| 140 | (F : Module.End L W) (T : Module.End ℂ V) |
| 141 | (P : Polynomial ℚ) |
| 142 | (hF : F.charpoly = P.map (algebraMap ℚ L)) |
| 143 | (hTC : T.charpoly = P.map (algebraMap ℚ ℂ)) |
| 144 | (q : ℝ) (hT : T.adjoint.comp T = (q : ℂ) • LinearMap.id) |
| 145 | (α : L) (hα : F.HasEigenvalue α) : |
| 146 | IsAlgebraic ℚ α ∧ |
| 147 | ∀ z : ℂ, Polynomial.aeval z (minpoly ℚ α) = 0 → |
| 148 | ‖z‖ = Real.sqrt q := by |
| 149 | have hαP : Polynomial.aeval α P = 0 := by |
| 150 | have hroot := (Module.End.hasEigenvalue_iff_isRoot_charpoly F α).mp hα |
| 151 | simpa only [hF, Polynomial.IsRoot, Polynomial.eval_map_algebraMap] using hroot |
| 152 | have hP : P ≠ 0 := by |
| 153 | intro hzero |
| 154 | have hchar : F.charpoly = 0 := by simpa [hzero] using hF |
| 155 | exact (LinearMap.charpoly_monic F).ne_zero hchar |
| 156 | refine ⟨⟨P, hP, hαP⟩, ?_⟩ |
| 157 | intro z hz |
| 158 | have hzP : Polynomial.aeval z P = 0 := by |
| 159 | obtain ⟨R, hR⟩ := minpoly.dvd ℚ α hαP |
| 160 | rw [hR, map_mul, hz, zero_mul] |
| 161 | apply eigenvalue_norm_of_adjoint_comp T q hT z |
| 162 | apply (Module.End.hasEigenvalue_iff_isRoot_charpoly T z).mpr |
| 163 | simpa only [hTC, Polynomial.IsRoot, Polynomial.eval_map_algebraMap] using hzP |
| 164 | |
| 165 | /-- An eigenvalue is a root of every polynomial annihilating its operator. -/ |
| 166 | theorem eigenvalue_isRoot_of_annihilating_polynomial |
| 167 | {L : Type*} [Field L] |
| 168 | {W : Type*} [AddCommGroup W] [Module L W] |
| 169 | (F : Module.End L W) (P : Polynomial L) |
| 170 | (hP : Polynomial.aeval F P = 0) |
| 171 | (α : L) (hα : F.HasEigenvalue α) : P.IsRoot α := by |
| 172 | obtain ⟨v, hv⟩ := hα.exists_hasEigenvector |
| 173 | have h := Module.End.aeval_apply_of_hasEigenvector (p := P) hv |
| 174 | rw [hP, LinearMap.zero_apply] at h |
| 175 | exact (smul_eq_zero.mp h.symm).resolve_right hv.2 |
| 176 | |
| 177 | /-- The faithful complex representation and the ℓ-adic representation |
| 178 | may have different dimensions: annihilation suffices for the latter. -/ |
| 179 | theorem algebraic_and_conjugates_of_annihilator |
| 180 | {L : Type*} [Field L] [Algebra ℚ L] |
| 181 | {W : Type*} [AddCommGroup W] [Module L W] |
| 182 | (F : Module.End L W) (T : Module.End ℂ V) |
| 183 | (P : Polynomial ℚ) |
| 184 | (hF : Polynomial.aeval F (P.map (algebraMap ℚ L)) = 0) |
| 185 | (hTC : T.charpoly = P.map (algebraMap ℚ ℂ)) |
| 186 | (q : ℝ) (hT : T.adjoint.comp T = (q : ℂ) • LinearMap.id) |
| 187 | (α : L) (hα : F.HasEigenvalue α) : |
| 188 | IsAlgebraic ℚ α ∧ |
| 189 | ∀ z : ℂ, Polynomial.aeval z (minpoly ℚ α) = 0 → |
| 190 | ‖z‖ = Real.sqrt q := by |
| 191 | have hαP : Polynomial.aeval α P = 0 := by |
| 192 | have hroot := eigenvalue_isRoot_of_annihilating_polynomial |
| 193 | F (P.map (algebraMap ℚ L)) hF α hα |
| 194 | simpa only [Polynomial.IsRoot, Polynomial.eval_map_algebraMap] using hroot |
| 195 | have hP : P ≠ 0 := by |
| 196 | intro hzero |
| 197 | have hchar : T.charpoly = 0 := by simpa [hzero] using hTC |
| 198 | exact (LinearMap.charpoly_monic T).ne_zero hchar |
| 199 | refine ⟨⟨P, hP, hαP⟩, ?_⟩ |
| 200 | intro z hz |
| 201 | have hzP : Polynomial.aeval z P = 0 := by |
| 202 | obtain ⟨R, hR⟩ := minpoly.dvd ℚ α hαP |
| 203 | rw [hR, map_mul, hz, zero_mul] |
| 204 | apply eigenvalue_norm_of_adjoint_comp T q hT z |
| 205 | apply (Module.End.hasEigenvalue_iff_isRoot_charpoly T z).mpr |
| 206 | simpa only [hTC, Polynomial.IsRoot, Polynomial.eval_map_algebraMap] using hzP |
| 207 | |
| 208 | /-- The regular representation supplies an annihilating rational polynomial |
| 209 | for every representation of a finite-dimensional rational algebra. -/ |
| 210 | theorem algebraic_and_conjugates_of_regular_adjoint |
| 211 | {D : Type*} [Ring D] [Algebra ℚ D] [FiniteDimensional ℚ D] |
| 212 | {L : Type*} [Field L] [Algebra ℚ L] |
| 213 | {W : Type*} [AddCommGroup W] [Module L W] |
| 214 | [Algebra ℚ (Module.End L W)] [IsScalarTower ℚ L (Module.End L W)] |
| 215 | (e : TensorProduct ℚ ℂ D ≃ₗ[ℂ] V) |
| 216 | (ρ : D →ₐ[ℚ] Module.End L W) |
| 217 | (π : D) (q : ℝ) |
| 218 | (hT : (e.conj ((Algebra.lmul ℚ D π).baseChange ℂ)).adjoint.comp |
| 219 | (e.conj ((Algebra.lmul ℚ D π).baseChange ℂ)) = |
| 220 | (q : ℂ) • LinearMap.id) |
| 221 | (α : L) (hα : (ρ π).HasEigenvalue α) : |
| 222 | IsAlgebraic ℚ α ∧ |
| 223 | ∀ z : ℂ, Polynomial.aeval z (minpoly ℚ α) = 0 → |
| 224 | ‖z‖ = Real.sqrt q := by |
| 225 | apply algebraic_and_conjugates_of_annihilator (ρ π) |
| 226 | (e.conj ((Algebra.lmul ℚ D π).baseChange ℂ)) (Algebra.lmul ℚ D π).charpoly |
| 227 | ?_ ?_ q hT α hα |
| 228 | · rw [Polynomial.aeval_map_algebraMap] |
| 229 | rw [Polynomial.aeval_algHom_apply, Algebra.aeval_self_charpoly_lmul, map_zero] |
| 230 | · rw [LinearEquiv.charpoly_conj, LinearMap.charpoly_baseChange] |
| 231 | |
| 232 | /-- The complex regular representation transported to an inner-product space. -/ |
| 233 | noncomputable def complexRegularRepresentation |
| 234 | {D : Type*} [Ring D] [Algebra ℚ D] |
| 235 | (e : TensorProduct ℚ ℂ D ≃ₗ[ℂ] V) : |
| 236 | D →+* Module.End ℂ V := |
| 237 | e.conjRingEquiv.toRingHom.comp |
| 238 | ((Module.End.baseChangeHom ℚ ℂ D).toRingHom.comp |
| 239 | (Algebra.lmul ℚ D).toRingHom) |
| 240 | |
| 241 | /-- Algebraic core of the Weil argument: an involution represented by the |
| 242 | positive inner-product adjoint and the relation π†π = q imply the bound |
| 243 | in every representation over an extension of ℚ. The geometric Rosati |
| 244 | positivity theorem is needed to supply these data for an abelian variety. -/ |
| 245 | theorem algebraic_and_conjugates_of_involution |
| 246 | {D : Type*} [Ring D] [Algebra ℚ D] [FiniteDimensional ℚ D] [StarRing D] |
| 247 | {L : Type*} [Field L] [Algebra ℚ L] |
| 248 | {W : Type*} [AddCommGroup W] [Module L W] |
| 249 | [Algebra ℚ (Module.End L W)] [IsScalarTower ℚ L (Module.End L W)] |
| 250 | (e : TensorProduct ℚ ℂ D ≃ₗ[ℂ] V) |
| 251 | (hAdj : ∀ a : D, (complexRegularRepresentation e a).adjoint = |
| 252 | complexRegularRepresentation e (star a)) |
| 253 | (ρ : D →ₐ[ℚ] Module.End L W) |
| 254 | (π : D) (q : ℕ) (hπ : star π * π = (q : D)) |
| 255 | (α : L) (hα : (ρ π).HasEigenvalue α) : |
| 256 | IsAlgebraic ℚ α ∧ |
| 257 | ∀ z : ℂ, Polynomial.aeval z (minpoly ℚ α) = 0 → |
| 258 | ‖z‖ = Real.sqrt (q : ℝ) := by |
| 259 | apply algebraic_and_conjugates_of_regular_adjoint e ρ π (q : ℝ) ?_ α hα |
| 260 | change (complexRegularRepresentation e π).adjoint * |
| 261 | complexRegularRepresentation e π = ((q : ℝ) : ℂ) • LinearMap.id |
| 262 | rw [hAdj, ← map_mul, hπ, map_natCast] |
| 263 | ext v |
| 264 | simp [Nat.cast_smul_eq_nsmul] |
| 265 | |
| 266 | /-- Complete algebraic reduction from a faithful positive functional on |
| 267 | the complexified rational algebra. In the geometric proof the functional |
| 268 | and its positivity must be constructed from a polarization. -/ |
| 269 | theorem algebraic_and_conjugates_of_positive_functional |
| 270 | {D : Type*} [Ring D] [Algebra ℚ D] [FiniteDimensional ℚ D] |
| 271 | [StarRing D] [StarModule ℚ D] |
| 272 | (τ : TensorProduct ℚ ℂ D →ₗ[ℂ] ℂ) |
| 273 | (hstar : ∀ x : TensorProduct ℚ ℂ D, τ (star x) = star (τ x)) |
| 274 | (hpos : ∀ x : TensorProduct ℚ ℂ D, x ≠ 0 → 0 < (τ (star x * x)).re) |
| 275 | {L : Type*} [Field L] [Algebra ℚ L] |
| 276 | {W : Type*} [AddCommGroup W] [Module L W] |
| 277 | [Algebra ℚ (Module.End L W)] [IsScalarTower ℚ L (Module.End L W)] |
| 278 | (ρ : D →ₐ[ℚ] Module.End L W) |
| 279 | (π : D) (q : ℕ) (hπ : star π * π = (q : D)) |
| 280 | (α : L) (hα : (ρ π).HasEigenvalue α) : |
| 281 | IsAlgebraic ℚ α ∧ |
| 282 | ∀ z : ℂ, Polynomial.aeval z (minpoly ℚ α) = 0 → |
| 283 | ‖z‖ = Real.sqrt (q : ℝ) := by |
| 284 | let c := positiveFunctionalCore τ hstar hpos |
| 285 | let : NormedAddCommGroup (TensorProduct ℚ ℂ D) := c.toNormedAddCommGroup |
| 286 | let : InnerProductSpace ℂ (TensorProduct ℚ ℂ D) := InnerProductSpace.ofCore c.toCore |
| 287 | apply algebraic_and_conjugates_of_involution |
| 288 | (LinearEquiv.refl ℂ (TensorProduct ℚ ℂ D)) ?_ ρ π q hπ α hα |
| 289 | intro a |
| 290 | change ((Algebra.lmul ℚ D a).baseChange ℂ).adjoint = |
| 291 | (Algebra.lmul ℚ D (star a)).baseChange ℂ |
| 292 | rw [Algebra.baseChange_lmul, Algebra.baseChange_lmul] |
| 293 | have ha := positiveFunctional_left_adjoint τ hstar hpos (1 ⊗ₜ[ℚ] a) |
| 294 | simpa only [TensorProduct.star_tmul, star_one] using ha |
| 295 | |
| 296 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Spectral.Construction |