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 | /-! # Rational -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.Rational.CentralConstraintIntrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Algebraicity from the actual scalar extension of a rational action. |
| 10 | No rationality compatibility or algebraicity assertion is a data field. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | def scalarExtendedAction {H V : Type*} [Ring H] [Algebra ℚ H] |
| 15 | [AddCommGroup V] [Module ℚ V] |
| 16 | (ρ : H →ₐ[ℚ] Module.End ℚ V) : |
| 17 | ℂ ⊗[ℚ] H →ₐ[ℂ] Module.End ℂ (ℂ ⊗[ℚ] V) := |
| 18 | AlgHom.liftEquiv ℚ ℂ H (Module.End ℂ (ℂ ⊗[ℚ] V)) |
| 19 | ((Module.End.baseChangeHom ℚ ℂ V).comp ρ) |
| 20 | |
| 21 | theorem scalarExtendedAction_tmul {H V : Type*} [Ring H] [Algebra ℚ H] |
| 22 | [AddCommGroup V] [Module ℚ V] |
| 23 | (ρ : H →ₐ[ℚ] Module.End ℚ V) (c : ℂ) (h : H) : |
| 24 | scalarExtendedAction ρ (c ⊗ₜ[ℚ] h) = c • (ρ h).baseChange ℂ := rfl |
| 25 | |
| 26 | theorem scalarExtendedAction_power {H V : Type*} [Ring H] [Algebra ℚ H] |
| 27 | [AddCommGroup V] [Module ℚ V] |
| 28 | (ρ : H →ₐ[ℚ] Module.End ℚ V) (h : H) (n : ℕ) |
| 29 | (hn : (ρ h) ^ n = 1) : |
| 30 | (scalarExtendedAction ρ (1 ⊗ₜ[ℚ] h)) ^ n = 1 := by |
| 31 | rw [scalarExtendedAction_tmul, one_smul, ← LinearMap.baseChange_pow, hn, |
| 32 | LinearMap.baseChange_one] |
| 33 | |
| 34 | theorem rational_baseChange_nat_smul |
| 35 | {V : Type*} [AddCommGroup V] [Module ℚ V] (f : Module.End ℚ V) (n : ℕ) : |
| 36 | ((n : ℚ) • f).baseChange ℂ = (n : ℂ) • f.baseChange ℂ := by |
| 37 | simp only [Nat.cast_smul_eq_nsmul] |
| 38 | exact map_nsmul (Module.End.baseChangeHom ℚ ℂ V) n f |
| 39 | |
| 40 | theorem rational_generalized_eigenvalue_algebraic |
| 41 | {V : Type*} [AddCommGroup V] [Module ℚ V] [FiniteDimensional ℚ V] |
| 42 | (f : Module.End ℚ V) (z : ℂ) |
| 43 | (hz : Module.End.genEigenspace (f.baseChange ℂ) z ⊤ ≠ ⊥) : IsAlgebraic ℚ z := by |
| 44 | have he : Module.End.HasEigenvalue (f.baseChange ℂ) z := |
| 45 | Module.End.HasUnifEigenvalue.lt zero_lt_one hz |
| 46 | have hr := (Module.End.hasEigenvalue_iff_isRoot_charpoly (f.baseChange ℂ) z).mp he |
| 47 | rw [LinearMap.charpoly_baseChange] at hr |
| 48 | refine ⟨f.charpoly, f.charpoly_monic.ne_zero, ?_⟩ |
| 49 | simpa only [Polynomial.IsRoot, Polynomial.eval_map, Polynomial.aeval_def] using hr |
| 50 | |
| 51 | theorem occurring_rational_eigenvalues_algebraic |
| 52 | {H V : Type*} [Ring H] [Algebra ℚ H] |
| 53 | [AddCommGroup V] [Module ℚ V] [FiniteDimensional ℚ V] |
| 54 | (ρ : H →ₐ[ℚ] Module.End ℚ V) (χ : ℂ ⊗[ℚ] H →ₐ[ℂ] ℂ) |
| 55 | (hχ : (⨅ h, (scalarExtendedAction ρ h).genEigenspace (χ h) ⊤) ≠ ⊥) |
| 56 | (h : H) : IsAlgebraic ℚ (χ (1 ⊗ₜ[ℚ] h)) := by |
| 57 | apply rational_generalized_eigenvalue_algebraic (ρ h) |
| 58 | have hi : (scalarExtendedAction ρ (1 ⊗ₜ[ℚ] h)).genEigenspace |
| 59 | (χ (1 ⊗ₜ[ℚ] h)) ⊤ ≠ ⊥ := by |
| 60 | intro hz |
| 61 | apply hχ |
| 62 | apply le_antisymm _ bot_le |
| 63 | rw [← hz] |
| 64 | exact iInf_le _ (1 ⊗ₜ[ℚ] h) |
| 65 | simpa only [scalarExtendedAction_tmul, one_smul] using hi |
| 66 | |
| 67 | theorem cubic_parameters_algebraic (q : ℕ) (hq : q ≠ 0) |
| 68 | (t₁ t₂ t₃ : ℂ) (ht₁ : IsAlgebraic ℚ t₁) |
| 69 | (ht₂ : IsAlgebraic ℚ t₂) (ht₃ : IsAlgebraic ℚ t₃) |
| 70 | (α : Fin 3 → ℂ) |
| 71 | (h₁ : t₁ = (q : ℂ) * (α 0 + α 1 + α 2)) |
| 72 | (h₂ : t₂ = (q : ℂ) * (α 0 * α 1 + α 0 * α 2 + α 1 * α 2)) |
| 73 | (h₃ : t₃ = α 0 * α 1 * α 2) : ∀ i, IsAlgebraic ℚ (α i) := by |
| 74 | classical |
| 75 | have hqC : (q : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr hq |
| 76 | have hqalg : IsAlgebraic ℚ (q : ℂ) := isAlgebraic_natCast q |
| 77 | have hs : IsIntegral ℚ (t₁ / (q : ℂ)) := by |
| 78 | simpa only [div_eq_mul_inv] using (ht₁.mul hqalg.inv).isIntegral |
| 79 | have hp : IsIntegral ℚ (t₂ / (q : ℂ)) := by |
| 80 | simpa only [div_eq_mul_inv] using (ht₂.mul hqalg.inv).isIntegral |
| 81 | let p : Polynomial ℂ := Polynomial.X ^ 3 - Polynomial.C (t₁ / q) * Polynomial.X ^ 2 + |
| 82 | Polynomial.C (t₂ / q) * Polynomial.X - Polynomial.C t₃ |
| 83 | have peq : p = (Polynomial.X - Polynomial.C (α 0)) * |
| 84 | (Polynomial.X - Polynomial.C (α 1)) * (Polynomial.X - Polynomial.C (α 2)) := by |
| 85 | dsimp [p] |
| 86 | rw [h₁, h₂, h₃] |
| 87 | simp only [mul_div_cancel_left₀ _ hqC, map_add, map_mul] |
| 88 | ring |
| 89 | have hm : p.Monic := by |
| 90 | rw [peq] |
| 91 | exact ((Polynomial.monic_X_sub_C _).mul (Polynomial.monic_X_sub_C _)).mul |
| 92 | (Polynomial.monic_X_sub_C _) |
| 93 | have hd : p.natDegree ≠ 0 := by |
| 94 | intro hd |
| 95 | have hz : p.coeff 3 = 0 := Polynomial.coeff_eq_zero_of_natDegree_lt (by omega) |
| 96 | norm_num [p] at hz |
| 97 | have hc (n : ℕ) : IsIntegral ℚ (p.coeff n) := by |
| 98 | dsimp [p] |
| 99 | simp only [Polynomial.coeff_sub, Polynomial.coeff_add, Polynomial.coeff_C_mul, |
| 100 | Polynomial.coeff_X_pow, Polynomial.coeff_X, Polynomial.coeff_C] |
| 101 | split_ifs <;> simp only [mul_one, mul_zero, sub_zero, add_zero, |
| 102 | zero_add, zero_sub] <;> |
| 103 | repeat first | apply IsIntegral.sub | apply IsIntegral.add | apply IsIntegral.neg | |
| 104 | exact isIntegral_zero | exact isIntegral_one | exact hs | exact hp | exact ht₃.isIntegral |
| 105 | intro i |
| 106 | have hz : p.eval (α i) = 0 := by |
| 107 | rw [peq] |
| 108 | fin_cases i <;> simp |
| 109 | exact (IsIntegral.of_aeval_monic_of_isIntegral_coeff hm hd |
| 110 | (hz ▸ isIntegral_zero) hc).isAlgebraic |
| 111 | |
| 112 | theorem projective_parameter_algebraic (r e : ℂ) (hr : r ≠ 0) |
| 113 | (hralg : IsAlgebraic ℚ r) (α : Fin 3 → ℂ) |
| 114 | (hαalg : ∀ i, IsAlgebraic ℚ (α i)) |
| 115 | (hproj : ∃ a : ℂ, a ≠ 0 ∧ ∃ σ : Equiv.Perm (Fin 3), |
| 116 | ∀ i, α i = a * (![r, r⁻¹, e] : Fin 3 → ℂ) (σ i)) : |
| 117 | IsAlgebraic ℚ e := by |
| 118 | obtain ⟨a, ha, σ, hσ⟩ := hproj |
| 119 | have h₀ := hσ (σ.symm 0) |
| 120 | have h₂ := hσ (σ.symm 2) |
| 121 | simp only [Equiv.apply_symm_apply] at h₀ h₂ |
| 122 | change α (σ.symm 0) = a * r at h₀ |
| 123 | change α (σ.symm 2) = a * e at h₂ |
| 124 | have halg : IsAlgebraic ℚ a := by |
| 125 | have h := (hαalg (σ.symm 0)).mul hralg.inv |
| 126 | simpa only [h₀, mul_assoc, mul_inv_cancel₀ hr, mul_one] using h |
| 127 | have h := (hαalg (σ.symm 2)).mul halg.inv |
| 128 | have heq : α (σ.symm 2) * a⁻¹ = e := by |
| 129 | rw [h₂] |
| 130 | field_simp |
| 131 | simpa only [heq] using h |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.RepresentationTheory.Hecke.Rational.CentralConstraintIntrinsic |