import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace import Mathlib.RingTheory.MvPolynomial.Ideal /-! # Projective Coordinate Cover -/ namespace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinateCover noncomputable section /-! # The finite coordinate affine cover of the actual projective scheme The variables generate the irrelevant ideal of the standard polynomial grading. Consequently the usual coordinate basic opens cover `Proj ℂ[X₀,...,Xₙ]`. This file concerns the genuine scheme, not its as-yet separately constructed ordinary complex topology. -/ open _root_.CategoryTheory _root_.AlgebraicGeometry /-- Every positive-degree homogeneous polynomial lies in the ideal of variables. -/ theorem positive_homogeneous_mem_coordinateIdeal (n d : ℕ) (hd : 0 < d) (f : ProjectiveSpace.homogeneousCoordinateRing n) (hf : f ∈ ProjectiveSpace.projectiveGrading n d) : f ∈ Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → ProjectiveSpace.homogeneousCoordinateRing n)) := by have hpow : f ∈ MvPolynomial.idealOfVars (Fin (n + 1)) ℂ ^ 1 := by rw [MvPolynomial.mem_pow_idealOfVars_iff] intro m hm have hdeg : m.degree = d := by simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using hf (MvPolynomial.mem_support_iff.mp hm) simpa only [hdeg] using (Nat.succ_le_iff.mpr hd) simpa only [pow_one] using hpow /-- The irrelevant ideal in the standard polynomial grading is generated by the variables. -/ theorem projective_irrelevant_eq_coordinateIdeal (n : ℕ) : (HomogeneousIdeal.irrelevant (ProjectiveSpace.projectiveGrading n)).toIdeal = Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → ProjectiveSpace.homogeneousCoordinateRing n)) := by apply le_antisymm · apply (HomogeneousIdeal.toIdeal_irrelevant_le (ProjectiveSpace.projectiveGrading n)).mpr intro d hd f hf exact positive_homogeneous_mem_coordinateIdeal n d hd f hf · rw [Ideal.span_le] rintro f ⟨i, rfl⟩ exact HomogeneousIdeal.mem_irrelevant_of_mem (ProjectiveSpace.projectiveGrading n) (by decide : 0 < 1) (MvPolynomial.isHomogeneous_X ℂ i) /-- The usual coordinate open `Xᵢ ≠ 0` inside the genuine projective scheme. -/ abbrev projectiveCoordinateOpen (n : ℕ) (i : Fin (n + 1)) : (ProjectiveSpace.projectiveSpace n).Opens := Proj.basicOpen (ProjectiveSpace.projectiveGrading n) (MvPolynomial.X i) @[simp] theorem mem_projectiveCoordinateOpen (n : ℕ) (i : Fin (n + 1)) (x : ProjectiveSpace.projectiveSpace n) : x ∈ projectiveCoordinateOpen n i ↔ MvPolynomial.X i ∉ x.asHomogeneousIdeal := Proj.mem_basicOpen (ProjectiveSpace.projectiveGrading n) (MvPolynomial.X i) x /-- Coordinate opens cover the projective scheme. -/ theorem iSup_projectiveCoordinateOpen (n : ℕ) : (⨆ i, projectiveCoordinateOpen n i) = ⊤ := by apply Proj.iSup_basicOpen_eq_top exact (projective_irrelevant_eq_coordinateIdeal n).le /-- In particular, every scheme point belongs to at least one coordinate chart. -/ theorem exists_mem_projectiveCoordinateOpen (n : ℕ) (x : ProjectiveSpace.projectiveSpace n) : ∃ i, x ∈ projectiveCoordinateOpen n i := by apply TopologicalSpace.Opens.mem_iSup.mp rw [iSup_projectiveCoordinateOpen] trivial /-- The finite standard affine open cover, with chart rings the actual degree-zero localizations. -/ def projectiveCoordinateAffineCover (n : ℕ) : (ProjectiveSpace.projectiveSpace n).AffineOpenCover := Proj.affineOpenCoverOfIrrelevantLESpan (ProjectiveSpace.projectiveGrading n) (fun (i : Fin (n + 1)) => MvPolynomial.X i) (m := fun _ => 1) (fun i => MvPolynomial.isHomogeneous_X ℂ i) (fun _ => by decide) (projective_irrelevant_eq_coordinateIdeal n).le /-- Its indexing type has precisely the `n + 1` standard coordinates. -/ @[simp] theorem projectiveCoordinateAffineCover_index (n : ℕ) : (projectiveCoordinateAffineCover n).I₀ = Fin (n + 1) := rfl /-- Each coordinate basic open is affine. -/ theorem projectiveCoordinateOpen_isAffine (n : ℕ) (i : Fin (n + 1)) : IsAffineOpen (projectiveCoordinateOpen n i) := Proj.isAffineOpen_basicOpen (ProjectiveSpace.projectiveGrading n) (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X ℂ i) (by decide : 0 < 1) end end OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinateCover