File size: 6,142 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace
import Mathlib.RingTheory.Ideal.Maps

/-! # Projective Vector Point -/

namespace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveVectorPoint

noncomputable section

/-!
# Actual projective scheme points from homogeneous coordinates

A nonzero complex vector defines a scheme morphism from `Spec ℂ` to the
standard projective scheme, using mathlib's construction from global sections.
The morphism is proved to be over `Spec ℂ`, and its homogeneous basic-open
membership is identified with ordinary polynomial evaluation.
-/

set_option autoImplicit false
set_option warningAsError true

open _root_.CategoryTheory _root_.AlgebraicGeometry

variable {n : ℕ}

/-- Evaluate homogeneous coordinates, then view the resulting complex number
as a global section of the actual affine scheme `Spec ℂ`. -/
def vectorGlobalSections (v : Fin (n + 1) → ℂ) :
    ProjectiveSpace.homogeneousCoordinateRing n →+* Γ(ProjectiveSpace.complexBase, ⊤) :=
  (Scheme.ΓSpecIso (.of ℂ)).inv.hom.comp (MvPolynomial.eval v)

@[simp]
theorem vectorGlobalSections_apply (v : Fin (n + 1) → ℂ)
    (f : ProjectiveSpace.homogeneousCoordinateRing n) :
    vectorGlobalSections v f = (Scheme.ΓSpecIso (.of ℂ)).inv (MvPolynomial.eval v f) := rfl

@[simp]
theorem vectorGlobalSections_X (v : Fin (n + 1) → ℂ) (i : Fin (n + 1)) :
    vectorGlobalSections v (MvPolynomial.X i) = (Scheme.ΓSpecIso (.of ℂ)).inv (v i) := by
  simp [vectorGlobalSections]

/-- A nonzero coordinate vector makes the image of the irrelevant ideal
contain a unit. This is the genuine hypothesis required by the `Proj` map. -/
theorem vectorGlobalSections_map_irrelevant_eq_top (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) :
    (HomogeneousIdeal.irrelevant (ProjectiveSpace.projectiveGrading n)).toIdeal.map
      (vectorGlobalSections v) = ⊤ := by
  classical
  have hn : ∃ i, v i ≠ 0 := by
    by_contra h
    push Not at h
    exact hv (funext h)
  obtain ⟨i, hi⟩ := hn
  have hX : (MvPolynomial.X i : ProjectiveSpace.homogeneousCoordinateRing n) ∈
      (HomogeneousIdeal.irrelevant (ProjectiveSpace.projectiveGrading n)).toIdeal :=
    HomogeneousIdeal.mem_irrelevant_of_mem _ Nat.zero_lt_one (MvPolynomial.isHomogeneous_X ℂ i)
  apply Ideal.eq_top_of_isUnit_mem _ (Ideal.mem_map_of_mem (vectorGlobalSections v) hX)
  rw [vectorGlobalSections_X]
  exact (isUnit_iff_ne_zero.mpr hi).map (Scheme.ΓSpecIso (.of ℂ)).inv.hom

/-- The scheme-theoretic complex point with homogeneous coordinates v. -/
def projectiveVectorPoint (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) :
    ProjectiveSpace.complexBase ⟶ ProjectiveSpace.projectiveSpace n :=
  Proj.fromOfGlobalSections (ProjectiveSpace.projectiveGrading n) (vectorGlobalSections v)
    (vectorGlobalSections_map_irrelevant_eq_top v hv)

/-- Pulling back a homogeneous projective basic open amounts to testing
whether its polynomial evaluation is nonzero on `Spec ℂ`. -/
theorem projectiveVectorPoint_preimage_basicOpen (v : Fin (n + 1) → ℂ) (hv : v ≠ 0)
    (f : ProjectiveSpace.homogeneousCoordinateRing n) {d : ℕ} (hd : 0 < d)
    (hf : f ∈ ProjectiveSpace.projectiveGrading n d) :
    projectiveVectorPoint v hv ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f =
      PrimeSpectrum.basicOpen (MvPolynomial.eval v f) := by
  rw [projectiveVectorPoint, Proj.fromOfGlobalSections_preimage_basicOpen _ _ _ hd hf]
  exact basicOpen_eq_of_affine (R := .of ℂ) (MvPolynomial.eval v f)

/-- Membership of the underlying point in any positive-degree homogeneous
basic open is exactly nonvanishing of ordinary evaluation. -/
theorem projectiveVectorPoint_mem_basicOpen_iff (v : Fin (n + 1) → ℂ) (hv : v ≠ 0)
    (f : ProjectiveSpace.homogeneousCoordinateRing n) {d : ℕ} (hd : 0 < d)
    (hf : f ∈ ProjectiveSpace.projectiveGrading n d) (x : ProjectiveSpace.complexBase) :
    projectiveVectorPoint v hv x ∈ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔
      MvPolynomial.eval v f ≠ 0 := by
  change x ∈ projectiveVectorPoint v hv ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔ _
  rw [projectiveVectorPoint_preimage_basicOpen v hv f hd hf]
  change x ∈ PrimeSpectrum.basicOpen (MvPolynomial.eval v f) ↔ _
  rw [Subsingleton.elim x (default : ProjectiveSpace.complexBase)]
  change (MvPolynomial.eval v f ∉ (default : ProjectiveSpace.complexBase).asIdeal) ↔ _
  rw [Scheme.default_asIdeal]
  rfl

/-- In particular, the standard i-th projective chart contains this point
exactly when its i-th homogeneous coordinate is nonzero. -/
@[simp]
theorem projectiveVectorPoint_mem_coordinateOpen_iff (v : Fin (n + 1) → ℂ) (hv : v ≠ 0)
    (i : Fin (n + 1)) (x : ProjectiveSpace.complexBase) :
    projectiveVectorPoint v hv x ∈ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) (MvPolynomial.X i) ↔
      v i ≠ 0 := by
  simpa using projectiveVectorPoint_mem_basicOpen_iff v hv (MvPolynomial.X i)
    Nat.zero_lt_one (MvPolynomial.isHomogeneous_X ℂ i) x

/-- The constructed point is a morphism over the complex base, not merely an
unstructured scheme morphism into the projective scheme. -/
@[reassoc (attr := simp)]
theorem projectiveVectorPoint_over_base (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) :
    projectiveVectorPoint v hv ≫ ProjectiveSpace.projectiveSpaceToBase n = 𝟙 ProjectiveSpace.complexBase := by
  have hc : CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom ≫
      CommRingCat.ofHom ((vectorGlobalSections v).comp
        (algebraMap (ProjectiveSpace.projectiveGrading n 0) (ProjectiveSpace.homogeneousCoordinateRing n))) =
      (Scheme.ΓSpecIso (.of ℂ)).inv := by
    ext c
    change (Scheme.ΓSpecIso (.of ℂ)).inv (MvPolynomial.eval v (MvPolynomial.C c)) =
      (Scheme.ΓSpecIso (.of ℂ)).inv c
    simp
  rw [ProjectiveSpace.projectiveSpaceToBase, ← Category.assoc, projectiveVectorPoint,
    Proj.fromOfGlobalSections_toSpecZero, Category.assoc, ← Spec.map_comp, hc]
  exact toSpecΓ_SpecMap_ΓSpecIso_inv (.of ℂ)

end

end OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveVectorPoint