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.HilbertConstruction.Chart.CoordinatePermutations |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Grassmann.FrameDeterminants |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quotient.ChartTransitions |
| 4 | |
| 5 | /-! # Overlap Matrices -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Chart.OverlapMatrices |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The square matrices defining overlaps of permuted Grassmannian quotient charts. -/ |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {R : Type u} {B : Type v} [CommRing R] [CommRing B] {k l : ℕ} |
| 16 | |
| 17 | /-- The normalized projection associated with a rectangular matrix. -/ |
| 18 | def chartMatrixProjection (M : Matrix (Fin k) (Fin l) R) : |
| 19 | ((Fin k → R) × (Fin l → R)) →ₗ[R] (Fin k → R) := LinearMap.id.coprod M.mulVecLin |
| 20 | |
| 21 | /-- The new first block after an ambient coordinate permutation. -/ |
| 22 | def chartOverlapMatrix (M : Matrix (Fin k) (Fin l) R) (τ : Equiv.Perm (Fin k ⊕ Fin l)) : |
| 23 | Matrix (Fin k) (Fin k) R := |
| 24 | LinearMap.toMatrix' ((chartMatrixProjection M).comp |
| 25 | ((CoordinatePermutations.chartCoordinatePermutation R τ).toLinearMap.comp (LinearMap.inl R (Fin k → R) (Fin l → R)))) |
| 26 | |
| 27 | theorem chartMatrixProjection_naturality (φ : R →+* B) (M : Matrix (Fin k) (Fin l) R) |
| 28 | (x : (Fin k → R) × (Fin l → R)) : |
| 29 | HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap φ k (chartMatrixProjection M x) = |
| 30 | chartMatrixProjection (M.map φ) (HilbertConstruction.Matrix.ChartBaseChange.chartPairMap φ k l x) := by |
| 31 | ext i |
| 32 | change φ (x.1 i + (M.mulVec x.2) i) = φ (x.1 i) + |
| 33 | ((M.map φ).mulVec (fun j => φ (x.2 j))) i |
| 34 | rw [map_add, RingHom.map_mulVec] |
| 35 | rfl |
| 36 | |
| 37 | theorem chartVectorMap_single (φ : R →+* B) (n : ℕ) (j : Fin n) : |
| 38 | HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap φ n (Pi.single j 1) = Pi.single j 1 := by |
| 39 | ext i |
| 40 | simp [HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap, Pi.single_apply, apply_ite] |
| 41 | split_ifs <;> simp_all |
| 42 | |
| 43 | /-- Overlap matrices are compatible with every map of coefficient rings. -/ |
| 44 | theorem chartOverlapMatrix_naturality (φ : R →+* B) (M : Matrix (Fin k) (Fin l) R) |
| 45 | (τ : Equiv.Perm (Fin k ⊕ Fin l)) : |
| 46 | (chartOverlapMatrix M τ).map φ = chartOverlapMatrix (M.map φ) τ := by |
| 47 | ext i j |
| 48 | have hi : HilbertConstruction.Matrix.ChartBaseChange.chartPairMap φ k l (Pi.single j 1, 0) = (Pi.single j 1, 0) := by |
| 49 | apply Prod.ext |
| 50 | · exact chartVectorMap_single φ k j |
| 51 | · exact map_zero (HilbertConstruction.Matrix.ChartBaseChange.chartVectorMap φ l) |
| 52 | have hp := chartMatrixProjection_naturality φ M |
| 53 | (CoordinatePermutations.chartCoordinatePermutation R τ (Pi.single j 1, 0)) |
| 54 | rw [CoordinatePermutations.chartCoordinatePermutation_naturality, hi] at hp |
| 55 | exact congrFun hp i |
| 56 | |
| 57 | /-- The determinant defining an overlap also commutes with scalar change. -/ |
| 58 | theorem chartOverlapDet_naturality (φ : R →+* B) (M : Matrix (Fin k) (Fin l) R) |
| 59 | (τ : Equiv.Perm (Fin k ⊕ Fin l)) : |
| 60 | φ (chartOverlapMatrix M τ).det = (chartOverlapMatrix (M.map φ) τ).det := by |
| 61 | exact (φ.map_det _).trans (congrArg Matrix.det (chartOverlapMatrix_naturality φ M τ)) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Chart.OverlapMatrices |