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.Euler |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.SectionsHilbertPolynomial |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.EventualPolynomial |
| 4 | |
| 5 | /-! # Numerics -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.Numerics |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Canonical Hilbert polynomials and additive Euler characteristics of |
| 12 | actual coherent modules on projective space over an arbitrary field. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 23 | |
| 24 | variable {K : Type u} [Field K] {r : ℕ} |
| 25 | |
| 26 | theorem fieldSpec_sections_isField : IsField Γ(Spec (CommRingCat.of K), ⊤) := |
| 27 | (Scheme.ΓSpecIso (CommRingCat.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 28 | (Field.toIsField K) |
| 29 | |
| 30 | variable (M : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules) |
| 31 | (j : Fin (r + 1)) |
| 32 | |
| 33 | def projectiveHilbertFunction (n : ℕ) : ℚ := |
| 34 | (Module.finrank Γ(Spec (CommRingCat.of K), ⊤) |
| 35 | ((SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1)))).obj |
| 36 | ((SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.coordinateHyperplanePoleSheafPowerTensorEquivalence (R := K) j n).functor.obj M)) : ℚ) |
| 37 | |
| 38 | theorem projectiveHilbertFunction_eventuallyPolynomial [M.IsQuasicoherent] [M.IsFiniteType] : |
| 39 | SheafCohomology.Projective.EventualPolynomial.EventuallyPolynomial (projectiveHilbertFunction M j) := |
| 40 | SheafCohomology.Projective.SectionsHilbertPolynomial.MvPolynomial.finiteType_projectiveTwist_sections_eventuallyPolynomial M j fieldSpec_sections_isField |
| 41 | |
| 42 | def projectiveHilbertPolynomial [M.IsQuasicoherent] [M.IsFiniteType] : Polynomial ℚ := |
| 43 | EventualPolynomial.Construction.eventualPolynomialValue (projectiveHilbertFunction_eventuallyPolynomial M j) |
| 44 | |
| 45 | theorem projectiveHilbertPolynomial_spec [M.IsQuasicoherent] [M.IsFiniteType] : |
| 46 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 47 | projectiveHilbertFunction M j n = (projectiveHilbertPolynomial M j).eval (n : ℚ) := |
| 48 | EventualPolynomial.Construction.eventualPolynomialValue_spec (projectiveHilbertFunction_eventuallyPolynomial M j) |
| 49 | |
| 50 | theorem projectiveHilbertFunction_iso |
| 51 | {N : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules} |
| 52 | (e : M ≅ N) (n : ℕ) : projectiveHilbertFunction M j n = projectiveHilbertFunction N j n := by |
| 53 | let F := SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1))) |
| 54 | let T := (SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.coordinateHyperplanePoleSheafPowerTensorEquivalence (R := K) j n).functor |
| 55 | exact congrArg (fun d : ℕ => (d : ℚ)) (F.mapIso (T.mapIso e)).toLinearEquiv.finrank_eq |
| 56 | |
| 57 | theorem projectiveHilbertPolynomial_iso [M.IsQuasicoherent] [M.IsFiniteType] |
| 58 | {N : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules} |
| 59 | [N.IsQuasicoherent] [N.IsFiniteType] (e : M ≅ N) : |
| 60 | projectiveHilbertPolynomial M j = projectiveHilbertPolynomial N j := by |
| 61 | apply EventualPolynomial.Construction.eventualPolynomialValue_congr _ _ 0 |
| 62 | intro n _ |
| 63 | exact projectiveHilbertFunction_iso M j e n |
| 64 | |
| 65 | theorem projectiveEuler_add_of_shortExact |
| 66 | (T : ShortComplex (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules) |
| 67 | (hT : T.ShortExact) |
| 68 | [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] [T.X₃.IsQuasicoherent] |
| 69 | [T.X₁.IsFiniteType] [T.X₂.IsFiniteType] [T.X₃.IsFiniteType] : |
| 70 | SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler T.X₂ = |
| 71 | SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler T.X₁ + SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler T.X₃ := |
| 72 | SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler_add_of_shortExact T hT fieldSpec_sections_isField |
| 73 | |
| 74 | end Construction |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.Numerics |