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.DiagonalQuadratic |
| 2 | import OAI.RepresentationTheory.Weil.Local.SymmetricSquareLift |
| 3 | |
| 4 | /-! # Diagonal Algebra -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.DiagonalAlgebra.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Nonsingular diagonal matrices, quadratic identities, and their Haar factors. -/ |
| 11 | |
| 12 | open _root_.Matrix |
| 13 | |
| 14 | def diagonalGeneralLinear {k : Type} [Field k] {n : ℕ} (a : Fin n → kˣ) : FunctionsMetaplectic.Construction.GeneralLinear k n where |
| 15 | val := diagonal (fun i => (a i).val) |
| 16 | inv := diagonal (fun i => ((a i)⁻¹).val) |
| 17 | val_inv := by simp [diagonal_mul_diagonal] |
| 18 | inv_val := by simp [diagonal_mul_diagonal] |
| 19 | |
| 20 | theorem diagonalGeneralLinear_inv {k : Type} [Field k] {n : ℕ} (a : Fin n → kˣ) : |
| 21 | (diagonalGeneralLinear a)⁻¹ = diagonalGeneralLinear (fun i => (a i)⁻¹) := by |
| 22 | apply Units.ext |
| 23 | rfl |
| 24 | |
| 25 | theorem diagonalGeneralLinear_inverse_mulVec {k : Type} [Field k] {n : ℕ} |
| 26 | (a : Fin n → kˣ) (x : FunctionsMetaplectic.Construction.Position k n) : |
| 27 | (diagonalGeneralLinear a)⁻¹.val *ᵥ x = fun i => x i / (a i).val := by |
| 28 | ext i |
| 29 | change (diagonal (fun i => ((a i)⁻¹).val) *ᵥ x) i = _ |
| 30 | rw [mulVec_diagonal, Units.val_inv_eq_inv_val, div_eq_mul_inv, mul_comm] |
| 31 | |
| 32 | theorem diagonal_quadratic_inverse_substitution {k : Type} [Field k] {n : ℕ} |
| 33 | (a : Fin n → kˣ) (x : FunctionsMetaplectic.Construction.Position k n) : |
| 34 | FunctionsMetaplectic.Construction.quadratic (diagonal fun i => (a i).val) (fun i => x i / (a i).val) = |
| 35 | FunctionsMetaplectic.Construction.quadratic (diagonal fun i => (a i).val⁻¹) x := by |
| 36 | rw [RealDiagonalFresnel.Construction.quadratic_diagonal, RealDiagonalFresnel.Construction.quadratic_diagonal] |
| 37 | apply Finset.sum_congr rfl |
| 38 | intro i _ |
| 39 | field_simp |
| 40 | |
| 41 | theorem diagonalGeneralLinear_determinant |
| 42 | {k : Type} [NormedField k] [LocallyCompactSpace k] [MeasurableSpace k] [BorelSpace k] |
| 43 | {n : ℕ} (a : Fin n → kˣ) : FunctionsMetaplectic.Construction.determinantUnit k (diagonalGeneralLinear a) = ∏ i, a i := by |
| 44 | apply Units.ext |
| 45 | simp [FunctionsMetaplectic.Construction.determinantUnit, diagonalGeneralLinear, det_diagonal] |
| 46 | |
| 47 | theorem localModulus_prod {k : Type} [NormedField k] [LocallyCompactSpace k] |
| 48 | [MeasurableSpace k] [BorelSpace k] {ι : Type} (s : Finset ι) (a : ι → kˣ) : |
| 49 | FunctionsMetaplectic.Construction.localModulus k (∏ i ∈ s, a i) = ∏ i ∈ s, FunctionsMetaplectic.Construction.localModulus k (a i) := by |
| 50 | classical |
| 51 | induction s using Finset.induction_on with |
| 52 | | empty => simp only [Finset.prod_empty, FunctionsMetaplectic.Construction.localModulus_one] |
| 53 | | @insert i s hi ih => rw [Finset.prod_insert hi, Finset.prod_insert hi, FunctionsMetaplectic.Construction.localModulus_mul, ih] |
| 54 | |
| 55 | theorem diagonalGeneralLinear_modulus |
| 56 | {k : Type} [NormedField k] [LocallyCompactSpace k] [MeasurableSpace k] [BorelSpace k] |
| 57 | {n : ℕ} (a : Fin n → kˣ) : |
| 58 | FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k (diagonalGeneralLinear a)) = ∏ i, FunctionsMetaplectic.Construction.localModulus k (a i) := by |
| 59 | rw [diagonalGeneralLinear_determinant, localModulus_prod] |
| 60 | |
| 61 | theorem diagonalGaussianCoefficient_eq |
| 62 | {k : Type} [NormedField k] [LocallyCompactSpace k] [MeasurableSpace k] [BorelSpace k] |
| 63 | {n : ℕ} (ψ : AddChar k ℂ) (a : Fin n → kˣ) : |
| 64 | DiagonalQuadratic.Construction.diagonalGaussianCoefficient ψ a = (∏ i, FunctionsMetaplectic.Construction.gaussianIndex k ψ (a i).val) * |
| 65 | ((Real.sqrt (FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k (diagonalGeneralLinear a))))⁻¹ : ℂ) := by |
| 66 | rw [DiagonalQuadratic.Construction.diagonalGaussianCoefficient, Finset.prod_mul_distrib, diagonalGeneralLinear_modulus, |
| 67 | Real.sqrt_prod _ (fun i _ => (FunctionsMetaplectic.Construction.localModulus_pos k (a i)).le)] |
| 68 | simp only [Complex.ofReal_prod, Finset.prod_inv_distrib] |
| 69 | |
| 70 | theorem diagonal_complete_square {k : Type} [Field k] [CharZero k] {n : ℕ} |
| 71 | (a : Fin n → kˣ) (x y : FunctionsMetaplectic.Construction.Position k n) : |
| 72 | FunctionsMetaplectic.Construction.quadratic (diagonal fun i => (a i).val) (y + fun i => x i / (a i).val) - |
| 73 | FunctionsMetaplectic.Construction.dot x (y + fun i => x i / (a i).val) = |
| 74 | FunctionsMetaplectic.Construction.quadratic (diagonal fun i => (a i).val) y - |
| 75 | FunctionsMetaplectic.Construction.quadratic (diagonal fun i => (a i).val⁻¹) x := by |
| 76 | simp only [RealDiagonalFresnel.Construction.quadratic_diagonal, FunctionsMetaplectic.Construction.dot, Pi.add_apply, ← Finset.sum_sub_distrib] |
| 77 | apply Finset.sum_congr rfl |
| 78 | intro i _ |
| 79 | field_simp |
| 80 | ring |
| 81 | |
| 82 | theorem diagonal_weyl_factorization {k : Type} [Field k] {n : ℕ} (a : Fin n → kˣ) : |
| 83 | Generators.Construction.quadraticSymplectic (k := k) ⟨-diagonal (fun i => ((a i)⁻¹).val), (isSymm_diagonal _).neg⟩ * |
| 84 | GenerationSymplectic.Construction.upperSymplectic ⟨diagonal (fun i => (a i).val), isSymm_diagonal _⟩ * |
| 85 | Generators.Construction.quadraticSymplectic ⟨-diagonal (fun i => ((a i)⁻¹).val), (isSymm_diagonal _).neg⟩ = |
| 86 | Generators.Construction.leviSymplectic (diagonalGeneralLinear a) * Generators.Construction.weylSymplectic k n := by |
| 87 | have hD : diagonal (fun i => (a i).val) * diagonal (fun i => ((a i)⁻¹).val) = 1 := |
| 88 | (diagonalGeneralLinear a).val_inv |
| 89 | have hDi : diagonal (fun i => ((a i)⁻¹).val) * diagonal (fun i => (a i).val) = 1 := |
| 90 | (diagonalGeneralLinear a).inv_val |
| 91 | apply Subtype.ext |
| 92 | change fromBlocks 1 0 (-diagonal fun i => ((a i)⁻¹).val) 1 * |
| 93 | fromBlocks 1 (diagonal fun i => (a i).val) 0 1 * |
| 94 | fromBlocks 1 0 (-diagonal fun i => ((a i)⁻¹).val) 1 = |
| 95 | (Generators.Construction.leviSymplectic (diagonalGeneralLinear a)).val * fromBlocks 0 1 (-1) 0 |
| 96 | rw [Generators.Construction.leviSymplectic_matrix] |
| 97 | change _ = fromBlocks (diagonal fun i => (a i).val) 0 0 |
| 98 | (diagonal fun i => ((a i)⁻¹).val)ᵀ * fromBlocks 0 1 (-1) 0 |
| 99 | rw [diagonal_transpose, fromBlocks_multiply, fromBlocks_multiply, fromBlocks_multiply] |
| 100 | simp only [mul_one, one_mul, zero_mul, mul_zero, zero_add, add_zero, neg_mul, mul_neg, |
| 101 | hD, hDi, add_neg_cancel, neg_add_cancel, neg_zero] |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.RepresentationTheory.Weil.Local.DiagonalAlgebra.Construction |