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.LineBundleHilbertLeading |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertCokernel |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.ClosedMorphismReflection |
| 4 | |
| 5 | /-! # Effective Hilbert Difference -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.EffectiveHilbertDifference |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A generated nontrivial line bundle has a positive Hilbert-polynomial |
| 12 | difference from the structure sheaf. The difference has strictly lower degree. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Polynomial |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 23 | |
| 24 | variable {K : Type u} [Field K] {r : ℕ} {X : Scheme.{u}} [IsIntegral X] |
| 25 | (f : X ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) [IsClosedImmersion f] |
| 26 | |
| 27 | def lineBundleHilbertPolynomial (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : Polynomial ℚ := by |
| 28 | let : L.sheaf.IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent L |
| 29 | let : L.sheaf.IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation L |
| 30 | exact ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f L.sheaf j |
| 31 | |
| 32 | def lineBundleHilbertDifference (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : Polynomial ℚ := |
| 33 | lineBundleHilbertPolynomial f L j - lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j |
| 34 | |
| 35 | omit [IsIntegral X] in |
| 36 | theorem lineBundleHilbertDifference_eq_zero_of_trivial (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) |
| 37 | (e : L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) : lineBundleHilbertDifference f L j = 0 := by |
| 38 | let : L.sheaf.IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent L |
| 39 | let : L.sheaf.IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation L |
| 40 | let : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) |
| 41 | let : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) |
| 42 | exact sub_eq_zero.mpr (ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial_iso f e j) |
| 43 | |
| 44 | theorem lineBundleHilbertPolynomial_leadingCoeff_pos (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : |
| 45 | 0 < (lineBundleHilbertPolynomial f L j).leadingCoeff := by |
| 46 | let : L.sheaf.IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent L |
| 47 | let : L.sheaf.IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation L |
| 48 | exact ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial_leadingCoeff_pos f L.sheaf j (GeneratedLineBundleFrames.Construction.lineBundle_not_isZero L) |
| 49 | |
| 50 | theorem lineBundleHilbertDifference_degree_lt (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : |
| 51 | (lineBundleHilbertDifference f L j).degree < |
| 52 | (lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j).degree := by |
| 53 | have hL : lineBundleHilbertPolynomial f L j ≠ 0 := |
| 54 | leadingCoeff_ne_zero.mp (lineBundleHilbertPolynomial_leadingCoeff_pos f L j).ne' |
| 55 | have hO : lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j ≠ 0 := |
| 56 | leadingCoeff_ne_zero.mp (lineBundleHilbertPolynomial_leadingCoeff_pos f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j).ne' |
| 57 | have h := LineBundleHilbertLeading.Construction.lineBundle_hilbert_degree_leadingCoeff f L j |
| 58 | change (lineBundleHilbertPolynomial f L j).natDegree = |
| 59 | (lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j).natDegree ∧ |
| 60 | (lineBundleHilbertPolynomial f L j).leadingCoeff = |
| 61 | (lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j).leadingCoeff at h |
| 62 | exact degree_sub_lt_right (by rw [degree_eq_natDegree hL, degree_eq_natDegree hO, h.1]) hO h.2 |
| 63 | |
| 64 | theorem lineBundleHilbertDifference_leadingCoeff_pos |
| 65 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) (hgen : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) |
| 66 | (hnt : ¬ Nonempty (L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X)) : |
| 67 | 0 < (lineBundleHilbertDifference f L j).leadingCoeff := by |
| 68 | let : L.sheaf.IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent L |
| 69 | let : L.sheaf.IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation L |
| 70 | let : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) |
| 71 | let : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) |
| 72 | obtain ⟨s, hs⟩ := hgen (genericPoint X) |
| 73 | have : Mono s := IntegralSectionMono.Construction.integral_section_mono_of_nonempty_nonvanishing s ⟨genericPoint X, hs⟩ |
| 74 | let g : ClosedHilbertNumerics.Construction.coherentClosedDirectImage f (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) ⟶ ClosedHilbertNumerics.Construction.coherentClosedDirectImage f L.sheaf := |
| 75 | (Scheme.Modules.pushforward f).map s |
| 76 | have : Mono g := (Scheme.Modules.pushforward f).map_mono s |
| 77 | have : (cokernel g).IsQuasicoherent := SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_cokernel g |
| 78 | have : (cokernel g).IsFiniteType := SheafCohomology.Projective.CoherentQuotientFiniteType.Scheme.Modules.isFiniteType_cokernel g |
| 79 | have hD : ¬ IsZero (cokernel g) := by |
| 80 | intro h |
| 81 | have : Epi g := Preadditive.epi_of_isZero_cokernel g h |
| 82 | have : Epi s := ClosedMorphismReflection.Construction.moduleMap_epi_of_pushforward_epi f f.isClosedEmbedding.isEmbedding.isInducing s |
| 83 | have : IsIso s := isIso_of_mono_of_epi s |
| 84 | exact hnt ⟨(asIso s).symm⟩ |
| 85 | have he := HilbertCokernel.Construction.projectiveCokernelHilbertPolynomial_eq_sub g j |
| 86 | change Projective.Numerics.Construction.projectiveHilbertPolynomial (cokernel g) j = lineBundleHilbertDifference f L j at he |
| 87 | rw [← he] |
| 88 | exact HilbertPositivity.Construction.projectiveHilbertPolynomial_leadingCoeff_pos (cokernel g) j hD |
| 89 | |
| 90 | end Construction |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.EffectiveHilbertDifference |