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.SheafCohomology.Projective.TwoStagePresentation |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.NegativeTwistPolynomialMatrix |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.HomogeneousPolynomialMatrix |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.GradedModuleHilbertPolynomial |
| 5 | |
| 6 | /-! # Presentation Polynomial Module -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | /-! The graded polynomial presentation extracted from an actual coherent sheaf presentation. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | universe u |
| 19 | variable {R : Type u} [CommRing R] {σ : Type} [Fintype σ] [LinearOrder σ] |
| 20 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 21 | |
| 22 | section |
| 23 | variable {j : σ} {M : (Proj (homogeneousSubmodule σ R)).Modules} |
| 24 | (D : TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation j M) |
| 25 | |
| 26 | def TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.polynomialMatrix (i : Fin D.rows) (k : Fin D.columns) : |
| 27 | homogeneousSubmodule σ Γ(Spec (CommRingCat.of R), ⊤) (D.columnDegree k - D.rowDegree i) := |
| 28 | NegativeTwistPolynomialMatrix.MvPolynomial.coordinateNegativeTwistPolynomialMatrix j D.rowDegree D.columnDegree D.degree_order D.relations i k |
| 29 | |
| 30 | def TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.polynomialMap : |
| 31 | (Fin D.columns →₀ MvPolynomial σ Γ(Spec (CommRingCat.of R), ⊤)) →ₗ[ |
| 32 | MvPolynomial σ Γ(Spec (CommRingCat.of R), ⊤)] |
| 33 | (Fin D.rows →₀ MvPolynomial σ Γ(Spec (CommRingCat.of R), ⊤)) := |
| 34 | HomogeneousPolynomialMatrix.homogeneousPolynomialMatrixMap D.rowDegree D.columnDegree D.polynomialMatrix |
| 35 | |
| 36 | abbrev TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.generatorModule : HilbertScheme.Presentations.Finite.GradedPolynomialModules.GradedModules.FiniteGradedPolynomialModule σ Γ(Spec (CommRingCat.of R), ⊤) := |
| 37 | HomogeneousPolynomialMatrix.weightedFreePolynomialModule (fun i => (D.rowDegree i : ℤ)) |
| 38 | |
| 39 | theorem TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.polynomialMap_homogeneous (n : ℤ) |
| 40 | (x : Fin D.columns →₀ MvPolynomial σ Γ(Spec (CommRingCat.of R), ⊤)) |
| 41 | (hx : x ∈ HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading Γ(Spec (CommRingCat.of R), ⊤) |
| 42 | (fun k => (D.columnDegree k : ℤ)) n) : |
| 43 | D.polynomialMap x ∈ HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading Γ(Spec (CommRingCat.of R), ⊤) |
| 44 | (fun i => (D.rowDegree i : ℤ)) n := |
| 45 | HomogeneousPolynomialMatrix.homogeneousPolynomialMatrixMap_homogeneous D.rowDegree D.columnDegree |
| 46 | D.degree_order D.polynomialMatrix n x hx |
| 47 | |
| 48 | theorem TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.polynomialRelations_homogeneous : D.polynomialMap.range.IsHomogeneous |
| 49 | (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading Γ(Spec (CommRingCat.of R), ⊤) (fun i => (D.rowDegree i : ℤ))) := |
| 50 | HomogeneousPolynomialMatrix.homogeneousPolynomialMatrixMap_range_isHomogeneous D.rowDegree D.columnDegree |
| 51 | D.degree_order D.polynomialMatrix |
| 52 | |
| 53 | abbrev TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.DegreeCokernel (n : ℤ) := |
| 54 | GradedCyclicDegreeSequence.DegreeQuotient |
| 55 | (HilbertScheme.Presentations.WeightedFreeModules.GradedModules.weightedFreeGrading Γ(Spec (CommRingCat.of R), ⊤) (fun i => (D.rowDegree i : ℤ))) |
| 56 | D.polynomialMap.range n |
| 57 | |
| 58 | end |
| 59 | |
| 60 | variable {r : ℕ} {j : Fin (r + 1)} |
| 61 | {M : (Proj (homogeneousSubmodule (Fin (r + 1)) R)).Modules} |
| 62 | (D : TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation j M) |
| 63 | |
| 64 | theorem TwoStagePresentation.MvPolynomial.CoordinateNegativeTwistPresentation.degreeCokernel_eventuallyPolynomial (hfield : IsField Γ(Spec (CommRingCat.of R), ⊤)) : |
| 65 | EventualPolynomial.EventuallyPolynomial (fun n => |
| 66 | (Module.finrank Γ(Spec (CommRingCat.of R), ⊤) (D.DegreeCokernel (n : ℤ)) : ℚ)) := by |
| 67 | let := hfield.toField |
| 68 | exact GradedModuleHilbertPolynomial.finiteGradedModule_quotient_eventuallyPolynomial D.generatorModule D.polynomialMap.range |
| 69 | D.polynomialRelations_homogeneous |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.SheafCohomology.Projective |