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.AlgebraicGeometry.AbelianScheme.TateComparison.IntegralPairingLattices |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.TensorLattice |
| 3 | import Mathlib.LinearAlgebra.BilinearForm.TensorProduct |
| 4 | import Mathlib.LinearAlgebra.Matrix.BilinearForm |
| 5 | |
| 6 | /-! # Perfect Pairing Scalar Extension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PerfectPairingScalarExtension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Scalar extension of an integral perfect pairing is nondegenerate, |
| 13 | and the actual integral image is its own dual lattice. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable {R K V W I : Type*} [CommRing R] [Field K] [Algebra R K] |
| 18 | [AddCommGroup V] [Module R V] [AddCommGroup W] [Module R W] |
| 19 | [Fintype I] [DecidableEq I] |
| 20 | |
| 21 | theorem linearMap_matrix_det_unit_of_bijective |
| 22 | (bV : Module.Basis I R V) (bW : Module.Basis I R W) (f : V →ₗ[R] W) |
| 23 | (hf : Function.Bijective f) : IsUnit (LinearMap.toMatrix bV bW f).det := by |
| 24 | let e := LinearEquiv.ofBijective f hf |
| 25 | have hi : f.comp e.symm.toLinearMap = LinearMap.id := by |
| 26 | ext y |
| 27 | exact e.apply_symm_apply y |
| 28 | have hm : LinearMap.toMatrix bV bW f * LinearMap.toMatrix bW bV e.symm.toLinearMap = 1 := by |
| 29 | rw [← LinearMap.toMatrix_comp, hi, LinearMap.toMatrix_id] |
| 30 | have hd := congrArg Matrix.det hm |
| 31 | rw [Matrix.det_mul, Matrix.det_one] at hd |
| 32 | exact isUnit_iff_exists_inv.mpr ⟨_, hd⟩ |
| 33 | |
| 34 | theorem perfectBilinear_matrix_det_unit (b : Module.Basis I R V) |
| 35 | (B : LinearMap.BilinForm R V) (hB : B.IsPerfPair) : |
| 36 | IsUnit (LinearMap.BilinForm.toMatrix b B).det := by |
| 37 | let := hB |
| 38 | have hM : LinearMap.toMatrix b b.dualBasis B = (LinearMap.BilinForm.toMatrix b B).transpose := by |
| 39 | ext i j |
| 40 | simp only [LinearMap.toMatrix_apply, Module.Basis.dualBasis_repr, |
| 41 | LinearMap.BilinForm.toMatrix_apply, Matrix.transpose_apply] |
| 42 | have h := linearMap_matrix_det_unit_of_bijective b b.dualBasis B (LinearMap.IsPerfPair.bijective_left B) |
| 43 | rw [hM, Matrix.det_transpose] at h |
| 44 | exact h |
| 45 | |
| 46 | theorem integralBilinearBaseChange_matrix (b : Module.Basis I R V) (B : LinearMap.BilinForm R V) : |
| 47 | LinearMap.BilinForm.toMatrix (b.baseChange K) (B.baseChange K) = |
| 48 | (algebraMap R K).mapMatrix (LinearMap.BilinForm.toMatrix b B) := by |
| 49 | ext i j |
| 50 | simp only [LinearMap.BilinForm.toMatrix_apply, Module.Basis.baseChange_apply, |
| 51 | LinearMap.BilinForm.baseChange_tmul, one_mul, RingHom.mapMatrix_apply, Matrix.map_apply, |
| 52 | Algebra.algebraMap_eq_smul_one] |
| 53 | |
| 54 | theorem perfectBilinearBaseChange_nondegenerate (b : Module.Basis I R V) |
| 55 | (B : LinearMap.BilinForm R V) (hB : B.IsPerfPair) : (B.baseChange K).Nondegenerate := by |
| 56 | apply (LinearMap.BilinForm.nondegenerate_iff_det_ne_zero (b.baseChange K)).mpr |
| 57 | rw [integralBilinearBaseChange_matrix, ← RingHom.map_det] |
| 58 | exact ((perfectBilinear_matrix_det_unit b B hB).map (algebraMap R K)).ne_zero |
| 59 | |
| 60 | variable [IsDomain R] [Module.IsTorsionFree R K] |
| 61 | |
| 62 | theorem tensorIntegralImage_self_dual (b : Module.Basis I R V) |
| 63 | (B : LinearMap.BilinForm R V) (hB : B.IsPerfPair) |
| 64 | (hι : Function.Injective (TensorProduct.mk R K V 1)) : |
| 65 | (B.baseChange K).dualSubmodule (TensorProduct.mk R K V 1).range = |
| 66 | (TensorProduct.mk R K V 1).range := by |
| 67 | let L := (TensorProduct.mk R K V 1).range |
| 68 | let e : V ≃ₗ[R] L := LinearEquiv.ofInjective (TensorProduct.mk R K V 1) hι |
| 69 | have hval (y x : V) : (B.baseChange K) (e y).val (e x).val = algebraMap R K (B y x) := by |
| 70 | change (B.baseChange K) (1 ⊗ₜ[R] y) (1 ⊗ₜ[R] x) = _ |
| 71 | rw [LinearMap.BilinForm.baseChange_tmul, one_mul, Algebra.algebraMap_eq_smul_one] |
| 72 | let := hB |
| 73 | exact (IntegralPairingLattices.integralPairing_image_eq_dual (B.baseChange K) L L e e B hval |
| 74 | (LinearMap.IsPerfPair.bijective_left B) (perfectBilinearBaseChange_nondegenerate b B hB) |
| 75 | (TensorLattice.tensorIntegralImage_isLattice (K := K) b).span_eq_top).symm |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PerfectPairingScalarExtension |