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.ArithmeticGeometry.OrdinaryLocus.Openness.ProperSectionFiniteness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ZeroSections |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.PowerLocus |
| 5 | |
| 6 | /-! # Ample Hilbert Nonzero -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AmpleHilbertNonzero.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual Hilbert polynomial of an ample line bundle on a nonempty proper scheme is nonzero. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem lineBundle_section_value_ne_zero |
| 17 | {X : Scheme} (L : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (s : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X ⟶ L.sheaf) |
| 18 | (x : X) (hx : x ∈ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s) : |
| 19 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections.moduleSectionHomEquiv L.sheaf s ≠ 0 := by |
| 20 | intro hz |
| 21 | have hs : s = 0 := (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections.moduleSectionHomEquiv L.sheaf).injective (by |
| 22 | change s.app ⊤ (1 : Γ(X, ⊤)) = 0 |
| 23 | exact hz) |
| 24 | rw [hs, L.sectionNonvanishing_zero] at hx |
| 25 | exact hx.elim |
| 26 | |
| 27 | theorem ampleHilbertPolynomial_ne_zero |
| 28 | {X S : Scheme.{0}} [Nonempty X] [IsAffine S] |
| 29 | (f : X ⟶ S) [IsProper f] (hfield : IsField Γ(S, ⊤)) |
| 30 | (L : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (hL : L.IsAmple) (d : ℕ) (_hd : 0 < d) |
| 31 | (P : Polynomial ℚ) (b : ℕ) |
| 32 | (hP : ∀ n : ℕ, b ≤ n → |
| 33 | (Module.finrank Γ(S, ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor f).obj |
| 34 | (L.tensorPower (n * d)).sheaf) : ℚ) = P.eval (n : ℚ)) : P ≠ 0 := by |
| 35 | let : Field Γ(S, ⊤) := hfield.toField |
| 36 | have : CompactSpace X := ⟨hL.1⟩ |
| 37 | have : X.IsSeparated := ⟨(Limits.terminal.comp_from f) ▸ |
| 38 | (inferInstance : IsSeparated (f ≫ Limits.terminal.from S))⟩ |
| 39 | obtain ⟨a, ha, r, s, hs, _⟩ := hL.projective_section_family |
| 40 | let x : X := Classical.choice inferInstance |
| 41 | obtain ⟨i, hi⟩ := hs x |
| 42 | let n := (b + 1) * a |
| 43 | let t := AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Maps.tensorPowerSection (s i) ((b + 1) * d) |
| 44 | let T := (L.tensorPower a).tensorPower ((b + 1) * d) |
| 45 | have ht : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections.moduleSectionHomEquiv T.sheaf t ≠ 0 := |
| 46 | lineBundle_section_value_ne_zero T t x |
| 47 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Power.Nonvanishing.sectionNonvanishing_le_tensorPowerSection (s i) ((b + 1) * d) hi) |
| 48 | have he : ((b + 1) * d) * a = n * d := by dsimp [n]; ac_rfl |
| 49 | let e : T.sheaf ≅ (L.tensorPower (n * d)).sheaf := |
| 50 | (L.tensorPowerComposeIso ((b + 1) * d) a).symm ≪≫ |
| 51 | eqToIso (congrArg (fun k => (L.tensorPower k).sheaf) he) |
| 52 | let eV := ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor f).mapIso e).toLinearEquiv |
| 53 | have : Nontrivial ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor f).obj (L.tensorPower (n * d)).sheaf) := |
| 54 | ⟨⟨eV (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections.moduleSectionHomEquiv T.sheaf t), 0, |
| 55 | fun h => ht (eV.injective (h.trans eV.map_zero.symm))⟩⟩ |
| 56 | have : (L.tensorPower (n * d)).sheaf.IsQuasicoherent := |
| 57 | LineBundleQuasicoherent.Construction.isQuasicoherent_of_isLineBundle _ (L.tensorPower (n * d)).locallyTrivial |
| 58 | have : (L.tensorPower (n * d)).sheaf.IsFiniteType := |
| 59 | ProjectiveCohomologyFiniteness.Construction.isFiniteType_of_isLineBundle _ (L.tensorPower (n * d)).locallyTrivial |
| 60 | have : Module.Finite Γ(S, ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor f).obj |
| 61 | (L.tensorPower (n * d)).sheaf) := |
| 62 | ProperSectionFiniteness.Construction.ample_proper_globalSections_finite f L hL _ |
| 63 | have hp : 0 < Module.finrank Γ(S, ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor f).obj |
| 64 | (L.tensorPower (n * d)).sheaf) := Module.finrank_pos |
| 65 | have hn : b ≤ n := (Nat.le_succ b).trans (Nat.le_mul_of_pos_right (b + 1) ha) |
| 66 | intro hz |
| 67 | have h := hP n hn |
| 68 | rw [hz, Polynomial.eval_zero] at h |
| 69 | exact hp.ne' (Nat.cast_eq_zero.mp h) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AmpleHilbertNonzero.Construction |