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.RepresentationTheory.Weil.Local.FieldFourier |
| 2 | |
| 3 | /-! # Field Generator Matrices -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local.FieldGeneratorMatrices.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Generator matrices, determinants, and coordinates under a field isomorphism. -/ |
| 10 | |
| 11 | open _root_.Matrix |
| 12 | |
| 13 | variable {k l : Type} [Field k] [Field l] |
| 14 | |
| 15 | def fieldGeneralLinear (e : k ≃+* l) (n : ℕ) : FunctionsMetaplectic.Construction.GeneralLinear k n →* FunctionsMetaplectic.Construction.GeneralLinear l n := |
| 16 | Units.map e.toRingHom.mapMatrix.toMonoidHom |
| 17 | |
| 18 | def fieldSymmetricMatrix (e : k ≃+* l) {n : ℕ} (B : FunctionsMetaplectic.Construction.SymmetricMatrix k n) : FunctionsMetaplectic.Construction.SymmetricMatrix l n := |
| 19 | ⟨B.val.map e, B.property.map e⟩ |
| 20 | |
| 21 | theorem fieldGeneralLinear_val (e : k ≃+* l) {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear k n) : |
| 22 | (fieldGeneralLinear e n A : Matrix (Fin n) (Fin n) l) = A.val.map e := rfl |
| 23 | |
| 24 | theorem fieldSymplecticMap_levi (e : k ≃+* l) {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear k n) : |
| 25 | FieldFourier.Construction.fieldSymplecticMap e n (Generators.Construction.leviSymplectic A) = Generators.Construction.leviSymplectic (fieldGeneralLinear e n A) := by |
| 26 | apply Subtype.ext |
| 27 | change (fromBlocks A.val 0 0 (↑(A⁻¹) : Matrix (Fin n) (Fin n) k).transpose).map e = |
| 28 | fromBlocks (A.val.map e) 0 0 ((↑(A⁻¹) : Matrix (Fin n) (Fin n) k).map e).transpose |
| 29 | ext i j |
| 30 | rcases i with i | i <;> rcases j with j | j <;> simp [fromBlocks] |
| 31 | |
| 32 | theorem fieldSymplecticMap_quadratic (e : k ≃+* l) {n : ℕ} (B : FunctionsMetaplectic.Construction.SymmetricMatrix k n) : |
| 33 | FieldFourier.Construction.fieldSymplecticMap e n (Generators.Construction.quadraticSymplectic B) = Generators.Construction.quadraticSymplectic (fieldSymmetricMatrix e B) := by |
| 34 | apply Subtype.ext |
| 35 | change (fromBlocks 1 0 B.val 1).map e = fromBlocks 1 0 (B.val.map e) 1 |
| 36 | ext i j |
| 37 | rcases i with i | i <;> rcases j with j | j <;> simp [fromBlocks, Matrix.one_apply] |
| 38 | |
| 39 | theorem fieldSymplecticMap_weyl (e : k ≃+* l) (n : ℕ) : |
| 40 | FieldFourier.Construction.fieldSymplecticMap e n (Generators.Construction.weylSymplectic k n) = Generators.Construction.weylSymplectic l n := by |
| 41 | apply Subtype.ext |
| 42 | change (↑(Generators.Construction.weylSymplectic k n) : Matrix (Fin n ⊕ Fin n) (Fin n ⊕ Fin n) k).map e = |
| 43 | (↑(Generators.Construction.weylSymplectic l n) : Matrix (Fin n ⊕ Fin n) (Fin n ⊕ Fin n) l) |
| 44 | rw [Generators.Construction.weylSymplectic_matrix, Generators.Construction.weylSymplectic_matrix] |
| 45 | ext i j |
| 46 | rcases i with i | i <;> rcases j with j | j <;> simp [fromBlocks, Matrix.one_apply] |
| 47 | |
| 48 | theorem fieldGeneralLinear_determinant |
| 49 | {k l : Type} [NormedField k] [NormedField l] |
| 50 | (e : k ≃+* l) {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear k n) : |
| 51 | FunctionsMetaplectic.Construction.determinantUnit l (fieldGeneralLinear e n A) = Units.map e.toMonoidHom (FunctionsMetaplectic.Construction.determinantUnit k A) := by |
| 52 | apply Units.ext |
| 53 | change det (A.val.map e) = e (det A.val) |
| 54 | exact (RingHom.map_det e.toRingHom A.val).symm |
| 55 | |
| 56 | theorem fieldGeneralLinear_inverse_mulVec (e : k ≃+* l) {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear k n) |
| 57 | (x : FunctionsMetaplectic.Construction.Position k n) : |
| 58 | (fun i => e.symm (mulVec (↑((fieldGeneralLinear e n A)⁻¹) : Matrix (Fin n) (Fin n) l) |
| 59 | (fun j => e (x j)) i)) = mulVec (↑(A⁻¹) : Matrix (Fin n) (Fin n) k) x := by |
| 60 | ext i |
| 61 | change e.symm (∑ j, e ((↑(A⁻¹) : Matrix (Fin n) (Fin n) k) i j) * e (x j)) = |
| 62 | ∑ j, (↑(A⁻¹) : Matrix (Fin n) (Fin n) k) i j * x j |
| 63 | rw [map_sum] |
| 64 | simp only [map_mul, RingEquiv.symm_apply_apply] |
| 65 | |
| 66 | theorem fieldSymmetricMatrix_quadratic (e : k ≃+* l) {n : ℕ} (B : FunctionsMetaplectic.Construction.SymmetricMatrix k n) |
| 67 | (x : FunctionsMetaplectic.Construction.Position k n) : |
| 68 | e.symm ((∑ i, ∑ j, e (x i) * (fieldSymmetricMatrix e B).val i j * e (x j)) / 2) = |
| 69 | (∑ i, ∑ j, x i * B.val i j * x j) / 2 := by |
| 70 | simp only [map_div₀, map_sum, map_mul, map_ofNat, fieldSymmetricMatrix, Matrix.map_apply, |
| 71 | RingEquiv.symm_apply_apply] |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.RepresentationTheory.Weil.Local.FieldGeneratorMatrices.Construction |