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.CharZeroTangent |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixDifferential |
| 3 | |
| 4 | /-! # Matrix Derivation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixDerivation.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The algebraic chain rule for evaluating matrix coordinate |
| 13 | polynomials along a derivation of an extension field. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | theorem evaluate_rightInfinitesimal_X_at_point |
| 19 | {k : Type} [Field k] {n : ℕ} (g : Algebraic.SL n k) |
| 20 | (A : Matrix (Fin n) (Fin n) k) (i j : Fin n) : |
| 21 | Algebraic.evaluateMatrix (RingHom.id k) g (Infinitesimal.Action.Construction.rightInfinitesimal A (X (i, j))) = |
| 22 | ((g : Matrix (Fin n) (Fin n) k) * A) i j := by |
| 23 | simp [Infinitesimal.Action.Construction.rightInfinitesimal_X, Algebraic.evaluateMatrix, Matrix.mul_apply] |
| 24 | |
| 25 | theorem derivation_evaluate_matrix |
| 26 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 27 | (D : Derivation k K K) (g : Algebraic.SL n K) (A : Matrix (Fin n) (Fin n) K) |
| 28 | (hA : (g : Matrix (Fin n) (Fin n) K) * A = fun i j => D (g i j)) |
| 29 | (p : Algebraic.CoordinatePolynomial n k) : |
| 30 | D (Algebraic.evaluateMatrix (algebraMap k K) g p) = |
| 31 | Algebraic.evaluateMatrix (RingHom.id K) g (Infinitesimal.Action.Construction.rightInfinitesimal A (MvPolynomial.map (algebraMap k K) p)) := by |
| 32 | have he (p : Algebraic.CoordinatePolynomial n k) : |
| 33 | Algebraic.evaluateMatrix (RingHom.id K) g (MvPolynomial.map (algebraMap k K) p) = |
| 34 | Algebraic.evaluateMatrix (algebraMap k K) g p := by |
| 35 | rw [BaseChange.Construction.evaluateMatrix_coefficient_map, RingHom.id_comp] |
| 36 | induction p using MvPolynomial.induction_on with |
| 37 | | C c => simp [Algebraic.evaluateMatrix] |
| 38 | | add p q hp hq => simp only [map_add, hp, hq] |
| 39 | | mul_X p ij hp => |
| 40 | rcases ij with ⟨i, j⟩ |
| 41 | have hx : Algebraic.evaluateMatrix (algebraMap k K) g (X (i, j)) = g i j := by simp [Algebraic.evaluateMatrix] |
| 42 | have hxm : Algebraic.evaluateMatrix (RingHom.id K) g (X (i, j)) = g i j := by simp [Algebraic.evaluateMatrix] |
| 43 | simp only [map_mul, MvPolynomial.map_X, Derivation.leibniz, smul_eq_mul, map_add, hp, |
| 44 | he, hx, hxm, evaluate_rightInfinitesimal_X_at_point, hA] |
| 45 | |
| 46 | theorem mem_infinitesimalStabilizer_iff_at_point |
| 47 | {k : Type} [Field k] [CharZero k] {n : ℕ} |
| 48 | (G : Algebraic.MatrixAlgebraicGroup k n) (hG : G.IsGeometricallyConnected) |
| 49 | (g : G.RationalPoints) (A : Matrix (Fin n) (Fin n) k) : |
| 50 | A ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G ↔ |
| 51 | ∀ p ∈ VanishingIdeal.Construction.coordinateVanishingIdeal G, |
| 52 | Algebraic.evaluateMatrix (RingHom.id k) g.val (Infinitesimal.Action.Construction.rightInfinitesimal A p) = 0 := by |
| 53 | constructor |
| 54 | · intro hA p hp |
| 55 | exact (Infinitesimal.Action.Construction.mem_infinitesimalStabilizer G A).mp hA p hp k (RingHom.id k) g |
| 56 | · intro h |
| 57 | apply (CharZeroTangent.Construction.mem_infinitesimalStabilizer_iff_tangent G hG A).mpr |
| 58 | intro p hp |
| 59 | have he := h (LeftTranslation.Construction.leftTranslate ((g.val⁻¹ : Algebraic.SL n k) : Matrix (Fin n) (Fin n) k) p) |
| 60 | (LeftTranslation.Construction.leftTranslate_mem_vanishingIdeal G g.val⁻¹ |
| 61 | ((G.subgroup k (RingHom.id k)).inv_mem g.property) p hp) |
| 62 | rw [LeftTranslation.Construction.rightInfinitesimal_leftTranslate, MatrixDifferential.Construction.leftTranslate_evaluate_rational, inv_mul_cancel] at he |
| 63 | exact he |
| 64 | |
| 65 | end |
| 66 | |
| 67 | section |
| 68 | |
| 69 | /-! Applying a derivation of an extension field to a group-valued |
| 70 | matrix gives a logarithmic derivative in the group's actual Lie algebra. -/ |
| 71 | |
| 72 | open scoped Classical |
| 73 | |
| 74 | def logarithmicMatrixDerivative |
| 75 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 76 | (D : Derivation k K K) (g : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K := |
| 77 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) * |
| 78 | (show Matrix (Fin n) (Fin n) K from fun i j => D (g i j)) |
| 79 | |
| 80 | theorem mul_logarithmicMatrixDerivative |
| 81 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 82 | (D : Derivation k K K) (g : Algebraic.SL n K) : |
| 83 | (g : Matrix (Fin n) (Fin n) K) * logarithmicMatrixDerivative D g = |
| 84 | fun i j => D (g i j) := by |
| 85 | have hg : (g : Matrix (Fin n) (Fin n) K) * |
| 86 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) = 1 := by |
| 87 | change ((g * g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) = 1 |
| 88 | rw [mul_inv_cancel] |
| 89 | rfl |
| 90 | unfold logarithmicMatrixDerivative |
| 91 | rw [← Matrix.mul_assoc, hg, Matrix.one_mul] |
| 92 | |
| 93 | theorem logarithmicMatrixDerivative_mem |
| 94 | {k K : Type} [Field k] [CharZero k] [Field K] [Algebra k K] {n : ℕ} |
| 95 | (G : Algebraic.MatrixAlgebraicGroup k n) (hG : G.IsGeometricallyConnected) |
| 96 | (D : Derivation k K K) |
| 97 | (g : (BaseChange.Construction.matrixGroupBaseChange G (algebraMap k K)).RationalPoints) : |
| 98 | logarithmicMatrixDerivative D g.val ∈ |
| 99 | Infinitesimal.Action.Construction.infinitesimalStabilizer (BaseChange.Construction.matrixGroupBaseChange G (algebraMap k K)) := by |
| 100 | let : CharZero K := Algebra.charZero_of_charZero k K |
| 101 | let A := logarithmicMatrixDerivative D g.val |
| 102 | let J := DifferentialDerivationCore.Construction.derivativeIdealStep {Infinitesimal.Action.Construction.rightInfinitesimal A} |
| 103 | (RingHom.ker (Algebraic.evaluateMatrix (RingHom.id K) g.val)) |
| 104 | have hg : g.val ∈ G.subgroup K (algebraMap k K) := by |
| 105 | have hh := g.property |
| 106 | change g.val ∈ G.subgroup K ((RingHom.id K).comp (algebraMap k K)) at hh |
| 107 | simpa only [RingHom.id_comp] using hh |
| 108 | have hle : VanishingIdeal.Construction.coordinateVanishingIdeal (BaseChange.Construction.matrixGroupBaseChange G (algebraMap k K)) ≤ J := by |
| 109 | rw [GeneralVanishingBaseChange.Construction.vanishingIdeal_charZero_baseChange G hG, Ideal.map_le_iff_le_comap] |
| 110 | intro p hp |
| 111 | have hp0 : Algebraic.evaluateMatrix (algebraMap k K) g.val p = 0 := hp K (algebraMap k K) ⟨g.val, hg⟩ |
| 112 | refine ⟨?_, ?_⟩ |
| 113 | · change Algebraic.evaluateMatrix (RingHom.id K) g.val (MvPolynomial.map (algebraMap k K) p) = 0 |
| 114 | rw [BaseChange.Construction.evaluateMatrix_coefficient_map, RingHom.id_comp, hp0] |
| 115 | · intro E hE |
| 116 | have he : E = Infinitesimal.Action.Construction.rightInfinitesimal A := Set.mem_singleton_iff.mp hE |
| 117 | rw [he] |
| 118 | change Algebraic.evaluateMatrix (RingHom.id K) g.val |
| 119 | (Infinitesimal.Action.Construction.rightInfinitesimal A (MvPolynomial.map (algebraMap k K) p)) = 0 |
| 120 | rw [← derivation_evaluate_matrix D g.val A (mul_logarithmicMatrixDerivative D g.val), hp0, map_zero] |
| 121 | apply (mem_infinitesimalStabilizer_iff_at_point _ (ConnectedBaseChange.Construction.geometrically_connected_baseChange G hG) g A).mpr |
| 122 | intro p hp |
| 123 | exact (hle hp).2 (Infinitesimal.Action.Construction.rightInfinitesimal A) (Set.mem_singleton _) |
| 124 | |
| 125 | end |
| 126 | |
| 127 | /-! Entrywise field derivations of matrix products and inverses. -/ |
| 128 | |
| 129 | open scoped Classical |
| 130 | |
| 131 | theorem matrix_derivation_mul |
| 132 | {k K : Type*} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 133 | (D : Derivation k K K) (A B : Matrix (Fin n) (Fin n) K) : |
| 134 | (A * B).map D = A * B.map D + A.map D * B := by |
| 135 | ext i j |
| 136 | simp only [Matrix.map_apply, Matrix.mul_apply, Matrix.add_apply, map_sum, |
| 137 | Derivation.leibniz, smul_eq_mul, Finset.sum_add_distrib] |
| 138 | congr 1 |
| 139 | apply Finset.sum_congr rfl |
| 140 | intro l _ |
| 141 | exact mul_comm _ _ |
| 142 | |
| 143 | theorem matrix_derivation_one |
| 144 | {k K : Type*} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 145 | (D : Derivation k K K) : (1 : Matrix (Fin n) (Fin n) K).map D = 0 := by |
| 146 | ext i j |
| 147 | simp only [Matrix.map_apply, Matrix.one_apply, Matrix.zero_apply] |
| 148 | split_ifs <;> simp |
| 149 | |
| 150 | theorem matrix_derivation_base |
| 151 | {k K : Type*} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 152 | (D : Derivation k K K) (C : Matrix (Fin n) (Fin n) k) : |
| 153 | (C.map (algebraMap k K)).map D = 0 := by |
| 154 | ext i j |
| 155 | exact D.map_algebraMap _ |
| 156 | |
| 157 | theorem matrix_derivation_inverse |
| 158 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 159 | (D : Derivation k K K) (g : Algebraic.SL n K) : |
| 160 | (((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K)).map D = |
| 161 | -(logarithmicMatrixDerivative D g * ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K)) := by |
| 162 | have hgi : (g : Matrix (Fin n) (Fin n) K) * |
| 163 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) = 1 := by |
| 164 | rw [← Matrix.SpecialLinearGroup.coe_mul, mul_inv_cancel, Matrix.SpecialLinearGroup.coe_one] |
| 165 | have hig : ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) * |
| 166 | (g : Matrix (Fin n) (Fin n) K) = 1 := by |
| 167 | rw [← Matrix.SpecialLinearGroup.coe_mul, inv_mul_cancel, Matrix.SpecialLinearGroup.coe_one] |
| 168 | have hh := matrix_derivation_mul D (g : Matrix (Fin n) (Fin n) K) |
| 169 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) |
| 170 | have hd : (g : Matrix (Fin n) (Fin n) K).map D = |
| 171 | (g : Matrix (Fin n) (Fin n) K) * logarithmicMatrixDerivative D g := |
| 172 | (mul_logarithmicMatrixDerivative D g).symm |
| 173 | rw [hgi, matrix_derivation_one, hd] at hh |
| 174 | have he := congrArg (fun M : Matrix (Fin n) (Fin n) K => |
| 175 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K) * M) hh |
| 176 | rw [Matrix.mul_zero, Matrix.mul_add, ← Matrix.mul_assoc, hig, Matrix.one_mul, |
| 177 | ← Matrix.mul_assoc, ← Matrix.mul_assoc, hig, Matrix.one_mul] at he |
| 178 | exact eq_neg_of_add_eq_zero_left he.symm |
| 179 | |
| 180 | theorem matrix_derivation_conjugation_zero |
| 181 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 182 | (D : Derivation k K K) (g : Algebraic.SL n K) (C : Matrix (Fin n) (Fin n) k) |
| 183 | (hC : logarithmicMatrixDerivative D g * C.map (algebraMap k K) = |
| 184 | C.map (algebraMap k K) * logarithmicMatrixDerivative D g) : |
| 185 | ((g : Matrix (Fin n) (Fin n) K) * C.map (algebraMap k K) * |
| 186 | ((g⁻¹ : Algebraic.SL n K) : Matrix (Fin n) (Fin n) K)).map D = 0 := by |
| 187 | have hd : (g : Matrix (Fin n) (Fin n) K).map D = |
| 188 | (g : Matrix (Fin n) (Fin n) K) * logarithmicMatrixDerivative D g := |
| 189 | (mul_logarithmicMatrixDerivative D g).symm |
| 190 | rw [matrix_derivation_mul, matrix_derivation_mul, matrix_derivation_base, |
| 191 | Matrix.mul_zero, zero_add, matrix_derivation_inverse, hd] |
| 192 | simp only [Matrix.mul_neg, Matrix.mul_assoc] |
| 193 | rw [← Matrix.mul_assoc (C.map (algebraMap k K)), ← hC, Matrix.mul_assoc, |
| 194 | neg_add_cancel] |
| 195 | |
| 196 | end |
| 197 | |
| 198 | end OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixDerivation.Construction |