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.Affine.SectionMorphism |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | |
| 4 | /-! # Embedding -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Embedding |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | An explicit closed-immersion criterion for the section morphisms constructed |
| 12 | for HilbertConstruction. Surjectivity is required of the actual section-ratio chart maps. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {S X : Scheme.{u}} {L : X.Modules} {n : ℕ} |
| 20 | |
| 21 | private theorem standardChart_openImmersion (R : Type u) [CommRing R] (n : ℕ) |
| 22 | (i : Fin (n + 1)) : |
| 23 | IsOpenImmersion (Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 24 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one) := by |
| 25 | change IsOpenImmersion ((Proj.basicOpenIsoSpec (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 26 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one).inv ≫ |
| 27 | (Proj.basicOpen (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i)).ι) |
| 28 | infer_instance |
| 29 | |
| 30 | /-- The map from a section's nonvanishing open to its affine projective chart. -/ |
| 31 | def sectionAffineChart (f : X ⟶ S) |
| 32 | (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L)) (i : Fin (n + 1)) : |
| 33 | (Ample.LineBundles.sectionNonvanishing (s i)).toScheme ⟶ Spec (.of (ProjectiveChart.Evaluation.projectiveChartRing Γ(S, ⊤) n i)) := |
| 34 | (Ample.LineBundles.sectionNonvanishing (s i)).toScheme.toSpecΓ ≫ Spec.map (CommRingCat.ofHom |
| 35 | (ProjectiveChart.Evaluation.projectiveChartEvaluation ((Ample.LineBundles.sectionNonvanishing (s i)).ι ≫ f).appTop.hom |
| 36 | (fun k => Frames.sectionRatio (s i) (s k)) i (Frames.sectionRatio_self (s i)))) |
| 37 | |
| 38 | theorem sectionAffineChart_away (f : X ⟶ S) |
| 39 | (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L)) (i : Fin (n + 1)) : |
| 40 | sectionAffineChart f s i ≫ Proj.awayι (Projective.ProjectivePresentations.coordinateGrading Γ(S, ⊤) n) (MvPolynomial.X i) |
| 41 | (MvPolynomial.isHomogeneous_X Γ(S, ⊤) i) Nat.zero_lt_one = ChartOverlaps.sectionAbsoluteChart f s i := rfl |
| 42 | |
| 43 | /-- The affine chart square is a pullback, using the computed chart preimage. -/ |
| 44 | theorem sectionAffineChart_isPullback (f : X ⟶ S) |
| 45 | (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L)) |
| 46 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (s i)) (i : Fin (n + 1)) : |
| 47 | IsPullback (sectionAffineChart f s i) (Ample.LineBundles.sectionNonvanishing (s i)).ι |
| 48 | (Proj.awayι (Projective.ProjectivePresentations.coordinateGrading Γ(S, ⊤) n) (MvPolynomial.X i) |
| 49 | (MvPolynomial.isHomogeneous_X Γ(S, ⊤) i) Nat.zero_lt_one) |
| 50 | (SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs) := by |
| 51 | have := standardChart_openImmersion Γ(S, ⊤) n i |
| 52 | apply IsOpenImmersion.isPullback |
| 53 | · exact (SectionsProjectiveMorphism.sectionAbsoluteMorphism_restrict f s hs i).trans (sectionAffineChart_away f s i).symm |
| 54 | · exact (congrArg (fun U : (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left.Opens => |
| 55 | SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs ⁻¹ᵁ U) |
| 56 | (Proj.opensRange_awayι (Projective.ProjectivePresentations.coordinateGrading Γ(S, ⊤) n) (MvPolynomial.X i) |
| 57 | (MvPolynomial.isHomogeneous_X Γ(S, ⊤) i) Nat.zero_lt_one)).trans |
| 58 | ((ProjectiveChart.Preimages.sectionAbsoluteMorphism_preimage f s hs i).trans |
| 59 | (Ample.LineBundles.sectionNonvanishing (s i)).opensRange_ι.symm) |
| 60 | |
| 61 | /-- The affine spectra of the standard chart rings cover projective space. -/ |
| 62 | def standardProjectiveAffineCover (R : Type u) [CommRing R] (n : ℕ) : |
| 63 | Scheme.OpenCover.{0} (Projective.ProjectivePresentations.affineProjectiveSpace R n).left where |
| 64 | I₀ := Fin (n + 1) |
| 65 | X i := Spec (.of (ProjectiveChart.Evaluation.projectiveChartRing R n i)) |
| 66 | f i := Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 67 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 68 | mem₀ := by |
| 69 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 70 | refine ⟨fun x => ?_, fun i => standardChart_openImmersion R n i⟩ |
| 71 | obtain ⟨i, hi⟩ := StandardProjectiveCharts.standardProjectiveCharts_cover R n x |
| 72 | have := standardChart_openImmersion R n i |
| 73 | refine ⟨i, ?_⟩ |
| 74 | change x ∈ (Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 75 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one).opensRange |
| 76 | exact (congrArg (fun U : (Projective.ProjectivePresentations.affineProjectiveSpace R n).left.Opens => x ∈ U) |
| 77 | (Proj.opensRange_awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 78 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one)).to_iff.mpr hi |
| 79 | |
| 80 | /-- Surjective chart evaluations make the section morphism a closed immersion. -/ |
| 81 | theorem sectionAbsoluteMorphism_closedImmersion (f : X ⟶ S) |
| 82 | (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L)) |
| 83 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (s i)) |
| 84 | (ha : ∀ i, IsAffineOpen (Ample.LineBundles.sectionNonvanishing (s i))) |
| 85 | (hgen : ∀ i, Function.Surjective |
| 86 | (ProjectiveChart.Evaluation.projectiveChartEvaluation ((Ample.LineBundles.sectionNonvanishing (s i)).ι ≫ f).appTop.hom |
| 87 | (fun k => Frames.sectionRatio (s i) (s k)) i (Frames.sectionRatio_self (s i)))) : |
| 88 | IsClosedImmersion (SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs) := by |
| 89 | apply IsZariskiLocalAtTarget.of_openCover (P := @IsClosedImmersion) |
| 90 | (standardProjectiveAffineCover Γ(S, ⊤) n) |
| 91 | intro i |
| 92 | have : IsAffine (Ample.LineBundles.sectionNonvanishing (s i)).toScheme := ha i |
| 93 | have hspec : IsClosedImmersion (Spec.map (CommRingCat.ofHom |
| 94 | (ProjectiveChart.Evaluation.projectiveChartEvaluation ((Ample.LineBundles.sectionNonvanishing (s i)).ι ≫ f).appTop.hom |
| 95 | (fun k => Frames.sectionRatio (s i) (s k)) i (Frames.sectionRatio_self (s i))))) := |
| 96 | IsClosedImmersion.spec_of_surjective _ (hgen i) |
| 97 | have hto : IsClosedImmersion (Ample.LineBundles.sectionNonvanishing (s i)).toScheme.toSpecΓ := by |
| 98 | infer_instance |
| 99 | have hchart : IsClosedImmersion (sectionAffineChart f s i) := |
| 100 | @IsClosedImmersion.comp _ _ _ _ _ hto hspec |
| 101 | let h := (sectionAffineChart_isPullback f s hs i).flip |
| 102 | have hh : IsClosedImmersion (h.isoPullback.inv ≫ sectionAffineChart f s i) := |
| 103 | @IsClosedImmersion.comp _ _ _ _ _ inferInstance hchart |
| 104 | have he : h.isoPullback.inv ≫ sectionAffineChart f s i = |
| 105 | (standardProjectiveAffineCover Γ(S, ⊤) n).pullbackHom (SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs) i := |
| 106 | h.isoPullback_inv_snd |
| 107 | exact he ▸ hh |
| 108 | |
| 109 | /-- Over an affine base the same criterion gives a closed immersion into |
| 110 | relative projective space. -/ |
| 111 | theorem sectionProjectiveMorphism_closedImmersion (f : X ⟶ S) [IsAffine S] |
| 112 | (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L)) |
| 113 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (s i)) |
| 114 | (ha : ∀ i, IsAffineOpen (Ample.LineBundles.sectionNonvanishing (s i))) |
| 115 | (hgen : ∀ i, Function.Surjective |
| 116 | (ProjectiveChart.Evaluation.projectiveChartEvaluation ((Ample.LineBundles.sectionNonvanishing (s i)).ι ≫ f).appTop.hom |
| 117 | (fun k => Frames.sectionRatio (s i) (s k)) i (Frames.sectionRatio_self (s i)))) : |
| 118 | IsClosedImmersion (SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs).left := by |
| 119 | let p : (Projective.ProjectivePresentations.projectiveSpaceOver S n).left ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left := |
| 120 | pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 121 | have hp : (SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs).left ≫ p = SectionsProjectiveMorphism.sectionAbsoluteMorphism f s hs := |
| 122 | pullback.lift_fst _ _ _ |
| 123 | have : IsClosedImmersion ((SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs).left ≫ p) := |
| 124 | hp.symm ▸ sectionAbsoluteMorphism_closedImmersion f s hs ha hgen |
| 125 | have : IsIso p := inferInstanceAs |
| 126 | (IsIso (pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ)) |
| 127 | exact IsClosedImmersion.of_comp _ p |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Embedding |