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 Mathlib.LinearAlgebra.BilinearForm.TensorProduct |
| 2 | import Mathlib.LinearAlgebra.Matrix.BilinearForm |
| 3 | import Lean.Util.CollectAxioms |
| 4 | |
| 5 | /-! # Bilinear Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.BilinearBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Scalar extension preserves a finite-dimensional nondegenerate |
| 12 | alternating form and the adjoint equations of its actual linear maps. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | variable {F K V I : Type*} [Field F] [Field K] [Algebra F K] |
| 17 | [AddCommGroup V] [Module F V] [Fintype I] [DecidableEq I] |
| 18 | (b : Module.Basis I F V) (B : LinearMap.BilinForm F V) |
| 19 | |
| 20 | theorem bilinearBaseChange_matrix : |
| 21 | LinearMap.BilinForm.toMatrix (b.baseChange K) (B.baseChange K) = |
| 22 | (LinearMap.BilinForm.toMatrix b B).map (algebraMap F K) := by |
| 23 | ext i j |
| 24 | simp only [LinearMap.BilinForm.toMatrix_apply, Module.Basis.baseChange_apply, |
| 25 | LinearMap.BilinForm.baseChange_tmul, one_mul, Matrix.map_apply, |
| 26 | Algebra.algebraMap_eq_smul_one] |
| 27 | |
| 28 | include b |
| 29 | |
| 30 | theorem bilinearBaseChange_nondegenerate (hB : B.Nondegenerate) : |
| 31 | (B.baseChange K).Nondegenerate := by |
| 32 | apply (LinearMap.BilinForm.nondegenerate_iff_det_ne_zero (b.baseChange K)).mpr |
| 33 | rw [bilinearBaseChange_matrix b B] |
| 34 | change ((algebraMap F K).mapMatrix (LinearMap.BilinForm.toMatrix b B)).det ≠ 0 |
| 35 | rw [← RingHom.map_det] |
| 36 | intro hz |
| 37 | apply (LinearMap.BilinForm.nondegenerate_iff_det_ne_zero b).mp hB |
| 38 | apply (algebraMap F K).injective |
| 39 | exact hz.trans (map_zero (algebraMap F K)).symm |
| 40 | |
| 41 | omit [Fintype I] [DecidableEq I] in |
| 42 | theorem bilinearBaseChange_alternating [CharZero K] (hB : B.IsAlt) : |
| 43 | (B.baseChange K).IsAlt := by |
| 44 | apply LinearMap.isAlt_iff_eq_neg_flip.mpr |
| 45 | apply (b.baseChange K).ext |
| 46 | intro i |
| 47 | apply (b.baseChange K).ext |
| 48 | intro j |
| 49 | change (B.baseChange K) ((b.baseChange K) i) ((b.baseChange K) j) = |
| 50 | -(B.baseChange K) ((b.baseChange K) j) ((b.baseChange K) i) |
| 51 | simp only [Module.Basis.baseChange_apply, LinearMap.BilinForm.baseChange_tmul, one_mul] |
| 52 | rw [← hB.neg_eq, neg_smul] |
| 53 | |
| 54 | omit [Fintype I] [DecidableEq I] in |
| 55 | theorem bilinearBaseChange_adjoint (f g : V →ₗ[F] V) |
| 56 | (hfg : ∀ x y, B (f x) y = B x (g y)) (x y : K ⊗[F] V) : |
| 57 | B.baseChange K (f.baseChange K x) y = B.baseChange K x (g.baseChange K y) := by |
| 58 | have he : (B.baseChange K).compl₁₂ (f.baseChange K) LinearMap.id = |
| 59 | (B.baseChange K).compl₁₂ LinearMap.id (g.baseChange K) := by |
| 60 | apply (b.baseChange K).ext |
| 61 | intro i |
| 62 | apply (b.baseChange K).ext |
| 63 | intro j |
| 64 | change B.baseChange K (f.baseChange K ((b.baseChange K) i)) ((b.baseChange K) j) = |
| 65 | B.baseChange K ((b.baseChange K) i) (g.baseChange K ((b.baseChange K) j)) |
| 66 | simp only [Module.Basis.baseChange_apply, LinearMap.baseChange_tmul, |
| 67 | LinearMap.BilinForm.baseChange_tmul, one_mul, hfg] |
| 68 | exact LinearMap.congr_fun₂ he x y |
| 69 | |
| 70 | omit b [Fintype I] [DecidableEq I] in |
| 71 | theorem bilinearCongr_adjoint {W : Type*} [AddCommGroup W] [Module F W] |
| 72 | (e : V ≃ₗ[F] W) (f g : V →ₗ[F] V) (f' g' : W →ₗ[F] W) |
| 73 | (hf : f'.comp e.toLinearMap = e.toLinearMap.comp f) |
| 74 | (hg : g'.comp e.toLinearMap = e.toLinearMap.comp g) |
| 75 | (hfg : ∀ x y, B (f x) y = B x (g y)) (x y : W) : |
| 76 | LinearMap.BilinForm.congr e B (f' x) y = LinearMap.BilinForm.congr e B x (g' y) := by |
| 77 | obtain ⟨x, rfl⟩ := e.surjective x |
| 78 | obtain ⟨y, rfl⟩ := e.surjective y |
| 79 | have hfx : f' (e x) = e (f x) := LinearMap.congr_fun hf x |
| 80 | have hgy : g' (e y) = e (g y) := LinearMap.congr_fun hg y |
| 81 | rw [hfx, hgy] |
| 82 | simp only [LinearMap.BilinForm.congr_apply, LinearEquiv.symm_apply_apply] |
| 83 | exact hfg x y |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.BilinearBaseChange |