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.Matrices |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.TraceIsometries |
| 3 | |
| 4 | /-! # Isometry Determinant -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Hermitian.IsometryDeterminant.TraceReconstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Isometries of the reconstructed form have CM norm-one determinant. |
| 11 | The calculation uses the actual reconstructed matrix, and works for all |
| 12 | nondegenerate rational forms with the CM adjoint relation. -/ |
| 13 | |
| 14 | variable {E ι : Type*} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 15 | [Fintype ι] [DecidableEq ι] |
| 16 | |
| 17 | def matrixPairing (H : Matrix ι ι E) (x y : ι → E) : E := |
| 18 | ∑ i, ∑ j, x i * H i j * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (y j) |
| 19 | |
| 20 | theorem matrixPairing_basis (H : Matrix ι ι E) (i j : ι) : |
| 21 | matrixPairing H (Pi.single i 1) (Pi.single j 1) = H i j := by |
| 22 | classical |
| 23 | simp [matrixPairing, Pi.single_apply] |
| 24 | |
| 25 | theorem matrixPairing_isometry_equation (H : Matrix ι ι E) (g : (ι → E) ≃ₗ[E] (ι → E)) |
| 26 | (hg : ∀ x y, matrixPairing H (g x) (g y) = matrixPairing H x y) : |
| 27 | (LinearMap.toMatrix' g.toLinearMap).transpose * H * |
| 28 | (LinearMap.toMatrix' g.toLinearMap).map (ComplexMultiplication.CM.TraceForm.cmFieldConjugation E) = H := by |
| 29 | ext i j |
| 30 | have h := (hg (Pi.single i 1) (Pi.single j 1)).trans (matrixPairing_basis H i j) |
| 31 | simp only [Matrix.mul_apply, Matrix.transpose_apply, Matrix.map_apply, Finset.sum_mul] |
| 32 | rw [Finset.sum_comm] |
| 33 | exact h |
| 34 | |
| 35 | theorem matrixPairing_isometry_det_norm_one (H : Matrix ι ι E) (hH : H.det ≠ 0) |
| 36 | (g : (ι → E) ≃ₗ[E] (ι → E)) |
| 37 | (hg : ∀ x y, matrixPairing H (g x) (g y) = matrixPairing H x y) : |
| 38 | LinearMap.det g.toLinearMap * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (LinearMap.det g.toLinearMap) = 1 := by |
| 39 | have h := congrArg Matrix.det (matrixPairing_isometry_equation H g hg) |
| 40 | have hm : ((LinearMap.toMatrix' g.toLinearMap).map (ComplexMultiplication.CM.TraceForm.cmFieldConjugation E)).det = |
| 41 | ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (LinearMap.toMatrix' g.toLinearMap).det := |
| 42 | ((ComplexMultiplication.CM.TraceForm.cmFieldConjugation E).toRingHom.map_det _).symm |
| 43 | rw [Matrix.det_mul, Matrix.det_mul, Matrix.det_transpose, hm, LinearMap.det_toMatrix'] at h |
| 44 | apply mul_right_cancel₀ hH |
| 45 | calc |
| 46 | (LinearMap.det g.toLinearMap * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (LinearMap.det g.toLinearMap)) * H.det = |
| 47 | LinearMap.det g.toLinearMap * H.det * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (LinearMap.det g.toLinearMap) := by ring |
| 48 | _ = H.det := h |
| 49 | _ = 1 * H.det := (one_mul _).symm |
| 50 | |
| 51 | theorem rational_isometry_det_norm_one (ξ : E) (hξ : ξ ≠ 0) |
| 52 | (ψ : (ι → E) →ₗ[ℚ] (ι → E) →ₗ[ℚ] ℚ) (hψ : Reconstruction.TraceReconstruction.RosatiBalanced (E := E) ψ) |
| 53 | (hnd : ∀ x, (∀ y, ψ x y = 0) → x = 0) (g : (ι → E) ≃ₗ[E] (ι → E)) |
| 54 | (hg : ∀ x y, ψ (g x) (g y) = ψ x y) : |
| 55 | LinearMap.det g.toLinearMap * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (LinearMap.det g.toLinearMap) = 1 := by |
| 56 | apply matrixPairing_isometry_det_norm_one (Matrices.TraceReconstruction.hermitianMatrix ξ ψ hψ) |
| 57 | (Matrices.TraceReconstruction.hermitianMatrix_det_ne_zero ξ hξ ψ hψ hnd) g |
| 58 | intro x y |
| 59 | change (∑ i, ∑ j, g x i * Matrices.TraceReconstruction.hermitianMatrix ξ ψ hψ i j * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (g y j)) = |
| 60 | ∑ i, ∑ j, x i * Matrices.TraceReconstruction.hermitianMatrix ξ ψ hψ i j * ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (y j) |
| 61 | rw [Matrices.TraceReconstruction.hermitianMatrix_evaluate, Matrices.TraceReconstruction.hermitianMatrix_evaluate] |
| 62 | exact (TraceIsometries.TraceReconstruction.hermitianCoefficient_isometry_iff ξ hξ ψ ψ g.toLinearMap).mpr hg x y |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Hermitian.IsometryDeterminant.TraceReconstruction |