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.Hilbert.MonomialBasis |
| 2 | import Mathlib.RingTheory.Finiteness.Cardinality |
| 3 | |
| 4 | /-! # Coordinate Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Canonical finite monomial coordinates on homogeneous polynomial pieces. |
| 11 | The index sets are independent of the coefficient ring. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial _root_.Module |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | abbrev DegreeMonomials (n d : ℕ) := {a : Fin (n + 1) →₀ ℕ // a.degree = d} |
| 18 | |
| 19 | def degreeSpaceSupportedEquiv (R : Type u) [CommRing R] (n d : ℕ) : |
| 20 | Hilbert.Polynomial.GradedHilbert.grading R n d ≃ₗ[R] restrictSupport R {a : Fin (n + 1) →₀ ℕ | a.degree = d} where |
| 21 | toFun f := ⟨f.val, (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support f.val d).mp f.property⟩ |
| 22 | invFun f := ⟨f.val, (Hilbert.MonomialBasis.GradedHilbert.mem_degreeSpace_iff_support f.val d).mpr f.property⟩ |
| 23 | left_inv _ := rfl |
| 24 | right_inv _ := rfl |
| 25 | map_add' _ _ := rfl |
| 26 | map_smul' _ _ := rfl |
| 27 | |
| 28 | def degreeMonomialBasis (R : Type u) [CommRing R] (n d : ℕ) : |
| 29 | Basis (DegreeMonomials n d) R (Hilbert.Polynomial.GradedHilbert.grading R n d) := |
| 30 | (basisRestrictSupport R {a : Fin (n + 1) →₀ ℕ | a.degree = d}).map |
| 31 | (degreeSpaceSupportedEquiv R n d).symm |
| 32 | |
| 33 | instance degreeMonomials_finite (n d : ℕ) : Finite (DegreeMonomials n d) := |
| 34 | Module.Finite.finite_basis (degreeMonomialBasis ℚ n d) |
| 35 | |
| 36 | abbrev DegreeIndex (n d : ℕ) := ULift.{u} (DegreeMonomials n d) |
| 37 | |
| 38 | instance degreeIndex_fintype (n d : ℕ) : Fintype (DegreeIndex.{u} n d) := Fintype.ofFinite _ |
| 39 | |
| 40 | def coordinateDegreeBasis (R : Type u) [CommRing R] (n d : ℕ) : |
| 41 | Basis (DegreeIndex.{u} n d) R (Hilbert.Polynomial.GradedHilbert.grading R n d) := |
| 42 | (degreeMonomialBasis R n d).reindex Equiv.ulift.symm |
| 43 | |
| 44 | theorem degreeMonomialBasis_val (R : Type u) [CommRing R] (n d : ℕ) (a : DegreeMonomials n d) : |
| 45 | (degreeMonomialBasis R n d a).val = monomial a.val (1 : R) := by |
| 46 | change ((basisRestrictSupport R {a : Fin (n + 1) →₀ ℕ | a.degree = d}) a).val = _ |
| 47 | change ((basisRestrictSupport R {a : Fin (n + 1) →₀ ℕ | a.degree = d}).repr.symm |
| 48 | (Finsupp.single a 1)).val = _ |
| 49 | change AddMonoidAlgebra.ofCoeff |
| 50 | (((Finsupp.supportedEquivFinsupp (R := R) {a : Fin (n + 1) →₀ ℕ | a.degree = d}).symm |
| 51 | (Finsupp.single a (1 : R))).val) = _ |
| 52 | rw [Finsupp.supportedEquivFinsupp_symm_single] |
| 53 | rfl |
| 54 | |
| 55 | theorem coordinateDegreeBasis_val (R : Type u) [CommRing R] (n d : ℕ) (a : DegreeIndex.{u} n d) : |
| 56 | (coordinateDegreeBasis R n d a).val = monomial a.down.val (1 : R) := by |
| 57 | rw [coordinateDegreeBasis, Basis.reindex_apply] |
| 58 | exact degreeMonomialBasis_val R n d a.down |
| 59 | |
| 60 | theorem degreeMonomialBasis_repr (R : Type u) [CommRing R] (n d : ℕ) |
| 61 | (f : Hilbert.Polynomial.GradedHilbert.grading R n d) (a : DegreeMonomials n d) : |
| 62 | (degreeMonomialBasis R n d).repr f a = AddMonoidAlgebra.coeff f.val a.val := rfl |
| 63 | |
| 64 | theorem coordinateDegreeBasis_repr (R : Type u) [CommRing R] (n d : ℕ) |
| 65 | (f : Hilbert.Polynomial.GradedHilbert.grading R n d) (a : DegreeIndex.{u} n d) : |
| 66 | (coordinateDegreeBasis R n d).repr f a = AddMonoidAlgebra.coeff f.val a.down.val := by |
| 67 | rw [coordinateDegreeBasis, Basis.repr_reindex_apply] |
| 68 | exact degreeMonomialBasis_repr R n d f a.down |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert |