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.JointEigenspace |
| 2 | import Mathlib.Algebra.Module.Submodule.Union |
| 3 | import Mathlib.LinearAlgebra.Dimension.Finite |
| 4 | |
| 5 | /-! # Regular Self Adjoint Combination -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.RegularSelfAdjointCombination.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite commuting family of self-adjoint operators has a real |
| 12 | linear combination whose kernel is precisely their common kernel. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.Module.End |
| 16 | |
| 17 | theorem exists_selfAdjoint_combination_common_kernel |
| 18 | {E ι : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 19 | [Fintype ι] (T : ι → E →ₗ[ℝ] E) (hT : ∀ i, (T i).IsSymmetric) |
| 20 | (hcomm : Pairwise (fun i j => Commute (T i) (T j))) : |
| 21 | ∃ c : ι → ℝ, (∑ i, c i • T i).ker = ⨅ i, (T i).ker := by |
| 22 | let P : (ι → ℝ) → Submodule ℝ E := fun χ => ⨅ i, eigenspace (T i) (χ i) |
| 23 | have hind : iSupIndep P := (LinearMap.IsSymmetric.orthogonalFamily_iInf_eigenspaces hT).independent |
| 24 | let : Fintype {χ : ι → ℝ // P χ ≠ ⊥} := hind.fintypeNeBotOfFiniteDimensional |
| 25 | let J := {χ : ι → ℝ // P χ ≠ ⊥ ∧ χ ≠ 0} |
| 26 | let : Finite J := Finite.of_injective |
| 27 | (fun χ : J => (⟨χ.val, χ.property.1⟩ : {χ : ι → ℝ // P χ ≠ ⊥})) |
| 28 | (fun _ _ h => Subtype.ext (congrArg (fun χ : {χ : ι → ℝ // P χ ≠ ⊥} => χ.val) h)) |
| 29 | let f : J → Module.Dual ℝ (ι → ℝ) := fun χ => ∑ i, χ.val i • LinearMap.proj i |
| 30 | have hf (χ : J) : ∃ c, f χ c ≠ 0 := by |
| 31 | obtain ⟨i, hi⟩ := Function.ne_iff.mp χ.property.2 |
| 32 | refine ⟨Pi.single i 1, ?_⟩ |
| 33 | simpa [f, LinearMap.sum_apply, LinearMap.smul_apply, Pi.single_apply] using hi |
| 34 | obtain ⟨c, hc⟩ := Module.Dual.exists_forall_ne_zero_of_forall_exists f hf |
| 35 | have hav (χ : ι → ℝ) (hP : P χ ≠ ⊥) (hχ : χ ≠ 0) : ∑ i, c i * χ i ≠ 0 := by |
| 36 | simpa only [f, LinearMap.sum_apply, LinearMap.smul_apply, LinearMap.proj_apply, |
| 37 | smul_eq_mul, mul_comm] using hc ⟨χ, hP, hχ⟩ |
| 38 | let S : E →ₗ[ℝ] E := ∑ i, c i • T i |
| 39 | have hSym : S.IsSymmetric := LinearMap.isSymmetric_sum Finset.univ |
| 40 | (fun i _ => LinearMap.IsSymmetric.smul (by simp) (hT i)) |
| 41 | have heig (χ : ι → ℝ) (y : E) (hy : y ∈ P χ) (i : ι) : T i y = χ i • y := |
| 42 | Module.End.mem_eigenspace_iff.mp ((Submodule.mem_iInf _).mp hy i) |
| 43 | have heigS (χ : ι → ℝ) (y : E) (hy : y ∈ P χ) : S y = (∑ i, c i * χ i) • y := by |
| 44 | simp only [S, LinearMap.sum_apply, LinearMap.smul_apply] |
| 45 | calc |
| 46 | (∑ i, c i • T i y) = ∑ i, (c i * χ i) • y := by |
| 47 | apply Finset.sum_congr rfl |
| 48 | intro i _ |
| 49 | rw [heig χ y hy i, smul_smul] |
| 50 | _ = _ := Finset.sum_smul.symm |
| 51 | have htop : (⨆ χ, P χ) = ⊤ := LinearMap.IsSymmetric.iSup_iInf_eq_top_of_commute hT hcomm |
| 52 | refine ⟨c, le_antisymm ?_ ?_⟩ |
| 53 | · intro x hx |
| 54 | change S x = 0 at hx |
| 55 | apply (Submodule.mem_iInf _).mpr |
| 56 | intro i |
| 57 | change T i x = 0 |
| 58 | let F := (innerSL ℝ (T i x)).toLinearMap |
| 59 | have hker : (⨆ χ, P χ) ≤ F.ker := by |
| 60 | apply iSup_le |
| 61 | intro χ y hy |
| 62 | change inner ℝ (T i x) y = 0 |
| 63 | by_cases hp : P χ = ⊥ |
| 64 | · have hy0 : y = 0 := by simpa only [hp, Submodule.mem_bot] using hy |
| 65 | rw [hy0, inner_zero_right] |
| 66 | by_cases hz : χ = 0 |
| 67 | · have hyi := heig χ y hy i |
| 68 | rw [hz, Pi.zero_apply, zero_smul] at hyi |
| 69 | rw [hT i x y, hyi, inner_zero_right] |
| 70 | have hs := hSym x y |
| 71 | rw [hx, heigS χ y hy, inner_zero_left, real_inner_smul_right] at hs |
| 72 | have hxy : inner ℝ x y = 0 := (mul_eq_zero.mp hs.symm).resolve_left (hav χ hp hz) |
| 73 | rw [hT i x y, heig χ y hy i, real_inner_smul_right, hxy, mul_zero] |
| 74 | rw [htop] at hker |
| 75 | have hz : inner ℝ (T i x) (T i x) = 0 := hker (show T i x ∈ (⊤ : Submodule ℝ E) from trivial) |
| 76 | exact (inner_self_eq_zero (𝕜 := ℝ)).mp hz |
| 77 | · intro x hx |
| 78 | change (∑ i, c i • T i) x = 0 |
| 79 | have hi (i : ι) : T i x = 0 := (Submodule.mem_iInf _).mp hx i |
| 80 | simp only [LinearMap.sum_apply, LinearMap.smul_apply, hi, smul_zero, Finset.sum_const_zero] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.ArithmeticGroups.Lattices.RegularSelfAdjointCombination.Construction |