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.Balanced.DegreeDecomposition |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SubalgebraInternalDecomposition |
| 3 | import Mathlib.RingTheory.GradedAlgebra.Basic |
| 4 | |
| 5 | /-! # Determinant Grading -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantGrading |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The finite-type balanced determinant algebra carries its actual |
| 12 | grading by common marked-point degree. -/ |
| 13 | open scoped Classical |
| 14 | universe u |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | variable (R : Type u) [CommRing R] (r m : ℕ) |
| 18 | |
| 19 | def balancedDeterminantGrading (i : Fin m) (n : ℕ) : |
| 20 | Submodule R (DeterminantAlgebra.balancedDeterminantAlgebra R r m) := |
| 21 | (MonomialSpan.balancedMonomialDegreeSpan (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) |
| 22 | DeterminantBlockDegrees.labeledDeterminantWeight i n).comap (DeterminantAlgebra.balancedDeterminantAlgebra R r m).toSubmodule.subtype |
| 23 | |
| 24 | instance balancedDeterminantGradedAlgebra (i : Fin m) : |
| 25 | GradedAlgebra (balancedDeterminantGrading R r m i) where |
| 26 | toDecomposition := by |
| 27 | have h : DirectSum.IsInternal (balancedDeterminantGrading R r m i) := by |
| 28 | convert (SubalgebraInternalDecomposition.subalgebra_internalDecomposition (DeterminantAlgebra.balancedDeterminantAlgebra R r m) |
| 29 | (fun n => MonomialSpan.balancedMonomialDegreeSpan (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) |
| 30 | DeterminantBlockDegrees.labeledDeterminantWeight i n) |
| 31 | (MonomialSpan.balancedMonomialDegreeSpan_le _ _ i) |
| 32 | (DegreeDecomposition.balancedDeterminantDegreeSpan_independent i) |
| 33 | (DegreeDecomposition.balancedMonomialDegreeSpan_iSup _ _ i)) using 1; rfl |
| 34 | exact h.chooseDecomposition |
| 35 | toGradedMonoid := { |
| 36 | one_mem := by |
| 37 | change (1 : MvPolynomial (Fin m × Fin r) R) ∈ |
| 38 | MonomialSpan.balancedMonomialDegreeSpan _ _ i 0 |
| 39 | apply Submodule.subset_span |
| 40 | refine ⟨0, ⟨(ExponentFiniteGeneration.balancedExponentMonoid _).zero_mem, ?_⟩, MonomialAlgebra.exponentMonomial_zero _⟩ |
| 41 | simp only [ExponentFiniteGeneration.monomialMultiDegree, Pi.zero_apply, zero_mul, Finset.sum_const_zero] |
| 42 | mul_mem := by |
| 43 | intro n t x y hx hy |
| 44 | exact MonomialSpan.balancedMonomialDegreeSpan_mul _ _ i n t (Submodule.mul_mem_mul hx hy) } |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantGrading |