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.Ample.ProjectivePresentation |
| 2 | |
| 3 | /-! # Projective Embeddings -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Projective embeddings with their positive tensor degree and actual generating sections retained. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X S : Scheme.{u}} |
| 16 | |
| 17 | structure Power.ProjectiveEmbeddings.PowerProjectiveEmbedding (L : Line.Bundles.LineBundle X) (f : X ⟶ S) where |
| 18 | degree : ℕ |
| 19 | degree_pos : 0 < degree |
| 20 | power : Line.Bundles.LineBundle X |
| 21 | isPower : Tensor.Powers.IsTensorPower L.sheaf degree power.sheaf |
| 22 | dimension : ℕ |
| 23 | sections : Fin (dimension + 1) → (Line.Bundles.structureModule X ⟶ power.sheaf) |
| 24 | covers : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (sections i) |
| 25 | closedImmersion : IsClosedImmersion (SectionsProjectiveMorphism.sectionProjectiveMorphism f sections covers).left |
| 26 | |
| 27 | theorem Power.ProjectiveEmbeddings.sectionProjectiveMorphism_closedImmersion_of_absolute (f : X ⟶ S) [IsAffine S] |
| 28 | {M : X.Modules} {n : ℕ} (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ M)) |
| 29 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (s i)) |
| 30 | (h : IsClosedImmersion (SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs)) : |
| 31 | IsClosedImmersion (SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs).left := by |
| 32 | let a := SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs |
| 33 | let p : (Projective.ProjectivePresentations.projectiveSpaceOver S n).left ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left := |
| 34 | Limits.pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 35 | have hp : a.left ≫ p = SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs := Limits.pullback.lift_fst _ _ _ |
| 36 | have : IsClosedImmersion (a.left ≫ p) := hp.symm ▸ h |
| 37 | have : IsIso p := inferInstanceAs |
| 38 | (IsIso (Limits.pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ)) |
| 39 | exact IsClosedImmersion.of_comp a.left p |
| 40 | |
| 41 | theorem Line.Bundles.LineBundle.IsAmple.exists_powerProjectiveEmbedding {L : Line.Bundles.LineBundle X} (hL : L.IsAmple) |
| 42 | (f : X ⟶ S) [IsProper f] [IsAffine S] : Nonempty (Power.ProjectiveEmbeddings.PowerProjectiveEmbedding L f) := by |
| 43 | have : CompactSpace X := ⟨hL.1⟩ |
| 44 | have : X.IsSeparated := ⟨(Limits.terminal.comp_from f) ▸ |
| 45 | (inferInstance : IsSeparated (f ≫ Limits.terminal.from S))⟩ |
| 46 | obtain ⟨d, hd, k, s, hs, ha⟩ := hL.projective_section_family |
| 47 | obtain ⟨m, hm, n, q, j, hq, hgen⟩ := (L.tensorPower d).generating_power_family f s ha |
| 48 | have hD (i : Fin (k + 1)) : Ample.LineBundles.sectionNonvanishing (q (j i)) = Ample.LineBundles.sectionNonvanishing (s i) := |
| 49 | (congrArg Ample.LineBundles.sectionNonvanishing (hq i)).trans (Section.PowerLocus.sectionNonvanishing_tensorPowerSection (s i) m hm) |
| 50 | have hcover : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (q (j i)) := by |
| 51 | intro x |
| 52 | obtain ⟨i, hi⟩ := hs x |
| 53 | exact ⟨i, (congrArg (fun U : X.Opens => x ∈ U) (hD i)).mpr hi⟩ |
| 54 | have hqcover : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (q i) := by |
| 55 | intro x |
| 56 | obtain ⟨i, hi⟩ := hcover x |
| 57 | exact ⟨j i, hi⟩ |
| 58 | have haq (i : Fin (k + 1)) : IsAffineOpen (Ample.LineBundles.sectionNonvanishing (q (j i))) := |
| 59 | (congrArg IsAffineOpen (hD i)).mpr (ha i) |
| 60 | exact ⟨⟨m * d, Nat.mul_pos hm hd, (L.tensorPower d).tensorPower m, |
| 61 | (L.tensorPower_isTensorPower (m * d)).of_targetIso (L.tensorPowerComposeIso m d), n, q, hqcover, |
| 62 | Power.ProjectiveEmbeddings.sectionProjectiveMorphism_closedImmersion_of_absolute f q hqcover |
| 63 | (SelectedSectionEmbedding.sectionAbsoluteMorphism_closedImmersion_of_selected f q hqcover j hcover haq hgen)⟩⟩ |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |