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.AbelianModuli.HilbertConstruction.GeneratingPowerFamily |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SelectedSectionEmbedding |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.FiniteMorphism |
| 4 | |
| 5 | /-! # Projective Presentation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | A proper scheme over an affine base with an ample line bundle admits an |
| 13 | actual closed immersion into projective space over that base. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X S : Scheme.{u}} |
| 21 | |
| 22 | /-- An affine nonvanishing cover from one line bundle on a proper scheme |
| 23 | over an affine base produces a projective presentation. -/ |
| 24 | theorem Line.Bundles.LineBundle.projectivePresentation_of_section_cover (L : Line.Bundles.LineBundle X) |
| 25 | [CompactSpace X] [X.IsSeparated] (f : X ⟶ S) [IsProper f] [IsAffine S] {k : ℕ} |
| 26 | (s : Fin (k + 1) → (Line.Bundles.structureModule X ⟶ L.sheaf)) |
| 27 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (s i)) |
| 28 | (ha : ∀ i, IsAffineOpen (Ample.LineBundles.sectionNonvanishing (s i))) : |
| 29 | Nonempty (Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f)) := by |
| 30 | obtain ⟨d, hd, n, q, j, hq, hgen⟩ := L.generating_power_family f s ha |
| 31 | have hD (i : Fin (k + 1)) : Ample.LineBundles.sectionNonvanishing (q (j i)) = Ample.LineBundles.sectionNonvanishing (s i) := |
| 32 | (congrArg Ample.LineBundles.sectionNonvanishing (hq i)).trans (Section.PowerLocus.sectionNonvanishing_tensorPowerSection (s i) d hd) |
| 33 | have hcover : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (q (j i)) := by |
| 34 | intro x |
| 35 | obtain ⟨i, hi⟩ := hs x |
| 36 | exact ⟨i, (congrArg (fun U : X.Opens => x ∈ U) (hD i)).mpr hi⟩ |
| 37 | have hsq : ∀ x : X, ∃ l, x ∈ Ample.LineBundles.sectionNonvanishing (q l) := by |
| 38 | intro x |
| 39 | obtain ⟨i, hi⟩ := hcover x |
| 40 | exact ⟨j i, hi⟩ |
| 41 | have haq (i : Fin (k + 1)) : IsAffineOpen (Ample.LineBundles.sectionNonvanishing (q (j i))) := |
| 42 | (congrArg IsAffineOpen (hD i)).mpr (ha i) |
| 43 | have habs : IsClosedImmersion (SectionsProjectiveMorphism.sectionAbsoluteMorphism f q hsq) := |
| 44 | SelectedSectionEmbedding.sectionAbsoluteMorphism_closedImmersion_of_selected f q hsq j hcover haq hgen |
| 45 | let a := SectionsProjectiveMorphism.sectionProjectiveMorphism f q hsq |
| 46 | let p : (Projective.ProjectivePresentations.projectiveSpaceOver S n).left ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left := |
| 47 | pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 48 | have hp : a.left ≫ p = SectionsProjectiveMorphism.sectionAbsoluteMorphism f q hsq := pullback.lift_fst _ _ _ |
| 49 | have : IsClosedImmersion (a.left ≫ p) := hp.symm ▸ habs |
| 50 | have : IsIso p := inferInstanceAs |
| 51 | (IsIso (pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ)) |
| 52 | exact ⟨⟨n, a, IsClosedImmersion.of_comp a.left p⟩⟩ |
| 53 | |
| 54 | /-- Ampleness on a proper scheme over an affine base gives a closed immersion |
| 55 | into a finite-dimensional projective space over the same base. -/ |
| 56 | theorem Line.Bundles.LineBundle.IsAmple.exists_projectivePresentation {L : Line.Bundles.LineBundle X} |
| 57 | (hL : L.IsAmple) (f : X ⟶ S) [IsProper f] [IsAffine S] : |
| 58 | Nonempty (Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f)) := by |
| 59 | have : CompactSpace X := ⟨hL.1⟩ |
| 60 | have : X.IsSeparated := ⟨(terminal.comp_from f) ▸ |
| 61 | (inferInstance : IsSeparated (f ≫ terminal.from S))⟩ |
| 62 | obtain ⟨d, _hd, k, s, hs, ha⟩ := hL.projective_section_family |
| 63 | exact (L.tensorPower d).projectivePresentation_of_section_cover f s hs ha |
| 64 | |
| 65 | /-- The chosen actual projective presentation supplied by an ample line bundle. -/ |
| 66 | def Line.Bundles.LineBundle.IsAmple.projectivePresentation {L : Line.Bundles.LineBundle X} |
| 67 | (hL : L.IsAmple) (f : X ⟶ S) [IsProper f] [IsAffine S] : |
| 68 | Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f) := |
| 69 | (hL.exists_projectivePresentation f).some |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |