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.AbelianModuli.ReferenceFamily.Hermitian.Reconstruction |
| 2 | import Mathlib.LinearAlgebra.Matrix.SesquilinearForm |
| 3 | |
| 4 | /-! # Matrices -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Hermitian.Matrices.TraceReconstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Bundle the reconstructed Hermitian form and compute its actual |
| 11 | matrix in coordinates. Nondegeneracy gives a nonzero determinant. -/ |
| 12 | |
| 13 | variable {E V : Type*} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 14 | [AddCommGroup V] [Module ℚ V] [Module E V] [IsScalarTower ℚ E V] |
| 15 | |
| 16 | def hermitianForm (ξ : E) (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) : |
| 17 | V →ₗ[E] V →ₛₗ[(ComplexMultiplication.CM.TraceForm.cmFieldConjugation E).toRingHom] E where |
| 18 | toFun x := { |
| 19 | toFun := Reconstruction.TraceReconstruction.hermitianCoefficient ξ ψ x |
| 20 | map_add' y z := Reconstruction.TraceReconstruction.hermitianCoefficient_add_right ξ ψ x y z |
| 21 | map_smul' a y := Reconstruction.TraceReconstruction.hermitianCoefficient_smul_right ξ ψ hψ a x y } |
| 22 | map_add' x z := by ext y; exact Reconstruction.TraceReconstruction.hermitianCoefficient_add_left ξ ψ x z y |
| 23 | map_smul' a x := by ext y; exact Reconstruction.TraceReconstruction.hermitianCoefficient_smul_left ξ ψ a x y |
| 24 | |
| 25 | theorem hermitianForm_apply (ξ : E) (ψ : V →ₗ[ℚ] V →ₗ[ℚ] ℚ) |
| 26 | (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) (x y : V) : |
| 27 | hermitianForm ξ ψ hψ x y = Reconstruction.TraceReconstruction.hermitianCoefficient ξ ψ x y := rfl |
| 28 | |
| 29 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 30 | |
| 31 | def hermitianMatrix (ξ : E) (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) |
| 32 | (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) : Matrix ι ι E := |
| 33 | LinearMap.toMatrixₛₗ₂' E (hermitianForm ξ ψ hψ) |
| 34 | |
| 35 | theorem hermitianMatrix_apply (ξ : E) (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) |
| 36 | (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) (i j : ι) : |
| 37 | hermitianMatrix ξ ψ hψ i j = Reconstruction.TraceReconstruction.hermitianCoefficient ξ ψ (Pi.single i 1) (Pi.single j 1) := rfl |
| 38 | |
| 39 | theorem hermitianMatrix_symmetry (ξ : E) (hξ : ComplexMultiplication.CM.TraceForm.cmFieldConjugation E ξ = -ξ) |
| 40 | (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) |
| 41 | (hAlt : ∀ x, ψ x x = 0) (i j : ι) : |
| 42 | hermitianMatrix ξ ψ hψ i j = ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (hermitianMatrix ξ ψ hψ j i) := |
| 43 | (Reconstruction.TraceReconstruction.hermitianCoefficient_symmetry ξ hξ ψ hψ hAlt (Pi.single j 1) (Pi.single i 1)).symm |
| 44 | |
| 45 | theorem hermitianMatrix_evaluate (ξ : E) (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) |
| 46 | (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) (x y : ι → E) : |
| 47 | (∑ i, ∑ j, x i * hermitianMatrix ξ ψ hψ i j * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (y j)) = |
| 48 | Reconstruction.TraceReconstruction.hermitianCoefficient ξ ψ x y := by |
| 49 | have h := LinearMap.toLinearMap₂'Aux_toMatrix₂Aux E (hermitianForm ξ ψ hψ) |
| 50 | have he := congrArg (fun f => f x y) h |
| 51 | change (∑ i, ∑ j, ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (y j) * (x i * hermitianMatrix ξ ψ hψ i j)) = |
| 52 | Reconstruction.TraceReconstruction.hermitianCoefficient ξ ψ x y at he |
| 53 | rw [← he] |
| 54 | apply Finset.sum_congr rfl |
| 55 | intro i _ |
| 56 | apply Finset.sum_congr rfl |
| 57 | intro j _ |
| 58 | ring |
| 59 | |
| 60 | theorem hermitianMatrix_det_ne_zero (ξ : E) (hξ : ξ ≠ 0) |
| 61 | (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) |
| 62 | (hnd : ∀ x, (∀ y, ψ x y = 0) → x = 0) : (hermitianMatrix ξ ψ hψ).det ≠ 0 := by |
| 63 | apply Matrix.separatingLeft_iff_det_ne_zero.mp |
| 64 | apply Matrix.separatingLeft_def.mpr |
| 65 | intro x hx |
| 66 | apply Reconstruction.TraceReconstruction.hermitianCoefficient_nondegenerate ξ hξ ψ hnd x |
| 67 | intro y |
| 68 | rw [← hermitianMatrix_evaluate ξ ψ hψ x y] |
| 69 | have h := hx (fun j => ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (y j)) |
| 70 | simpa only [Matrix.mulVec, dotProduct, Finset.mul_sum, mul_assoc] using h |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Hermitian.Matrices.TraceReconstruction |