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.Quotients.FiniteDescent.ProperFunctionsEq |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ReducedSectionsEq |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.PowerLocus |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.Sections |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.Nonvanishing |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ZeroSections |
| 7 | |
| 8 | /-! # Torsion Line -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.TorsionLine.Construction.TorsionLineBundle |
| 11 | |
| 12 | /-! |
| 13 | # Sections of torsion line bundles on proper schemes |
| 14 | |
| 15 | For an actual line bundle whose positive tensor power is trivial, a section |
| 16 | is either nowhere a frame or a frame everywhere. The proof uses the |
| 17 | constructed tensor-power section and the field of global functions. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | theorem nonvanishing_eq_bot_or_top {K : Type u} [Field K] |
| 25 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 26 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ) (hn : 0 < n) |
| 27 | (e : (L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) |
| 28 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf) : |
| 29 | AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊥ ∨ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊤ := by |
| 30 | let t : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) := AbelianModuli.HilbertConstruction.TensorPower.Maps.tensorPowerSection s n ≫ e.hom |
| 31 | have ht : AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing t = AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s := |
| 32 | (AbelianModuli.HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso (AbelianModuli.HilbertConstruction.TensorPower.Maps.tensorPowerSection s n) e).trans |
| 33 | (AbelianModuli.HilbertConstruction.Section.PowerLocus.sectionNonvanishing_tensorPowerSection s n hn) |
| 34 | have hscalar := ProperFunctionsEq.Construction.ProperFunctions.section_eq_zero_or_isUnit X (AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue X.left t) |
| 35 | rw [← ht, AbelianModuli.HilbertConstruction.Scalar.Nonvanishing.sectionNonvanishing_scalar] |
| 36 | rcases hscalar with hz | hu |
| 37 | · exact Or.inl (hz ▸ X.left.basicOpen_zero ⊤) |
| 38 | · exact Or.inr (X.left.basicOpen_of_isUnit hu) |
| 39 | |
| 40 | /-- A torsion line bundle with a section nonvanishing somewhere is |
| 41 | trivialized by that section. -/ |
| 42 | theorem isIso_of_nonempty_nonvanishing {K : Type u} [Field K] |
| 43 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 44 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ) (hn : 0 < n) |
| 45 | (e : (L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) |
| 46 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf) |
| 47 | (hs : (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s : Set X.left).Nonempty) : IsIso s := by |
| 48 | have htop : AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊤ := |
| 49 | (nonvanishing_eq_bot_or_top X L n hn e s).resolve_left (by |
| 50 | intro hbot |
| 51 | obtain ⟨x, hx⟩ := hs |
| 52 | rw [hbot] at hx |
| 53 | exact hx.elim) |
| 54 | exact (AbelianModuli.HilbertConstruction.Section.Frames.isIso_iff_sectionNonvanishing_eq_top s).mpr htop |
| 55 | |
| 56 | /-- Every nonzero section of a torsion line bundle on a reduced proper |
| 57 | connected scheme trivializes the line bundle. -/ |
| 58 | theorem isIso_of_ne_zero {K : Type u} [Field K] |
| 59 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 60 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ) (hn : 0 < n) |
| 61 | (e : (L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) |
| 62 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf) (hs : s ≠ 0) : IsIso s := by |
| 63 | apply isIso_of_nonempty_nonvanishing X L n hn e s |
| 64 | by_contra h |
| 65 | exact hs (ReducedSectionsEq.Construction.ReducedSections.section_eq_zero_of_nonvanishing_eq_bot L s |
| 66 | ((TopologicalSpace.Opens.not_nonempty_iff_eq_bot _).mp h)) |
| 67 | |
| 68 | /-- A nontrivial torsion line bundle has no nonzero global section. -/ |
| 69 | theorem section_eq_zero_of_nontrivial {K : Type u} [Field K] |
| 70 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 71 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ) (hn : 0 < n) |
| 72 | (e : (L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) |
| 73 | (hL : ¬ Nonempty (L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left)) |
| 74 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf) : s = 0 := by |
| 75 | by_contra hs |
| 76 | have : IsIso s := isIso_of_ne_zero X L n hn e s hs |
| 77 | exact hL ⟨(asIso s).symm⟩ |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.TorsionLine.Construction.TorsionLineBundle |