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.DegreeMatrix |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Matrix.CokernelCoordinates |
| 3 | |
| 4 | /-! # Degree Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeCokernel.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The explicit finite degree matrix has the actual homogeneous quotient as |
| 11 | its cokernel, before and after arbitrary coefficient specialization. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial _root_.Module |
| 14 | |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] {n : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 17 | |
| 18 | def homogeneousDegreeMatrixCokernelEquiv (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) |
| 19 | (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 20 | ((CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N) → R) ⧸ (Matrix.toLin' (DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d)).range) ≃ₗ[R] |
| 21 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient (RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N) := |
| 22 | (Presentations.Matrix.CokernelCoordinates.matrixCokernelBasisEquiv (Pi.basis (fun _ : ι => CoordinateBasis.GradedHilbert.coordinateDegreeBasis R n d)) |
| 23 | (CoordinateBasis.GradedHilbert.coordinateDegreeBasis R n (d + N)) (RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d)).trans |
| 24 | (RelationPresentation.GradedHilbert.homogeneousPresentationCokernelEquiv g N hg d) |
| 25 | |
| 26 | def homogeneousSpecializedMatrixCokernelEquiv {S : Type u} [CommRing S] (φ : R →+* S) |
| 27 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 28 | ((CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N) → S) ⧸ (Matrix.toLin' ((DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d).map φ)).range) ≃ₗ[S] |
| 29 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient (RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (fun i => MvPolynomial.map φ (g i)) N |
| 30 | (fun i => (hg i).map φ)).toIdeal (d + N) := by |
| 31 | rw [DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix_map] |
| 32 | exact homogeneousDegreeMatrixCokernelEquiv _ N _ d |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeCokernel.GradedHilbert |