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.TorsionLine |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.TensorPullback |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.SectionBase |
| 4 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ReducedClosedIs |
| 5 | import Mathlib.AlgebraicGeometry.Noetherian |
| 6 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 7 | |
| 8 | /-! # Torsion Section -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.TorsionSection.Construction.TorsionSectionFinite |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Finiteness from affine nonvanishing loci of torsion line bundles. |
| 15 | The line bundle may vary with the point; no single ample bundle is required. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem affine_of_section {K : Type u} [Field K] |
| 22 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 23 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ) (hn : 0 < n) |
| 24 | (e : (L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) |
| 25 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf) |
| 26 | (hs : (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s : Set X.left).Nonempty) |
| 27 | (ha : IsAffineOpen (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s)) : IsAffine X.left := by |
| 28 | have : IsIso s := TorsionLine.Construction.TorsionLineBundle.isIso_of_nonempty_nonvanishing X L n hn e s hs |
| 29 | rw [AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing_of_isIso] at ha |
| 30 | have : IsAffine (⊤ : X.left.Opens).toScheme := ha |
| 31 | exact IsAffine.of_isIso X.left.topIso.inv |
| 32 | |
| 33 | /-- On a proper scheme over a field, an affine neighborhood at every point |
| 34 | cut out by a section of a torsion line bundle forces finiteness. -/ |
| 35 | theorem isFinite {K : Type u} [Field K] |
| 36 | (X : Over (Spec (.of K))) [IsProper X.hom] |
| 37 | (h : ∀ x : X.left, ∃ (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (n : ℕ), 0 < n ∧ |
| 38 | Nonempty ((L.tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) ∧ |
| 39 | ∃ s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left ⟶ L.sheaf, |
| 40 | x ∈ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s ∧ IsAffineOpen (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s)) : IsFinite X.hom := by |
| 41 | have : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian X.hom |
| 42 | have : CompactSpace X.left := QuasiCompact.compactSpace_of_compactSpace X.hom |
| 43 | have : IsNoetherian X.left := ⟨⟩ |
| 44 | have hc (Z : Set X.left) (hZ : Z ∈ irreducibleComponents X.left) : Z.Finite := by |
| 45 | let C : TopologicalSpace.Closeds X.left := ⟨Z, isClosed_of_mem_irreducibleComponents Z hZ⟩ |
| 46 | let I := Scheme.IdealSheafData.vanishingIdeal C |
| 47 | let T : Over (Spec (.of K)) := Over.mk (I.subschemeι ≫ X.hom) |
| 48 | have : IsProper T.hom := by dsimp [T]; infer_instance |
| 49 | have : IsReduced T.left := ReducedClosedIs.Construction.ReducedClosed.isReduced C |
| 50 | have : IrreducibleSpace T.left := ReducedClosedIs.Construction.ReducedClosed.irreducibleSpace C hZ.1 |
| 51 | let x : T.left := Classical.choice (inferInstance : Nonempty T.left) |
| 52 | obtain ⟨L, n, hn, ⟨e⟩, s, hx, ha⟩ := h (I.subschemeι x) |
| 53 | let eT : ((L.pullback I.subschemeι).tensorPower n).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T.left := |
| 54 | (TensorPullback.Construction.TensorPullbackMap.iso I.subschemeι L n).symm ≪≫ |
| 55 | (Scheme.Modules.pullback I.subschemeι).mapIso e ≪≫ AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso I.subschemeι |
| 56 | let t := AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection I.subschemeι s |
| 57 | have ht : AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing t = I.subschemeι ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s := |
| 58 | SectionBase.Construction.SectionBaseChange.nonvanishing_pullback I.subschemeι L s |
| 59 | have hta : IsAffineOpen (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing t) := ht.symm ▸ ha.preimage I.subschemeι |
| 60 | have htx : x ∈ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing t := ht.symm ▸ hx |
| 61 | have : IsAffine T.left := affine_of_section T (L.pullback I.subschemeι) n hn eT t ⟨x, htx⟩ hta |
| 62 | have : IsFinite T.hom := ProperFunctionsEq.Construction.ProperFunctions.finite_of_proper_affine T.hom |
| 63 | have : IsLocallyArtinian T.left := IsLocallyArtinian.of_locallyQuasiFinite T.hom |
| 64 | have : Subsingleton T.left := subsingleton_of_preconnected_totallyDisconnected |
| 65 | have : Finite I.subscheme := inferInstanceAs (Finite T.left) |
| 66 | have hr : Set.range I.subschemeι = Z := ReducedClosedIs.Construction.ReducedClosed.range_ι C |
| 67 | rw [← hr] |
| 68 | exact Set.finite_range I.subschemeι |
| 69 | have hu : (⋃₀ irreducibleComponents X.left).Finite := |
| 70 | TopologicalSpace.NoetherianSpace.finite_irreducibleComponents.sUnion hc |
| 71 | rw [sUnion_irreducibleComponents] at hu |
| 72 | have : Finite X.left := Set.finite_univ_iff.mp hu |
| 73 | have : LocallyQuasiFinite X.hom := |
| 74 | LocallyQuasiFinite.of_finite_preimage_singleton _ (fun _ => Set.toFinite _) |
| 75 | exact IsFinite.of_isProper_of_locallyQuasiFinite X.hom |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.TorsionSection.Construction.TorsionSectionFinite |