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.GaussianSquareCharacter |
| 2 | import OAI.RepresentationTheory.Weil.Local.TransposeSubstitution |
| 3 | |
| 4 | /-! # Gaussian Determinant Square -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.GaussianDeterminantSquare.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Squared diagonal Gaussian coefficients depend only on dimension and determinant. -/ |
| 11 | |
| 12 | open _root_.Matrix |
| 13 | |
| 14 | variable {k : Type} [NormedField k] [CompleteSpace k] [LocallyCompactSpace k] |
| 15 | [NonarchimedeanAddGroup k] [CharZero k] [MeasurableSpace k] [BorelSpace k] |
| 16 | (hnd : ¬ DiscreteTopology k) (ψ : AddChar k ℂ) (hu : ∀ t : k, ‖ψ t‖ = 1) |
| 17 | (hc : Continuous (fun t => ψ t)) (hn : ∃ t : k, ψ t ≠ 1) |
| 18 | (hns : ¬ ∃ t : k, t ^ 2 = -1) |
| 19 | |
| 20 | include hnd hu hc hn in |
| 21 | theorem gaussianIndex_sq_eq_character_mul (a : kˣ) : |
| 22 | FunctionsMetaplectic.Construction.gaussianIndex k ψ a.val ^ 2 = |
| 23 | (GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns a).val * FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ 2 := by |
| 24 | have hz : FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ≠ 0 := FunctionsMetaplectic.Construction.phase_ne_zero |
| 25 | (GaussianCompact.Construction.nonarchimedean_gaussian_limit_nonzero hnd ψ hu hc hn 1 one_ne_zero).2 |
| 26 | rw [GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter_apply, div_pow, div_mul_cancel₀ _ (pow_ne_zero 2 hz)] |
| 27 | |
| 28 | theorem gaussianIndex_product_sq {n : ℕ} (a : Fin n → kˣ) : |
| 29 | (∏ i, FunctionsMetaplectic.Construction.gaussianIndex k ψ (a i).val) ^ 2 = |
| 30 | (GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (∏ i, a i)).val * |
| 31 | FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n) := by |
| 32 | let χ : kˣ →* ℂ := (Units.coeHom ℂ).comp (GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns) |
| 33 | have he (i : Fin n) : FunctionsMetaplectic.Construction.gaussianIndex k ψ (a i).val ^ 2 = χ (a i) * FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ 2 := |
| 34 | gaussianIndex_sq_eq_character_mul hnd ψ hu hc hn hns (a i) |
| 35 | rw [← Finset.prod_pow] |
| 36 | simp_rw [he] |
| 37 | rw [Finset.prod_mul_distrib, ← map_prod χ, Finset.prod_const, Finset.card_univ, Fintype.card_fin, ← pow_mul] |
| 38 | rfl |
| 39 | |
| 40 | theorem diagonalGaussianCoefficient_square {n : ℕ} (a : Fin n → kˣ) : |
| 41 | DiagonalQuadratic.Construction.diagonalGaussianCoefficient ψ a ^ 2 = |
| 42 | (FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n) * |
| 43 | (GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a))).val) / |
| 44 | (FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a)) : ℂ) := by |
| 45 | let d := FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a)) |
| 46 | have hd : 0 < d := FunctionsMetaplectic.Construction.localModulus_pos k _ |
| 47 | have hs : ((Real.sqrt d : ℂ)⁻¹) ^ 2 = (d : ℂ)⁻¹ := by |
| 48 | rw [inv_pow, ← Complex.ofReal_pow, Real.sq_sqrt hd.le] |
| 49 | rw [DiagonalAlgebra.Construction.diagonalGaussianCoefficient_eq, mul_pow, gaussianIndex_product_sq hnd ψ hu hc hn hns a] |
| 50 | change (_ * FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n)) * ((Real.sqrt d : ℂ)⁻¹) ^ 2 = _ |
| 51 | rw [hs, DiagonalAlgebra.Construction.diagonalGeneralLinear_determinant, div_eq_mul_inv] |
| 52 | dsimp only [d] |
| 53 | rw [DiagonalAlgebra.Construction.diagonalGeneralLinear_determinant] |
| 54 | ring |
| 55 | |
| 56 | omit [CompleteSpace k] [NonarchimedeanAddGroup k] [CharZero k] in |
| 57 | theorem determinantUnit_congruence {n : ℕ} (M A : FunctionsMetaplectic.Construction.GeneralLinear k n) (a : Fin n → kˣ) |
| 58 | (h : A.val.transpose * M.val * A.val = diagonal (fun i => (a i).val)) : |
| 59 | FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a) = FunctionsMetaplectic.Construction.determinantUnit k A ^ 2 * FunctionsMetaplectic.Construction.determinantUnit k M := by |
| 60 | have he : TransposeSubstitution.Construction.transposeGeneralLinear A * M * A = DiagonalAlgebra.Construction.diagonalGeneralLinear a := Units.ext h |
| 61 | rw [← he, LinearOscillatorHom.Construction.determinantUnit_mul, LinearOscillatorHom.Construction.determinantUnit_mul, TransposeSubstitution.Construction.determinantUnit_transpose, pow_two] |
| 62 | ac_rfl |
| 63 | |
| 64 | omit [CompleteSpace k] [NonarchimedeanAddGroup k] [CharZero k] in |
| 65 | theorem localModulus_congruence {n : ℕ} (M A : FunctionsMetaplectic.Construction.GeneralLinear k n) (a : Fin n → kˣ) |
| 66 | (h : A.val.transpose * M.val * A.val = diagonal (fun i => (a i).val)) : |
| 67 | FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a)) = |
| 68 | FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k A) ^ 2 * FunctionsMetaplectic.Construction.localModulus k (FunctionsMetaplectic.Construction.determinantUnit k M) := by |
| 69 | rw [determinantUnit_congruence M A a h, pow_two, FunctionsMetaplectic.Construction.localModulus_mul, FunctionsMetaplectic.Construction.localModulus_mul] |
| 70 | ring |
| 71 | |
| 72 | theorem gaussianSquareCharacter_congruence {n : ℕ} (M A : FunctionsMetaplectic.Construction.GeneralLinear k n) (a : Fin n → kˣ) |
| 73 | (h : A.val.transpose * M.val * A.val = diagonal (fun i => (a i).val)) : |
| 74 | GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (FunctionsMetaplectic.Construction.determinantUnit k (DiagonalAlgebra.Construction.diagonalGeneralLinear a)) = |
| 75 | GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (FunctionsMetaplectic.Construction.determinantUnit k M) := by |
| 76 | rw [determinantUnit_congruence M A a h, map_mul, map_pow, |
| 77 | GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter_square, one_mul] |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.RepresentationTheory.Weil.Local.GaussianDeterminantSquare.Construction |