File size: 8,377 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
import Mathlib.AlgebraicGeometry.ProjectiveSpectrum.Proper
import Mathlib.AlgebraicGeometry.Noetherian
import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace
import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpaceFiniteType
import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjective

/-! # Closed Projective -/

namespace OAI.AlgebraicGeometry.Foundations.Scheme

/-!
# Algebraic consequences of a closed immersion into a projective spectrum

These lemmas concern actual schemes, morphisms, and the `Proj` construction in
mathlib. They supply properness, finite type, and Noetherian consequences used
by a projective presentation. Compactness here refers to the scheme's Zariski
topology; no assertion about an analytification is made in this module.
-/

set_option autoImplicit false
set_option warningAsError true

open _root_.CategoryTheory _root_.AlgebraicGeometry

universe u

section General

variable {X Y : Scheme.{u}} (f : X ⟢ Y)

/-- Proper morphisms are quasi-compact and locally of finite type, the two
conditions defining a morphism of finite type. -/
theorem ClosedProjective.finiteType_of_isProper [IsProper f] :
    LocallyOfFiniteType f ∧ QuasiCompact f :=
  ⟨inferInstance, inferInstance⟩

/-- A proper scheme over a Noetherian affine scheme is Noetherian. -/
theorem ClosedProjective.isNoetherian_of_isProper_toSpec {R : Type u} [CommRing R]
    [IsNoetherianRing R] (g : X ⟢ Spec (.of R)) [IsProper g] :
    AlgebraicGeometry.IsNoetherian X := by
  let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian g
  let : CompactSpace X := (quasiCompact_iff_compactSpace g).mp inferInstance
  exact ⟨⟩

end General

section ProjectiveSpectrum

variable {Οƒ A : Type u} [CommRing A] [SetLike Οƒ A] [AddSubgroupClass Οƒ A]
variable (π’œ : β„• β†’ Οƒ) [GradedRing π’œ] [Algebra.FiniteType (π’œ 0) A]
variable {X : Scheme.{u}} (i : X ⟢ Proj π’œ) [IsClosedImmersion i]

/-- A closed subscheme of a finite-type projective spectrum is proper over its
actual degree-zero ring. -/
theorem ClosedProjective.closedImmersion_proj_isProper :
    IsProper (i ≫ Proj.toSpecZero π’œ) := by
  infer_instance

/-- The morphism in `closedImmersion_proj_isProper` is of finite type. -/
theorem ClosedProjective.closedImmersion_proj_finiteType :
    LocallyOfFiniteType (i ≫ Proj.toSpecZero π’œ) ∧
      QuasiCompact (i ≫ Proj.toSpecZero π’œ) :=
  ClosedProjective.finiteType_of_isProper _

include π’œ i in
/-- Algebraic (Zariski) compactness of a closed subscheme of `Proj`. -/
theorem ClosedProjective.closedImmersion_proj_compactSpace : CompactSpace X :=
  (quasiCompact_iff_compactSpace (i ≫ Proj.toSpecZero π’œ)).mp inferInstance

include π’œ i in
/-- A closed subscheme of a finite-type `Proj` is Noetherian when the
actual degree-zero coefficient ring is Noetherian. -/
theorem ClosedProjective.closedImmersion_proj_isNoetherian [IsNoetherianRing (π’œ 0)] :
    AlgebraicGeometry.IsNoetherian X :=
  ClosedProjective.isNoetherian_of_isProper_toSpec (i ≫ Proj.toSpecZero π’œ)

/-- Properness survives an arbitrary scheme-theoretic base change. -/
theorem ClosedProjective.closedImmersion_proj_baseChange_isProper {T : Scheme.{u}}
    (g : T ⟢ Spec (.of (π’œ 0))) :
    IsProper (Limits.pullback.snd (i ≫ Proj.toSpecZero π’œ) g) := by
  infer_instance

/-- Finite type survives the same scheme-theoretic base change. -/
theorem ClosedProjective.closedImmersion_proj_baseChange_finiteType {T : Scheme.{u}}
    (g : T ⟢ Spec (.of (π’œ 0))) :
    LocallyOfFiniteType (Limits.pullback.snd (i ≫ Proj.toSpecZero π’œ) g) ∧
      QuasiCompact (Limits.pullback.snd (i ≫ Proj.toSpecZero π’œ) g) :=
  ClosedProjective.finiteType_of_isProper _

/-- An actual surjective identification of base rings yields a proper
morphism to the target affine scheme, without adding properness as a premise. -/
theorem ClosedProjective.closedImmersion_proj_changeBase_isProper {R : Type u} [CommRing R]
    (Ο† : R β†’+* (π’œ 0)) (hΟ† : Function.Surjective Ο†) :
    IsProper (i ≫ Proj.toSpecZero π’œ ≫ Spec.map (CommRingCat.ofHom Ο†)) := by
  let : IsClosedImmersion (Spec.map (CommRingCat.ofHom Ο†)) :=
    IsClosedImmersion.spec_of_surjective (CommRingCat.ofHom φ) hφ
  infer_instance

end ProjectiveSpectrum

/-- The standard complex projective-space structure morphism is proper.
The degree-zero ring is related to the complex base by the proved constants
isomorphism, rather than an assumed comparison. -/
instance ClosedProjective.projectiveSpaceToBase_isProper (n : β„•) :
    IsProper (ProjectiveSpace.projectiveSpaceToBase n) := by
  unfold ProjectiveSpace.projectiveSpaceToBase
  let : IsClosedImmersion
      (Spec.map (CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom)) :=
    IsClosedImmersion.spec_of_surjective
      (CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom)
      (ProjectiveSpace.degreeZeroConstants n).surjective
  infer_instance

/-- Finite type of the actual complex projective-space structure morphism. -/
theorem ClosedProjective.projectiveSpaceToBase_finiteType (n : β„•) :
    LocallyOfFiniteType (ProjectiveSpace.projectiveSpaceToBase n) ∧
      QuasiCompact (ProjectiveSpace.projectiveSpaceToBase n) :=
  ClosedProjective.finiteType_of_isProper _

/-- Standard complex projective space is a Noetherian scheme. -/
instance ClosedProjective.projectiveSpace_isNoetherian (n : β„•) :
    AlgebraicGeometry.IsNoetherian (ProjectiveSpace.projectiveSpace n) :=
  ClosedProjective.isNoetherian_of_isProper_toSpec (ProjectiveSpace.projectiveSpaceToBase n)

/-- A genuine closed projective embedding supplies properness over the complex
base; this property need not be added as a field of a presentation. -/
theorem ClosedProjective.closedImmersion_projectiveSpace_isProper {X : Scheme} (n : β„•)
    (i : X ⟢ ProjectiveSpace.projectiveSpace n) [IsClosedImmersion i] :
    IsProper (i ≫ ProjectiveSpace.projectiveSpaceToBase n) := by
  infer_instance

section

variable {X : Scheme} {f : X ⟢ ProjectiveSpace.complexBase} (P : SmoothProjective.ProjectivePresentation X f)

include P

/-- Properness is a consequence of the actual chosen projective embedding. -/
theorem SmoothProjective.ProjectivePresentation.isProper : IsProper f := by
  rw [P.structureMap_eq]
  exact ClosedProjective.closedImmersion_projectiveSpace_isProper P.ambientDimension P.embedding

/-- Both conditions of finite type follow from the chosen projective embedding. -/
theorem SmoothProjective.ProjectivePresentation.finiteType : LocallyOfFiniteType f ∧ QuasiCompact f := by
  let : IsProper f := P.isProper
  exact ClosedProjective.finiteType_of_isProper f

/-- The carrier of an actual complex projective presentation is Noetherian. -/
theorem SmoothProjective.ProjectivePresentation.isNoetherian : AlgebraicGeometry.IsNoetherian X := by
  let : IsProper f := P.isProper
  exact ClosedProjective.isNoetherian_of_isProper_toSpec f

/-- Finite presentation locally on source and target follows because the base
is the spectrum of the Noetherian field of complex numbers. -/
theorem SmoothProjective.ProjectivePresentation.locallyOfFinitePresentation : LocallyOfFinitePresentation f := by
  let : IsProper f := P.isProper
  infer_instance

/-- The actual projective presentation remains proper after any base change. -/
theorem SmoothProjective.ProjectivePresentation.baseChange_isProper {T : Scheme} (g : T ⟢ ProjectiveSpace.complexBase) :
    IsProper (Limits.pullback.snd f g) := by
  let : IsProper f := P.isProper
  infer_instance

end

variable (P : SmoothProjective.SmoothProjectivePresentation)

/-- The properness instance is proved from projectivity, not stored in the
smooth-projective data. -/
instance SmoothProjective.SmoothProjectivePresentation.isProper : IsProper P.structureMap := P.projective.isProper

/-- The scheme underlying a smooth projective presentation is Noetherian. -/
instance SmoothProjective.SmoothProjectivePresentation.isNoetherian : AlgebraicGeometry.IsNoetherian P.carrier :=
  P.projective.isNoetherian

/-- The structure morphism of a smooth projective presentation is of finite type. -/
theorem SmoothProjective.SmoothProjectivePresentation.finiteType : LocallyOfFiniteType P.structureMap ∧ QuasiCompact P.structureMap :=
  ClosedProjective.finiteType_of_isProper _

end OAI.AlgebraicGeometry.Foundations.Scheme