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.NumberTheory.ArithmeticGroups.Lattices.Bilinear.SpectralFunctions |
| 2 | import Mathlib.Analysis.InnerProductSpace.Adjoint |
| 3 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 4 | |
| 5 | /-! # Basis Spectral Operator -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.BasisSpectralOperator.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Operators with prescribed values on an eigenbasis, including |
| 12 | self-adjointness for real weights on an orthonormal basis. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | def basisSpectralEnd |
| 17 | {k L ι : Type*} [Field k] [AddCommGroup L] [Module k L] |
| 18 | (b : Module.Basis ι k L) (w : ι → k) : L →ₗ[k] L := b.constr k (fun i => w i • b i) |
| 19 | |
| 20 | theorem basisSpectralEnd_apply_basis |
| 21 | {k L ι : Type*} [Field k] [AddCommGroup L] [Module k L] |
| 22 | (b : Module.Basis ι k L) (w : ι → k) (i : ι) : |
| 23 | basisSpectralEnd b w (b i) = w i • b i := b.constr_basis k _ i |
| 24 | |
| 25 | theorem basisSpectralEnd_mul |
| 26 | {k L ι : Type*} [Field k] [AddCommGroup L] [Module k L] |
| 27 | (b : Module.Basis ι k L) (w v : ι → k) : |
| 28 | basisSpectralEnd b w * basisSpectralEnd b v = basisSpectralEnd b (fun i => w i * v i) := by |
| 29 | apply b.ext |
| 30 | intro i |
| 31 | simp only [Module.End.mul_apply, basisSpectralEnd_apply_basis, map_smul, smul_smul, mul_comm] |
| 32 | |
| 33 | theorem basisSpectralEnd_eq_of_eigenbasis |
| 34 | {k L ι : Type*} [Field k] [AddCommGroup L] [Module k L] |
| 35 | (b : Module.Basis ι k L) (w : ι → k) (A : L →ₗ[k] L) |
| 36 | (hA : ∀ i, A (b i) = w i • b i) : basisSpectralEnd b w = A := by |
| 37 | apply b.ext |
| 38 | intro i |
| 39 | rw [basisSpectralEnd_apply_basis, hA] |
| 40 | |
| 41 | theorem basisSpectralEnd_isSymmetric |
| 42 | {L ι : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] |
| 43 | [FiniteDimensional ℝ L] [Fintype ι] |
| 44 | (b : OrthonormalBasis ι ℝ L) (w : ι → ℝ) : (basisSpectralEnd b.toBasis w).IsSymmetric := by |
| 45 | have he : basisSpectralEnd b.toBasis w = (basisSpectralEnd b.toBasis w).adjoint := by |
| 46 | apply (LinearMap.eq_adjoint_iff_basis b.toBasis b.toBasis _ _).mpr |
| 47 | intro i j |
| 48 | rw [basisSpectralEnd_apply_basis, basisSpectralEnd_apply_basis] |
| 49 | simp only [OrthonormalBasis.coe_toBasis, inner_smul_left, inner_smul_right, |
| 50 | RCLike.conj_to_real, b.inner_eq_ite] |
| 51 | split_ifs with hij |
| 52 | · subst j |
| 53 | rfl |
| 54 | · simp |
| 55 | exact (LinearMap.eq_adjoint_iff _ _).mp he |
| 56 | |
| 57 | theorem basisSpectralEnd_inner_self |
| 58 | {L ι : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [Fintype ι] |
| 59 | (b : OrthonormalBasis ι ℝ L) (w : ι → ℝ) (x : L) : |
| 60 | inner ℝ (basisSpectralEnd b.toBasis w x) x = ∑ i, w i * (b.repr x i) ^ 2 := by |
| 61 | calc |
| 62 | inner ℝ (basisSpectralEnd b.toBasis w x) x = |
| 63 | inner ℝ (basisSpectralEnd b.toBasis w (∑ i, b.repr x i • b i)) x := by rw [b.sum_repr] |
| 64 | _ = _ := by |
| 65 | rw [map_sum, sum_inner] |
| 66 | apply Finset.sum_congr rfl |
| 67 | intro i _ |
| 68 | rw [map_smul, show basisSpectralEnd b.toBasis w (b i) = w i • b i from |
| 69 | basisSpectralEnd_apply_basis b.toBasis w i, real_inner_smul_left, real_inner_smul_left, |
| 70 | ← b.repr_apply_apply] |
| 71 | ring |
| 72 | |
| 73 | theorem basisSpectralEnd_positive |
| 74 | {L ι : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] [Fintype ι] |
| 75 | (b : OrthonormalBasis ι ℝ L) (w : ι → ℝ) (hw : ∀ i, 0 < w i) (x : L) (hx : x ≠ 0) : |
| 76 | 0 < inner ℝ (basisSpectralEnd b.toBasis w x) x := by |
| 77 | have hn : ∃ i, b.repr x i ≠ 0 := by |
| 78 | by_contra! h |
| 79 | apply hx |
| 80 | apply b.repr.injective |
| 81 | rw [map_zero] |
| 82 | ext i |
| 83 | exact h i |
| 84 | rw [basisSpectralEnd_inner_self] |
| 85 | apply Finset.sum_pos' |
| 86 | · intro i _ |
| 87 | exact mul_nonneg (le_of_lt (hw i)) (sq_nonneg _) |
| 88 | · obtain ⟨i, hi⟩ := hn |
| 89 | exact ⟨i, Finset.mem_univ i, mul_pos (hw i) (sq_pos_of_ne_zero hi)⟩ |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.ArithmeticGroups.Lattices.BasisSpectralOperator.Construction |