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.UnitarySplitting.HermitianGaussianDiscriminant |
| 2 | |
| 3 | /-! # Gaussian Discriminant -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.GaussianDiscriminant.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The Hermitian matrix representing the Gaussian in a generic unitary |
| 12 | product, expressed as a congruence of the inverse product form. -/ |
| 13 | |
| 14 | open _root_.Matrix |
| 15 | |
| 16 | variable {F E : Type} [Field F] [Field E] [Algebra F E] |
| 17 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 18 | variable (σ : E ≃ₐ[F] E) |
| 19 | |
| 20 | omit [Fintype I] [DecidableEq I] in |
| 21 | theorem adjointMatrix_base_smul (a : F) (A : Matrix I I E) : |
| 22 | DualPair.Construction.adjointMatrix σ ((algebraMap F E a) • A) = (algebraMap F E a) • DualPair.Construction.adjointMatrix σ A := by |
| 23 | ext i j |
| 24 | change σ (algebraMap F E a * A j i) = algebraMap F E a * σ (A j i) |
| 25 | rw [map_mul, σ.commutes] |
| 26 | |
| 27 | def unitaryProductGaussianMatrix (Q : Matrix I I E) (g h : DualPair.Construction.unitaryGroup σ Q) : Matrix I I E := |
| 28 | (algebraMap F E (1 / 2)) • |
| 29 | (DualPair.Construction.adjointMatrix σ Q * (CayleyProduct.Construction.unitaryProductForm σ Q g h)⁻¹ * Q) |
| 30 | |
| 31 | variable [CharZero F] |
| 32 | variable (Q : Matrix I I E) (hQ : Q.det ≠ 0) (hskew : DualPair.Construction.adjointMatrix σ Q = -Q) |
| 33 | variable (g h : DualPair.Construction.unitaryGroup σ Q) |
| 34 | variable (hg : g ∈ Generic.Construction.unitaryGenericDomain σ Q) (hh : h ∈ Generic.Construction.unitaryGenericDomain σ Q) |
| 35 | variable (hgh : g * h ∈ Generic.Construction.unitaryGenericDomain σ Q) |
| 36 | |
| 37 | include hQ hskew hg hh hgh in |
| 38 | theorem unitaryProductGaussianMatrix_hermitian (hσ : Function.Involutive σ) : |
| 39 | DualPair.Construction.adjointMatrix σ (unitaryProductGaussianMatrix σ Q g h) = unitaryProductGaussianMatrix σ Q g h := by |
| 40 | have hS := CayleyProduct.Construction.unitaryProductForm_hermitian σ hσ Q hQ hskew g h hg hh hgh |
| 41 | have hSn := CayleyProduct.Construction.unitaryProductForm_nondegenerate σ Q hQ g h hg hh hgh |
| 42 | rw [unitaryProductGaussianMatrix, adjointMatrix_base_smul, DualPair.Construction.adjointMatrix_mul, DualPair.Construction.adjointMatrix_mul, |
| 43 | TracePairing.Construction.adjointMatrix_involutive σ hσ, CayleyProduct.Construction.adjointMatrix_nonsing_inv σ _ hSn, hS, mul_assoc] |
| 44 | |
| 45 | include hQ hg hh hgh in |
| 46 | theorem unitaryProductGaussianMatrix_nondegenerate : |
| 47 | (unitaryProductGaussianMatrix σ Q g h).det ≠ 0 := by |
| 48 | have ha : algebraMap F E (1 / 2 : F) ≠ 0 := |
| 49 | (map_ne_zero (algebraMap F E)).mpr (one_div_ne_zero (two_ne_zero : (2 : F) ≠ 0)) |
| 50 | rw [unitaryProductGaussianMatrix, Matrix.det_smul, Matrix.det_mul, Matrix.det_mul, |
| 51 | TracePairing.Construction.adjointMatrix_det, Matrix.det_nonsing_inv, Ring.inverse_eq_inv] |
| 52 | exact mul_ne_zero (pow_ne_zero _ ha) |
| 53 | (mul_ne_zero (mul_ne_zero ((map_ne_zero σ).mpr hQ) |
| 54 | (inv_ne_zero (CayleyProduct.Construction.unitaryProductForm_nondegenerate σ Q hQ g h hg hh hgh))) hQ) |
| 55 | |
| 56 | include hQ hskew hg hh hgh in |
| 57 | omit [CharZero F] in |
| 58 | theorem unitaryProductGaussianMatrix_expansion : |
| 59 | unitaryProductGaussianMatrix σ Q g h = |
| 60 | -(algebraMap F E (1 / 2)) • |
| 61 | (Q * (1 + ((g.val : Matrix I I E) - 1)⁻¹ + ((h.val : Matrix I I E) - 1)⁻¹)) := by |
| 62 | rw [unitaryProductGaussianMatrix, hskew, CayleyProduct.Construction.unitaryProductForm_inverse σ Q hQ g h hg hh hgh] |
| 63 | rw [mul_assoc, mul_assoc, Matrix.nonsing_inv_mul _ (isUnit_iff_ne_zero.mpr hQ), mul_one, |
| 64 | neg_mul, smul_neg, neg_smul] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | /-! The determinant character of the product Gaussian differs from that |
| 69 | of the unitary product form by one fixed half-scalar per dimension. -/ |
| 70 | |
| 71 | open _root_.Matrix |
| 72 | |
| 73 | theorem quadraticCharacter_inv |
| 74 | {F E : Type} [NormedField F] [NormedField E] [Algebra F E] [FiniteDimensional F E] |
| 75 | (hQuadratic : Module.finrank F E = 2) (ω : Fˣ →ₜ* Circle) |
| 76 | (hω : Characters.Construction.IsExtensionQuadraticCharacter (E := E) ω) (b : Fˣ) : (ω b)⁻¹ = ω b := by |
| 77 | have hh := congrArg (fun z : Circle => z * (ω b)⁻¹) (Characters.Construction.quadraticCharacter_square hQuadratic ω hω b) |
| 78 | simp only [pow_two, mul_assoc, mul_inv_cancel, mul_one, one_mul] at hh |
| 79 | exact hh.symm |
| 80 | |
| 81 | theorem unitaryProductGaussianMatrix_discriminant |
| 82 | {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 83 | [FiniteDimensional F E] [CharZero F] |
| 84 | (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) (hne : ∃ z : E, σ z ≠ z) |
| 85 | (ω : Fˣ →ₜ* Circle) (hω : Characters.Construction.IsExtensionQuadraticCharacter (E := E) ω) |
| 86 | {d : ℕ} (Q : Matrix (Fin d) (Fin d) E) (hQ : Q.det ≠ 0) |
| 87 | (g h : DualPair.Construction.unitaryGroup σ Q) (b : Fˣ) |
| 88 | (hb : algebraMap F E (b : F) = (CayleyProduct.Construction.unitaryProductForm σ Q g h).det) : |
| 89 | ∃ a : Fˣ, algebraMap F E (a : F) = (unitaryProductGaussianMatrix σ Q g h).det ∧ |
| 90 | ω a = ω (Units.mk0 (1 / 2 : F) (one_div_ne_zero two_ne_zero)) ^ d * ω b := by |
| 91 | let t : Eˣ := TensorUnitary.Construction.matrixDetUnit (Q.nonsingInvUnit (isUnit_iff_ne_zero.mpr hQ)) |
| 92 | let s : Fˣ := Units.mk0 (1 / 2 : F) (one_div_ne_zero two_ne_zero) |
| 93 | let a := s ^ d * Units.map (Algebra.norm F) t * b⁻¹ |
| 94 | refine ⟨a, ?_, ?_⟩ |
| 95 | · dsimp only [a] |
| 96 | simp only [Units.val_mul, Units.val_pow_eq_pow_val, Units.coe_map, Units.val_inv_eq_inv_val] |
| 97 | change algebraMap F E ((1 / 2 : F) ^ d * Algebra.norm F (t : E) * (b : F)⁻¹) = _ |
| 98 | rw [map_mul, map_mul, map_pow, map_inv₀, hb, QuadraticNorm.Construction.quadratic_norm_formula hQuadratic σ hne, |
| 99 | unitaryProductGaussianMatrix, Matrix.det_smul, Matrix.det_mul, Matrix.det_mul, |
| 100 | TracePairing.Construction.adjointMatrix_det, Matrix.det_nonsing_inv, Ring.inverse_eq_inv, Fintype.card_fin] |
| 101 | change (algebraMap F E (1 / 2)) ^ d * (Q.det * σ Q.det) * |
| 102 | (CayleyProduct.Construction.unitaryProductForm σ Q g h).det⁻¹ = |
| 103 | (algebraMap F E (1 / 2)) ^ d * (σ Q.det * (CayleyProduct.Construction.unitaryProductForm σ Q g h).det⁻¹ * Q.det) |
| 104 | ring |
| 105 | · have ht : ω (Units.map (Algebra.norm F) t) = 1 := (hω _).mpr ⟨t, rfl⟩ |
| 106 | change ω (s ^ d * Units.map (Algebra.norm F) t * b⁻¹) = ω s ^ d * ω b |
| 107 | rw [map_mul, map_mul, map_pow, ht, mul_one, map_inv, |
| 108 | quadraticCharacter_inv hQuadratic ω hω] |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.RepresentationTheory.Weil.UnitarySplitting.GaussianDiscriminant.Construction |