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.MatrixFlatExtension |
| 2 | |
| 3 | /-! # Invariant System -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Bilinear.InvariantSystem.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite linear equations for infinitesimally invariant bilinear |
| 10 | forms, and compatibility with extension of the coefficient field. -/ |
| 11 | |
| 12 | open scoped Classical TensorProduct |
| 13 | open _root_.Matrix |
| 14 | |
| 15 | def bilinearLieVariation {k : Type} [Field k] {n : ℕ} |
| 16 | (A : Matrix (Fin n) (Fin n) k) : |
| 17 | Matrix (Fin n) (Fin n) k →ₗ[k] Matrix (Fin n) (Fin n) k where |
| 18 | toFun Q := A.transpose * Q + Q * A |
| 19 | map_add' Q R := by simp only [Matrix.mul_add, Matrix.add_mul]; abel |
| 20 | map_smul' c Q := by simp only [Matrix.mul_smul, Matrix.smul_mul, smul_add, RingHom.id_apply] |
| 21 | |
| 22 | def bilinearInvariantSystem {k ι : Type} [Field k] {n : ℕ} |
| 23 | (A : ι → Matrix (Fin n) (Fin n) k) : |
| 24 | Matrix (Fin n) (Fin n) k →ₗ[k] (ι × Fin n × Fin n → k) where |
| 25 | toFun Q t := bilinearLieVariation (A t.1) Q t.2.1 t.2.2 |
| 26 | map_add' Q R := by ext t; exact congrArg (fun M => M t.2.1 t.2.2) (map_add (bilinearLieVariation (A t.1)) Q R) |
| 27 | map_smul' c Q := by ext t; exact congrArg (fun M => M t.2.1 t.2.2) (map_smul (bilinearLieVariation (A t.1)) c Q) |
| 28 | |
| 29 | theorem bilinearLieVariation_coefficient_map |
| 30 | {k K : Type} [Field k] [Field K] {n : ℕ} (v : k →+* K) |
| 31 | (A Q : Matrix (Fin n) (Fin n) k) : |
| 32 | bilinearLieVariation (A.map v) (Q.map v) = (bilinearLieVariation A Q).map v := by |
| 33 | change v.mapMatrix A.transpose * v.mapMatrix Q + v.mapMatrix Q * v.mapMatrix A = |
| 34 | v.mapMatrix (A.transpose * Q + Q * A) |
| 35 | rw [map_add, map_mul, map_mul] |
| 36 | |
| 37 | theorem bilinearInvariantSystem_baseChange |
| 38 | {k K ι : Type} [Field k] [Field K] [Algebra k K] [Fintype ι] {n : ℕ} |
| 39 | (A : ι → Matrix (Fin n) (Fin n) k) (x : K ⊗[k] Matrix (Fin n) (Fin n) k) : |
| 40 | TensorProduct.piScalarRight k K K (ι × Fin n × Fin n) |
| 41 | ((bilinearInvariantSystem A).baseChange K x) = |
| 42 | bilinearInvariantSystem (fun i => (A i).map (algebraMap k K)) (MatrixFlatExtension.Construction.matrixScalarExtension n x) := by |
| 43 | induction x using TensorProduct.inductionOn with |
| 44 | | add x y hx hy => simp only [map_add, hx, hy] |
| 45 | | tmul a Q => |
| 46 | rw [LinearMap.baseChange_tmul, TensorProduct.piScalarRight_apply, |
| 47 | TensorProduct.piScalarRightHom_tmul, MatrixFlatExtension.Construction.matrixScalarExtension_tmul, map_smul] |
| 48 | funext t |
| 49 | change bilinearLieVariation (A t.1) Q t.2.1 t.2.2 • a = |
| 50 | a • bilinearLieVariation ((A t.1).map (algebraMap k K)) |
| 51 | (Q.map (algebraMap k K)) t.2.1 t.2.2 |
| 52 | rw [bilinearLieVariation_coefficient_map] |
| 53 | change _ = a * algebraMap k K _ |
| 54 | rw [Algebra.smul_def, mul_comm] |
| 55 | |
| 56 | theorem bilinearInvariantSystem_kernel_baseChange |
| 57 | {k K ι : Type} [Field k] [Field K] [Algebra k K] [Fintype ι] {n : ℕ} |
| 58 | (A : ι → Matrix (Fin n) (Fin n) k) : |
| 59 | MatrixFlatExtension.Construction.matrixSubspaceExtension (K := K) (bilinearInvariantSystem A).ker = |
| 60 | (bilinearInvariantSystem (fun i => (A i).map (algebraMap k K))).ker := by |
| 61 | ext Q |
| 62 | constructor |
| 63 | · rintro ⟨x, hx, rfl⟩ |
| 64 | rw [MatrixFlatExtension.Construction.submodule_baseChange_ker] at hx |
| 65 | change bilinearInvariantSystem _ (MatrixFlatExtension.Construction.matrixScalarExtension n x) = 0 |
| 66 | rw [← bilinearInvariantSystem_baseChange] |
| 67 | exact map_eq_zero_iff _ (TensorProduct.piScalarRight k K K (ι × Fin n × Fin n)).injective |>.mpr hx |
| 68 | · intro hQ |
| 69 | refine ⟨(MatrixFlatExtension.Construction.matrixScalarExtension n).symm Q, ?_, (MatrixFlatExtension.Construction.matrixScalarExtension n).apply_symm_apply Q⟩ |
| 70 | rw [MatrixFlatExtension.Construction.submodule_baseChange_ker] |
| 71 | change (bilinearInvariantSystem A).baseChange K ((MatrixFlatExtension.Construction.matrixScalarExtension n).symm Q) = 0 |
| 72 | apply (TensorProduct.piScalarRight k K K (ι × Fin n × Fin n)).injective |
| 73 | rw [map_zero, bilinearInvariantSystem_baseChange, LinearEquiv.apply_symm_apply] |
| 74 | exact hQ |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Bilinear.InvariantSystem.Construction |