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.Analysis.HodgeTheory.Decomposition.Types |
| 2 | import Mathlib.LinearAlgebra.Multilinear.FiniteDimensional |
| 3 | import Mathlib.LinearAlgebra.Eigenspace.Semisimple |
| 4 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 5 | |
| 6 | /-! # Multilinear -/ |
| 7 | |
| 8 | namespace OAI.Analysis.HodgeTheory.Decomposition.Multilinear.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The genuine real multilinear covectors split into complex and conjugate |
| 13 | linear characters in each slot. This is the pointwise algebra for type projections. -/ |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℂ E] |
| 18 | [IsScalarTower ℝ ℂ E] |
| 19 | |
| 20 | abbrev RealMultilinear (n : ℕ) := MultilinearMap ℝ (fun _ : Fin n => E) ℂ |
| 21 | |
| 22 | /-- Insert the genuine complex structure into one argument. -/ |
| 23 | def slotRotation (n : ℕ) (i : Fin n) : Module.End ℂ (RealMultilinear E n) where |
| 24 | toFun f := f.compLinearMap (fun j => if j = i then |
| 25 | (ContinuousLinearMap.lsmul ℝ ℂ Complex.I).toLinearMap else LinearMap.id) |
| 26 | map_add' f g := by ext v; rfl |
| 27 | map_smul' c f := by ext v; rfl |
| 28 | |
| 29 | @[simp] |
| 30 | theorem slotRotation_apply (n : ℕ) (i : Fin n) (f : RealMultilinear E n) (v : Fin n → E) : |
| 31 | slotRotation E n i f v = f (Function.update v i (Complex.I • v i)) := by |
| 32 | change f (fun j => (if j = i then |
| 33 | (ContinuousLinearMap.lsmul ℝ ℂ Complex.I).toLinearMap else LinearMap.id) (v j)) = _ |
| 34 | congr 1 |
| 35 | funext j |
| 36 | by_cases hj : j = i <;> simp [hj] |
| 37 | |
| 38 | theorem slotRotation_square (n : ℕ) (i : Fin n) : |
| 39 | slotRotation E n i * slotRotation E n i = -1 := by |
| 40 | ext f v |
| 41 | change slotRotation E n i (slotRotation E n i f) v = -f v |
| 42 | rw [slotRotation_apply, slotRotation_apply, Function.update_self, |
| 43 | smul_smul, Complex.I_mul_I, neg_one_smul, Function.update_idem, |
| 44 | f.map_update_neg, Function.update_eq_self] |
| 45 | |
| 46 | theorem slotRotation_commute (n : ℕ) (i j : Fin n) : |
| 47 | Commute (slotRotation E n i) (slotRotation E n j) := by |
| 48 | by_cases hij : i = j |
| 49 | · subst j |
| 50 | rfl |
| 51 | · ext f v |
| 52 | change slotRotation E n i (slotRotation E n j f) v = |
| 53 | slotRotation E n j (slotRotation E n i f) v |
| 54 | simp only [slotRotation_apply, Function.update_of_ne hij, Function.update_of_ne (Ne.symm hij)] |
| 55 | rw [Function.update_comm hij] |
| 56 | |
| 57 | section Quadratic |
| 58 | |
| 59 | variable {V : Type*} [AddCommGroup V] [Module ℂ V] |
| 60 | |
| 61 | theorem square_neg_one_semisimple (T : Module.End ℂ V) (hT : T * T = -1) : |
| 62 | T.IsSemisimple := by |
| 63 | have hp := (Polynomial.separable_X_pow_sub_C (-1 : ℂ) |
| 64 | (n := 2) (by norm_num) (by norm_num)).squarefree |
| 65 | apply Module.End.isSemisimple_of_squarefree_aeval_eq_zero hp |
| 66 | simp only [pow_two, map_sub, map_mul, Polynomial.aeval_X, |
| 67 | map_neg, map_one, hT, sub_self] |
| 68 | |
| 69 | theorem square_neg_one_eigenvalues (T : Module.End ℂ V) (hT : T * T = -1) |
| 70 | (μ : ℂ) (f : V) (hf : f ≠ 0) (hμ : T f = μ • f) : |
| 71 | μ = Complex.I ∨ μ = -Complex.I := by |
| 72 | have hh := LinearMap.congr_fun hT f |
| 73 | change T (T f) = -f at hh |
| 74 | rw [hμ, map_smul, hμ, smul_smul] at hh |
| 75 | have he : (μ * μ + 1) • f = 0 := by |
| 76 | rw [add_smul, one_smul, hh, neg_add_cancel] |
| 77 | have hz : μ * μ + 1 = 0 := (smul_eq_zero.mp he).resolve_right hf |
| 78 | have hfactor : (μ - Complex.I) * (μ + Complex.I) = 0 := by |
| 79 | calc |
| 80 | (μ - Complex.I) * (μ + Complex.I) = μ * μ - Complex.I * Complex.I := by ring |
| 81 | _ = 0 := by rw [Complex.I_mul_I]; simpa using hz |
| 82 | rcases mul_eq_zero.mp hfactor with h | h |
| 83 | · exact Or.inl (sub_eq_zero.mp h) |
| 84 | · exact Or.inr (eq_neg_of_add_eq_zero_left h) |
| 85 | |
| 86 | end Quadratic |
| 87 | |
| 88 | /-- The two actual slot eigenvalues define each signed subspace. -/ |
| 89 | def signedMultilinearSpace (n : ℕ) (ε : Fin n → Bool) : Submodule ℂ (RealMultilinear E n) := |
| 90 | ⨅ i, (slotRotation E n i).eigenspace (if ε i then Complex.I else -Complex.I) |
| 91 | |
| 92 | variable [FiniteDimensional ℝ E] |
| 93 | |
| 94 | instance realMultilinear_finiteDimensional (n : ℕ) : FiniteDimensional ℂ (RealMultilinear E n) := |
| 95 | Module.Finite.of_restrictScalars_finite ℝ ℂ (RealMultilinear E n) |
| 96 | |
| 97 | theorem multilinear_joint_eigenspaces_span (n : ℕ) : |
| 98 | (⨆ χ : Fin n → ℂ, ⨅ i, (slotRotation E n i).eigenspace (χ i)) = ⊤ := by |
| 99 | have hs (i : Fin n) := (square_neg_one_semisimple (slotRotation E n i) |
| 100 | (slotRotation_square E n i)).isFinitelySemisimple |
| 101 | have h := Module.End.iSup_iInf_maxGenEigenspace_eq_top_of_iSup_maxGenEigenspace_eq_top_of_commute |
| 102 | (slotRotation E n) (fun i j _ => slotRotation_commute E n i j) |
| 103 | (fun i => Module.End.iSup_maxGenEigenspace_eq_top (slotRotation E n i)) |
| 104 | simpa only [fun i μ => (hs i).maxGenEigenspace_eq_eigenspace μ] using h |
| 105 | |
| 106 | /-- All real multilinear covectors are sums of the signed complex-linear pieces. -/ |
| 107 | theorem signedMultilinearSpace_span (n : ℕ) : |
| 108 | (⨆ ε : Fin n → Bool, signedMultilinearSpace E n ε) = ⊤ := by |
| 109 | classical |
| 110 | apply top_unique |
| 111 | rw [← multilinear_joint_eigenspaces_span E n] |
| 112 | refine iSup_le fun χ => ?_ |
| 113 | intro f hf |
| 114 | by_cases hzero : f = 0 |
| 115 | · subst f |
| 116 | exact Submodule.zero_mem _ |
| 117 | let ε : Fin n → Bool := fun i => decide (χ i = Complex.I) |
| 118 | apply le_iSup (signedMultilinearSpace E n) ε |
| 119 | simp only [signedMultilinearSpace, Submodule.mem_iInf, Module.End.mem_eigenspace_iff] |
| 120 | intro i |
| 121 | have hi := (iInf_le (fun j => (slotRotation E n j).eigenspace (χ j)) i) hf |
| 122 | rw [Module.End.mem_eigenspace_iff] at hi |
| 123 | rcases square_neg_one_eigenvalues (slotRotation E n i) (slotRotation_square E n i) |
| 124 | (χ i) f hzero hi with h | h |
| 125 | · simpa [ε, h] using hi |
| 126 | · have hne : χ i ≠ Complex.I := by |
| 127 | rw [h] |
| 128 | intro he |
| 129 | have him := congrArg Complex.im he |
| 130 | norm_num at him |
| 131 | have heps : ε i = false := by simp [ε, hne] |
| 132 | simpa only [heps, Bool.false_eq_true, ite_false, h] using hi |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI.Analysis.HodgeTheory.Decomposition.Multilinear.Constructions |