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.HilbertSchmidt |
| 2 | import Mathlib.Analysis.Normed.Operator.Mul |
| 3 | |
| 4 | /-! # Endomorphism Hilbert Schmidt -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.EndomorphismHilbertSchmidt.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Euclidean coordinates and the Hilbert--Schmidt inner product |
| 13 | on endomorphisms. The commutator action respects adjoints. -/ |
| 14 | |
| 15 | open _root_.ContinuousLinearMap |
| 16 | |
| 17 | def pairUncurryLinearEquiv (k ι : Type*) [Field k] : (ι → ι → k) ≃ₗ[k] (ι × ι → k) where |
| 18 | toFun f p := f p.1 p.2 |
| 19 | invFun f i j := f (i, j) |
| 20 | left_inv _ := rfl |
| 21 | right_inv _ := rfl |
| 22 | map_add' _ _ := rfl |
| 23 | map_smul' _ _ := rfl |
| 24 | |
| 25 | variable {L ι : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] |
| 26 | [FiniteDimensional ℝ L] [Fintype ι] |
| 27 | |
| 28 | local instance hsEnd_normed : NormedAddCommGroup (L →L[ℝ] L) := inferInstance |
| 29 | local instance hsEnd_space : NormedSpace ℝ (L →L[ℝ] L) := inferInstance |
| 30 | local instance hsEnd_finite : FiniteDimensional ℝ (L →L[ℝ] L) := inferInstance |
| 31 | |
| 32 | def continuousEndEuclideanCoordinates (b : Module.Basis ι ℝ L) : |
| 33 | (L →L[ℝ] L) ≃L[ℝ] EuclideanSpace ℝ (ι × ι) := |
| 34 | (((((LinearMap.toContinuousLinearMap : (L →ₗ[ℝ] L) ≃ₗ[ℝ] (L →L[ℝ] L)).symm.trans |
| 35 | (b.constr ℝ).symm).trans (LinearEquiv.piCongrRight fun _ => b.equivFun)).trans |
| 36 | (pairUncurryLinearEquiv ℝ ι)).trans (WithLp.linearEquiv 2 ℝ (ι × ι → ℝ)).symm).toContinuousLinearEquiv |
| 37 | |
| 38 | theorem continuousEndEuclideanCoordinates_apply (b : Module.Basis ι ℝ L) |
| 39 | (A : L →L[ℝ] L) (i j : ι) : |
| 40 | continuousEndEuclideanCoordinates b A (i, j) = b.equivFun (A (b i)) j := rfl |
| 41 | |
| 42 | theorem continuousEndEuclideanCoordinates_inner (b : OrthonormalBasis ι ℝ L) (A C : L →L[ℝ] L) : |
| 43 | inner ℝ (continuousEndEuclideanCoordinates b.toBasis A) (continuousEndEuclideanCoordinates b.toBasis C) = |
| 44 | ∑ i, inner ℝ (A (b i)) (C (b i)) := by |
| 45 | change (∑ p : ι × ι, continuousEndEuclideanCoordinates b.toBasis C p * |
| 46 | continuousEndEuclideanCoordinates b.toBasis A p) = _ |
| 47 | rw [Fintype.sum_prod_type] |
| 48 | apply Finset.sum_congr rfl |
| 49 | intro i _ |
| 50 | simp only [continuousEndEuclideanCoordinates_apply, Module.Basis.equivFun_apply, |
| 51 | OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.coe_toBasis] |
| 52 | exact b.repr.inner_map_map (A (b i)) (C (b i)) |
| 53 | |
| 54 | def continuousCommutatorRepresentation : (L →L[ℝ] L) →ₗ[ℝ] |
| 55 | ((L →L[ℝ] L) →L[ℝ] (L →L[ℝ] L)) := |
| 56 | (ContinuousLinearMap.mul ℝ (L →L[ℝ] L) - (ContinuousLinearMap.mul ℝ (L →L[ℝ] L)).flip).toLinearMap |
| 57 | |
| 58 | omit [FiniteDimensional ℝ L] in |
| 59 | theorem continuousCommutatorRepresentation_apply (A X : L →L[ℝ] L) : |
| 60 | continuousCommutatorRepresentation A X = A * X - X * A := rfl |
| 61 | |
| 62 | omit [FiniteDimensional ℝ L] in |
| 63 | theorem continuousCommutatorRepresentation_commutator (A C : L →L[ℝ] L) : |
| 64 | continuousCommutatorRepresentation (A * C - C * A) = |
| 65 | continuousCommutatorRepresentation A * continuousCommutatorRepresentation C - |
| 66 | continuousCommutatorRepresentation C * continuousCommutatorRepresentation A := by |
| 67 | apply ContinuousLinearMap.ext |
| 68 | intro X |
| 69 | simp only [sub_apply, mul_apply_eq_comp, continuousCommutatorRepresentation_apply] |
| 70 | noncomm_ring |
| 71 | |
| 72 | omit [FiniteDimensional ℝ L] in |
| 73 | theorem commutator_sum_inner [CompleteSpace L] (b : OrthonormalBasis ι ℝ L) |
| 74 | (A X Y : L →L[ℝ] L) : |
| 75 | (∑ i, inner ℝ ((A * X - X * A) (b i)) (Y (b i))) = |
| 76 | ∑ i, inner ℝ (X (b i)) ((adjoint A * Y - Y * adjoint A) (b i)) := by |
| 77 | have hleft : (∑ i, inner ℝ (A (X (b i))) (Y (b i))) = |
| 78 | ∑ i, inner ℝ (X (b i)) (adjoint A (Y (b i))) := |
| 79 | Finset.sum_congr rfl (fun i _ => (adjoint_inner_right A _ _).symm) |
| 80 | simp only [sub_apply, mul_apply_eq_comp, inner_sub_left, inner_sub_right, Finset.sum_sub_distrib] |
| 81 | rw [hleft, Bilinear.HilbertSchmidt.Construction.orthonormal_sum_inner_precomp_adjoint b A X Y] |
| 82 | |
| 83 | end |
| 84 | |
| 85 | /-! The commutator representation in Euclidean endomorphism |
| 86 | coordinates preserves commutators and adjoints. -/ |
| 87 | |
| 88 | open _root_.ContinuousLinearMap |
| 89 | |
| 90 | variable {L ι : Type*} [NormedAddCommGroup L] [InnerProductSpace ℝ L] |
| 91 | [FiniteDimensional ℝ L] [Fintype ι] |
| 92 | |
| 93 | def euclideanCommutatorRepresentation (b : OrthonormalBasis ι ℝ L) : |
| 94 | (L →L[ℝ] L) →ₗ[ℝ] (EuclideanSpace ℝ (ι × ι) →L[ℝ] EuclideanSpace ℝ (ι × ι)) := |
| 95 | (continuousEndEuclideanCoordinates b.toBasis).conjContinuousAlgEquiv.toAlgEquiv.toLinearMap.comp |
| 96 | continuousCommutatorRepresentation |
| 97 | |
| 98 | theorem euclideanCommutatorRepresentation_apply (b : OrthonormalBasis ι ℝ L) |
| 99 | (A X : L →L[ℝ] L) : |
| 100 | euclideanCommutatorRepresentation b A (continuousEndEuclideanCoordinates b.toBasis X) = |
| 101 | continuousEndEuclideanCoordinates b.toBasis (A * X - X * A) := by |
| 102 | change continuousEndEuclideanCoordinates b.toBasis |
| 103 | (continuousCommutatorRepresentation A ((continuousEndEuclideanCoordinates b.toBasis).symm |
| 104 | (continuousEndEuclideanCoordinates b.toBasis X))) = _ |
| 105 | rw [ContinuousLinearEquiv.symm_apply_apply, continuousCommutatorRepresentation_apply] |
| 106 | |
| 107 | theorem euclideanCommutatorRepresentation_commutator (b : OrthonormalBasis ι ℝ L) |
| 108 | (A C : L →L[ℝ] L) : |
| 109 | euclideanCommutatorRepresentation b (A * C - C * A) = |
| 110 | euclideanCommutatorRepresentation b A * euclideanCommutatorRepresentation b C - |
| 111 | euclideanCommutatorRepresentation b C * euclideanCommutatorRepresentation b A := by |
| 112 | change (continuousEndEuclideanCoordinates b.toBasis).conjContinuousAlgEquiv |
| 113 | (continuousCommutatorRepresentation (A * C - C * A)) = _ |
| 114 | rw [continuousCommutatorRepresentation_commutator, map_sub, map_mul, map_mul] |
| 115 | rfl |
| 116 | |
| 117 | theorem euclideanCommutatorRepresentation_inner [CompleteSpace L] (b : OrthonormalBasis ι ℝ L) |
| 118 | (A X Y : L →L[ℝ] L) : |
| 119 | inner ℝ (euclideanCommutatorRepresentation b A (continuousEndEuclideanCoordinates b.toBasis X)) |
| 120 | (continuousEndEuclideanCoordinates b.toBasis Y) = |
| 121 | inner ℝ (continuousEndEuclideanCoordinates b.toBasis X) |
| 122 | (euclideanCommutatorRepresentation b (adjoint A) (continuousEndEuclideanCoordinates b.toBasis Y)) := by |
| 123 | rw [euclideanCommutatorRepresentation_apply, euclideanCommutatorRepresentation_apply, |
| 124 | continuousEndEuclideanCoordinates_inner, continuousEndEuclideanCoordinates_inner] |
| 125 | exact commutator_sum_inner b A X Y |
| 126 | |
| 127 | theorem euclideanCommutatorRepresentation_adjoint [CompleteSpace L] (b : OrthonormalBasis ι ℝ L) |
| 128 | (A : L →L[ℝ] L) : |
| 129 | euclideanCommutatorRepresentation b (adjoint A) = adjoint (euclideanCommutatorRepresentation b A) := by |
| 130 | apply (eq_adjoint_iff _ _).mpr |
| 131 | intro x y |
| 132 | obtain ⟨X, rfl⟩ := (continuousEndEuclideanCoordinates b.toBasis).surjective x |
| 133 | obtain ⟨Y, rfl⟩ := (continuousEndEuclideanCoordinates b.toBasis).surjective y |
| 134 | simpa only [adjoint_adjoint] using euclideanCommutatorRepresentation_inner b (adjoint A) X Y |
| 135 | |
| 136 | theorem euclideanCommutatorRepresentation_isSymmetric [CompleteSpace L] (b : OrthonormalBasis ι ℝ L) |
| 137 | (A : L →L[ℝ] L) (hA : A.toLinearMap.IsSymmetric) : |
| 138 | (euclideanCommutatorRepresentation b A).toLinearMap.IsSymmetric := by |
| 139 | have he := euclideanCommutatorRepresentation_adjoint b A |
| 140 | rw [hA.clm_adjoint_eq] at he |
| 141 | exact (eq_adjoint_iff _ _).mp he |
| 142 | |
| 143 | theorem euclideanCommutatorRepresentation_commute (b : OrthonormalBasis ι ℝ L) |
| 144 | (A C : L →L[ℝ] L) (hAC : Commute A C) : |
| 145 | Commute (euclideanCommutatorRepresentation b A).toLinearMap |
| 146 | (euclideanCommutatorRepresentation b C).toLinearMap := by |
| 147 | have he := euclideanCommutatorRepresentation_commutator b A C |
| 148 | rw [sub_eq_zero.mpr hAC.eq, map_zero] at he |
| 149 | have hm := congrArg ContinuousLinearMap.toLinearMap (sub_eq_zero.mp he.symm) |
| 150 | exact hm |
| 151 | |
| 152 | end |
| 153 | |
| 154 | end OAI.NumberTheory.ArithmeticGroups.Lattices.EndomorphismHilbertSchmidt.Construction |