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.FormalGeometry.Completion.Projective.Numerics |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistShiftIso |
| 3 | import Mathlib.Algebra.Polynomial.Taylor |
| 4 | |
| 5 | /-! # Hilbert Twist -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertTwist |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensoring by the actual projective twist translates the canonical |
| 12 | Hilbert polynomial, including its lower coefficients. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits MonoidalCategory _root_.Polynomial |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | attribute [local instance] MvPolynomial.gradedAlgebra SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory |
| 23 | |
| 24 | variable {K : Type u} [Field K] {r : ℕ} |
| 25 | (M : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules) |
| 26 | (j : Fin (r + 1)) |
| 27 | |
| 28 | def projectiveTwist (n : ℕ) : |
| 29 | (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules := |
| 30 | M ⊗ SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j n |
| 31 | |
| 32 | instance projectiveTwist_quasicoherent [M.IsQuasicoherent] (n : ℕ) : |
| 33 | (projectiveTwist M j n).IsQuasicoherent := |
| 34 | SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.moduleTensorCoordinateHyperplanePoleSheafPower_isQuasicoherent M j n |
| 35 | |
| 36 | instance projectiveTwist_finiteType [M.IsQuasicoherent] [M.IsFiniteType] (n : ℕ) : |
| 37 | (projectiveTwist M j n).IsFiniteType := |
| 38 | SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.moduleTensorCoordinateHyperplanePoleSheafPower_isFiniteType M j n |
| 39 | |
| 40 | def projectiveTwist_addIso (m n : ℕ) : |
| 41 | projectiveTwist (projectiveTwist M j m) j n ≅ projectiveTwist M j (m + n) := |
| 42 | (α_ M (SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j m) |
| 43 | (SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j n)) ≪≫ |
| 44 | (Iso.refl M ⊗ᵢ (SheafCohomology.Projective.TwistShiftIso.MvPolynomial.coordinateHyperplanePoleSheafPower_addIso j m n).symm) |
| 45 | |
| 46 | theorem projectiveHilbertFunction_twist (m n : ℕ) : |
| 47 | Projective.Numerics.Construction.projectiveHilbertFunction (projectiveTwist M j m) j n = |
| 48 | Projective.Numerics.Construction.projectiveHilbertFunction M j (m + n) := by |
| 49 | let G := SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor |
| 50 | (SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1))) |
| 51 | exact congrArg (fun d : ℕ => (d : ℚ)) |
| 52 | (G.mapIso (projectiveTwist_addIso M j m n)).toLinearEquiv.finrank_eq |
| 53 | |
| 54 | theorem projectiveHilbertPolynomial_twist [M.IsQuasicoherent] [M.IsFiniteType] (m : ℕ) : |
| 55 | Projective.Numerics.Construction.projectiveHilbertPolynomial (projectiveTwist M j m) j = |
| 56 | taylor (m : ℚ) (Projective.Numerics.Construction.projectiveHilbertPolynomial M j) := by |
| 57 | obtain ⟨b, hb⟩ := Projective.Numerics.Construction.projectiveHilbertPolynomial_spec M j |
| 58 | apply EventualPolynomial.Construction.eventualPolynomialValue_eq _ _ b |
| 59 | intro n hn |
| 60 | rw [projectiveHilbertFunction_twist, hb (m + n) (by omega), taylor_eval] |
| 61 | simp only [Nat.cast_add, add_comm] |
| 62 | |
| 63 | theorem projectiveHilbertPolynomial_twist_natDegree [M.IsQuasicoherent] [M.IsFiniteType] |
| 64 | (m : ℕ) : |
| 65 | (Projective.Numerics.Construction.projectiveHilbertPolynomial (projectiveTwist M j m) j).natDegree = |
| 66 | (Projective.Numerics.Construction.projectiveHilbertPolynomial M j).natDegree := by |
| 67 | rw [projectiveHilbertPolynomial_twist, natDegree_taylor] |
| 68 | |
| 69 | theorem projectiveHilbertPolynomial_twist_leadingCoeff [M.IsQuasicoherent] [M.IsFiniteType] |
| 70 | (m : ℕ) : |
| 71 | (Projective.Numerics.Construction.projectiveHilbertPolynomial (projectiveTwist M j m) j).leadingCoeff = |
| 72 | (Projective.Numerics.Construction.projectiveHilbertPolynomial M j).leadingCoeff := by |
| 73 | rw [projectiveHilbertPolynomial_twist, leadingCoeff_taylor] |
| 74 | |
| 75 | end Construction |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertTwist |