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.Hecke.RadialDilation.QuadraticCommutator |
| 2 | |
| 3 | /-! # Rational Symmetric Generation -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.RationalSymmetricGeneration.Realization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Rational general linear matrices are generated by symmetric invertible matrices. -/ |
| 10 | |
| 11 | open scoped Classical _root_.Matrix |
| 12 | open _root_.Matrix |
| 13 | |
| 14 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 15 | |
| 16 | def rationalSwapMatrix (i j : ι) : (Matrix ι ι ℚ)ˣ where |
| 17 | val := (Equiv.swap i j).permMatrix ℚ |
| 18 | inv := (Equiv.swap i j).permMatrix ℚ |
| 19 | val_inv := by rw [← Matrix.permMatrix_mul]; simp |
| 20 | inv_val := by rw [← Matrix.permMatrix_mul]; simp |
| 21 | |
| 22 | theorem rationalSwapMatrix_symmetric (i j : ι) : (rationalSwapMatrix i j).val.IsSymm := by |
| 23 | change ((Equiv.swap i j).permMatrix ℚ).transpose = (Equiv.swap i j).permMatrix ℚ |
| 24 | rw [Matrix.transpose_permMatrix] |
| 25 | simp |
| 26 | |
| 27 | theorem rationalSwapMatrix_square (i j : ι) : rationalSwapMatrix i j * rationalSwapMatrix i j = 1 := by |
| 28 | apply Units.ext |
| 29 | change (Equiv.swap i j).permMatrix ℚ * (Equiv.swap i j).permMatrix ℚ = 1 |
| 30 | rw [← Matrix.permMatrix_mul] |
| 31 | simp |
| 32 | |
| 33 | theorem rational_transvection_mul_swap (t : Matrix.TransvectionStruct ι ℚ) : |
| 34 | t.toMatrix * (rationalSwapMatrix t.i t.j).val = |
| 35 | (rationalSwapMatrix t.i t.j).val + Matrix.single t.i t.i t.c := by |
| 36 | rw [TransvectionStruct.toMatrix, Matrix.transvection, Matrix.add_mul, Matrix.one_mul] |
| 37 | congr 1 |
| 38 | ext a b |
| 39 | by_cases ha : a = t.i |
| 40 | · subst a |
| 41 | rw [Matrix.single_mul_apply_same] |
| 42 | simp [rationalSwapMatrix, PEquiv.toMatrix, Equiv.toPEquiv_apply, Matrix.single] |
| 43 | · rw [Matrix.single_mul_apply_of_ne t.c t.i t.j a b ha] |
| 44 | simp [Matrix.single, Ne.symm ha] |
| 45 | |
| 46 | theorem rational_transvection_mul_swap_symmetric (t : Matrix.TransvectionStruct ι ℚ) : |
| 47 | (t.toMatrix * (rationalSwapMatrix t.i t.j).val).IsSymm := by |
| 48 | rw [rational_transvection_mul_swap] |
| 49 | apply (rationalSwapMatrix_symmetric t.i t.j).add |
| 50 | change (Matrix.single t.i t.i t.c).transpose = Matrix.single t.i t.i t.c |
| 51 | simp |
| 52 | |
| 53 | theorem rationalGL_generated_by_symmetric (H : Subgroup (Matrix ι ι ℚ)ˣ) |
| 54 | (hSym : ∀ A : (Matrix ι ι ℚ)ˣ, A.val.IsSymm → A ∈ H) : H = ⊤ := by |
| 55 | apply top_unique |
| 56 | intro U _ |
| 57 | have hp : ∀ M : Matrix ι ι ℚ, M.det ≠ 0 → |
| 58 | ∀ A : (Matrix ι ι ℚ)ˣ, A.val = M → A ∈ H := by |
| 59 | intro M hM |
| 60 | apply Matrix.diagonal_transvection_induction_of_det_ne_zero |
| 61 | (fun M => ∀ A : (Matrix ι ι ℚ)ˣ, A.val = M → A ∈ H) M hM |
| 62 | · intro D _ A hA |
| 63 | apply hSym A |
| 64 | rw [hA] |
| 65 | exact Matrix.isSymm_diagonal D |
| 66 | · intro t A hA |
| 67 | have hAP : A * rationalSwapMatrix t.i t.j ∈ H := by |
| 68 | apply hSym |
| 69 | change (A.val * (rationalSwapMatrix t.i t.j).val).IsSymm |
| 70 | rw [hA] |
| 71 | exact rational_transvection_mul_swap_symmetric t |
| 72 | have hP := hSym _ (rationalSwapMatrix_symmetric t.i t.j) |
| 73 | have h := H.mul_mem hAP hP |
| 74 | rwa [mul_assoc, rationalSwapMatrix_square, mul_one] at h |
| 75 | · intro M N hM hN ihM ihN A hA |
| 76 | obtain ⟨B, hB⟩ := (Matrix.isUnit_iff_isUnit_det M).mpr (isUnit_iff_ne_zero.mpr hM) |
| 77 | obtain ⟨C, hC⟩ := (Matrix.isUnit_iff_isUnit_det N).mpr (isUnit_iff_ne_zero.mpr hN) |
| 78 | have heq : A = B * C := by |
| 79 | apply Units.ext |
| 80 | rw [hA, Units.val_mul, hB, hC] |
| 81 | rw [heq] |
| 82 | exact H.mul_mem (ihM B hB) (ihN C hC) |
| 83 | exact hp U.val ((Matrix.isUnit_iff_isUnit_det U.val).mp U.isUnit).ne_zero U rfl |
| 84 | |
| 85 | def rationalLeviHom : (Matrix ι ι ℚ)ˣ →* Theta.PoissonAutomorphyNormalizationData.Sp ι ℚ where |
| 86 | toFun := QuadraticCommutator.Realization.ringLevi |
| 87 | map_one' := by |
| 88 | apply Subtype.ext |
| 89 | simp [QuadraticCommutator.Realization.ringLevi] |
| 90 | map_mul' A B := by |
| 91 | apply Subtype.ext |
| 92 | change (QuadraticCommutator.Realization.ringLevi (A * B)).val = (QuadraticCommutator.Realization.ringLevi A).val * (QuadraticCommutator.Realization.ringLevi B).val |
| 93 | simp [QuadraticCommutator.Realization.ringLevi, _root_.mul_inv_rev, Matrix.transpose_mul, Matrix.fromBlocks_multiply] |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.RepresentationTheory.Hecke.RadialDilation.RationalSymmetricGeneration.Realization |