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.HilbertScheme.Presentations.Homogeneous.CoordinateBasis |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationPresentation |
| 3 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 4 | import Mathlib.LinearAlgebra.StdBasis |
| 5 | |
| 6 | /-! # Degree Matrix -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeMatrix.GradedHilbert |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The finite coefficient matrix presenting each homogeneous quotient degree, |
| 13 | and its compatibility with arbitrary coefficient homomorphisms. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.Module |
| 16 | |
| 17 | universe u |
| 18 | variable {R : Type u} [CommRing R] {n : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 19 | |
| 20 | abbrev DegreeRelationIndex (ι : Type u) (n d : ℕ) := Σ _i : ι, CoordinateBasis.GradedHilbert.DegreeIndex.{u} n d |
| 21 | |
| 22 | def homogeneousDegreeMatrix (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) |
| 23 | (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 24 | Matrix (CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N)) (DegreeRelationIndex ι n d) R := |
| 25 | LinearMap.toMatrix (Pi.basis (fun _ : ι => CoordinateBasis.GradedHilbert.coordinateDegreeBasis R n d)) |
| 26 | (CoordinateBasis.GradedHilbert.coordinateDegreeBasis R n (d + N)) (RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d) |
| 27 | |
| 28 | theorem homogeneousDegreeMatrix_apply (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) |
| 29 | (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) |
| 30 | (a : CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N)) (b : DegreeRelationIndex ι n d) : |
| 31 | homogeneousDegreeMatrix g N hg d a b = (monomial b.2.down.val 1 * g b.1).coeff a.down.val := by |
| 32 | classical |
| 33 | rw [homogeneousDegreeMatrix, LinearMap.toMatrix_apply, CoordinateBasis.GradedHilbert.coordinateDegreeBasis_repr, |
| 34 | Pi.basis_apply, RelationPresentation.GradedHilbert.homogeneousRelationPresentation_val] |
| 35 | simp [SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap, Pi.single_apply, apply_ite, ite_mul, CoordinateBasis.GradedHilbert.coordinateDegreeBasis_val] |
| 36 | |
| 37 | theorem homogeneousDegreeMatrix_map {S : Type u} [CommRing S] (φ : R →+* S) |
| 38 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 39 | (homogeneousDegreeMatrix g N hg d).map φ = |
| 40 | homogeneousDegreeMatrix (fun i => MvPolynomial.map φ (g i)) N (fun i => (hg i).map φ) d := by |
| 41 | ext a b |
| 42 | simp only [Matrix.map_apply, homogeneousDegreeMatrix_apply] |
| 43 | rw [← MvPolynomial.coeff_map, map_mul, map_monomial, map_one] |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeMatrix.GradedHilbert |