File size: 9,993 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
183
184
185
186
187
188
189
190
191
192
/-
Copyright 2026 The Formal Conjectures Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file has been modified.
-/
import OAI.AlgebraicGeometry.ComplexPoint.BasicNe
import OAI.CategoryTheory.ConcreteCategory.Notation

/-! # Open -/

namespace OAI.AlgebraicGeometry.ComplexPoint

noncomputable section

open _root_.AlgebraicGeometry

/-!
# Complex points of open subschemes

Analytification respects restriction to an open subscheme. More precisely, complex points of an
open subscheme are canonically homeomorphic to the corresponding open subspace of the complex
points of the ambient scheme. In particular, an open immersion of this form induces an open
embedding on complex points.
-/

open _root_.CategoryTheory _root_.Topology

variable (X : Over (Spec ↧ℂ)) (U : X.left.Opens)

/-- An open subscheme with its induced complex structure. -/
abbrev Basic.ComplexSchemePoint.openScheme : Over (Spec ↧ℂ) :=
  Over.mk (U.ι ≫ X.hom)

/-- The inclusion of an open subscheme as a morphism over `Spec ℂ`. -/
abbrev Basic.ComplexSchemePoint.openInclusion :
    Basic.ComplexSchemePoint.openScheme X U ⟶ X :=
  Over.homMk U.ι rfl

/-- The image of a complex point lying in `U` is contained in the image of its inclusion. -/
lemma Basic.ComplexSchemePoint.point_range_subset (z : Basic.ComplexSchemePoint X) (hz : z ∈ Basic.Point.overOpen U) :
    Set.range z.left ⊆ Set.range U.ι := by
  rintro y ⟨x, rfl⟩
  rw [Scheme.Opens.range_ι]
  have hx : x = IsLocalRing.closedPoint ℂ := Subsingleton.elim (α := Spec ↧ℂ) _ _
  subst x
  exact hz

/-- A complex point in an open set factors through the corresponding open subscheme. -/
def Basic.ComplexSchemePoint.liftToOpen (z : Basic.ComplexSchemePoint X) (hz : z ∈ Basic.Point.overOpen U) :
    Spec ↧ℂ ⟶ U.toScheme :=
  IsOpenImmersion.lift U.ι z.left (Basic.ComplexSchemePoint.point_range_subset X U z hz)

@[reassoc (attr := simp)]
lemma Basic.ComplexSchemePoint.liftToOpen_fac (z : Basic.ComplexSchemePoint X) (hz : z ∈ Basic.Point.overOpen U) :
    Basic.ComplexSchemePoint.liftToOpen X U z hz ≫ U.ι = z.left :=
  IsOpenImmersion.lift_fac _ _ _

/-- A point of `X` lying in `U`, regarded as a complex point of the open subscheme `U`. -/
def Basic.ComplexSchemePoint.asOpenPoint (z : Basic.ComplexSchemePoint X) (hz : z ∈ Basic.Point.overOpen U) :
    Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U) :=
  Over.homMk (Basic.ComplexSchemePoint.liftToOpen X U z hz) (by
    change Basic.ComplexSchemePoint.liftToOpen X U z hz ≫ (U.ι ≫ X.hom) = 𝟙 _
    rw [← Category.assoc, Basic.ComplexSchemePoint.liftToOpen_fac]
    exact Over.w z)

/-- Complex points of an open subscheme are the ambient complex points lying in the open. -/
def Basic.ComplexSchemePoint.openEquiv :
    Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U) ≃
      {z : Basic.ComplexSchemePoint X // z ∈ Basic.Point.overOpen U} where
  toFun z := ⟨Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z, by
    change (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z).underlying ∈ U
    rw [Basic.Point.underlying_map]
    exact z.underlying.property⟩
  invFun z := Basic.ComplexSchemePoint.asOpenPoint X U z.1 z.2
  left_inv z := by
    apply Over.OverMorphism.ext
    symm
    apply IsOpenImmersion.lift_uniq U.ι (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z).left
    simp [Basic.Point.map]
  right_inv z := Subtype.ext (Over.OverMorphism.ext (Basic.ComplexSchemePoint.liftToOpen_fac X U z.1 z.2))

@[simp]
lemma Basic.ComplexSchemePoint.openEquiv_coe (z : Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U)) :
    (Basic.ComplexSchemePoint.openEquiv X U z).1 = Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z :=
  rfl

/-- The map from an open subscheme to its ambient open subspace is continuous. -/
lemma Basic.ComplexSchemePoint.continuous_openEquiv :
    @Continuous
      (Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U))
      {z : Basic.ComplexSchemePoint X // z ∈ Basic.Point.overOpen U}
      Basic.Point.analyticTopology (TopologicalSpace.induced Subtype.val Basic.Point.analyticTopology)
      (Basic.ComplexSchemePoint.openEquiv X U) :=
  @Continuous.subtype_mk
    (Basic.ComplexSchemePoint X)
    (Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U))
    Basic.Point.analyticTopology Basic.Point.analyticTopology
    (fun z ↦ z ∈ Basic.Point.overOpen U) (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U))
    (Basic.Point.continuous_map (Basic.ComplexSchemePoint.openInclusion X U)) _

/-- Evaluation is unchanged when both a point and a section are transported across equal opens. -/
lemma Basic.ComplexSchemePoint.evaluate_eq {Y : Over (Spec ↧ℂ)}
    {V W : Y.left.Opens} (e : V = W) (t : Γ(Y.left, V)) (z : Basic.ComplexSchemePoint Y) :
    Basic.Point.evaluate V t z = Basic.Point.evaluate W (Y.left.presheaf.map (eqToHom e.symm).op t) z := by aesop

/-- Evaluation commutes with the equivalence between an open subscheme and its ambient open. -/
lemma Basic.ComplexSchemePoint.evaluate_openEquiv {V : U.toScheme.Opens} (t : Γ(U.toScheme, V))
    (z : Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U)) :
    Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z) =
      Basic.Point.evaluate V t z := by
  rw [Basic.Point.evaluate_map]
  let e : U.ι ⁻¹ᵁ U.ι ''ᵁ V = V := U.ι.preimage_image_eq V
  let q := U.ι.app (U.ι ''ᵁ V) ((U.ι.appIso V).inv t)
  have hq : q = U.toScheme.presheaf.map (eqToHom e).op t := by
    change ((U.ι.appIso V).inv ≫ U.ι.app (U.ι ''ᵁ V)) t = _
    rw [U.ι.appIso_inv_app]
  calc
    Basic.Point.evaluate (U.ι ⁻¹ᵁ U.ι ''ᵁ V) q z =
        Basic.Point.evaluate V (U.toScheme.presheaf.map (eqToHom e.symm).op q) z :=
      Basic.ComplexSchemePoint.evaluate_eq (Y := Basic.ComplexSchemePoint.openScheme X U) e q z
    _ = Basic.Point.evaluate V t z := by
      congr 2
      rw [hq]
      change (U.toScheme.presheaf.map (eqToHom e).op ≫
        U.toScheme.presheaf.map (eqToHom e.symm).op) t = t
      rw [← Functor.map_comp]
      simp
      rfl

/-- The inverse map from the ambient open subspace is continuous. -/
lemma Basic.ComplexSchemePoint.continuous_openEquiv_symm :
    @Continuous
      {z : Basic.ComplexSchemePoint X // z ∈ Basic.Point.overOpen U}
      (Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U))
      (TopologicalSpace.induced Subtype.val Basic.Point.analyticTopology) Basic.Point.analyticTopology
      (Basic.ComplexSchemePoint.openEquiv X U).symm := by
  rw [Basic.Point.continuous_iff_analyticSubbasis]
  rintro W ⟨V, t, O, hO, rfl⟩
  let A : Set (Basic.ComplexSchemePoint X) := Basic.Point.overOpen (U.ι ''ᵁ V) ∩
    Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) ⁻¹' O
  have hA : @IsOpen (Basic.ComplexSchemePoint X) Basic.Point.analyticTopology A :=
    Basic.Point.isOpen_overOpen_inter_preimage _ _ _ hO
  rw [show (Basic.ComplexSchemePoint.openEquiv X U).symm ⁻¹'
      (Basic.Point.overOpen V ∩ Basic.Point.evaluate V t ⁻¹' O) = Subtype.val ⁻¹' A by
    ext y
    let z := (Basic.ComplexSchemePoint.openEquiv X U).symm y
    have hy : Basic.ComplexSchemePoint.openEquiv X U z = y :=
      (Basic.ComplexSchemePoint.openEquiv X U).apply_symm_apply y
    rw [← hy]
    simp only [Set.mem_preimage, Equiv.symm_apply_apply, Set.mem_inter_iff]
    change (z ∈ Basic.Point.overOpen V ∧ Basic.Point.evaluate V t z ∈ O) ↔
      (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z ∈ Basic.Point.overOpen (U.ι ''ᵁ V) ∧
        Basic.Point.evaluate (U.ι ''ᵁ V) ((U.ι.appIso V).inv t) (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) z) ∈ O)
    rw [Basic.ComplexSchemePoint.evaluate_openEquiv]
    exact and_congr_left' (by simp [Basic.Point.overOpen])]
  exact @isOpen_induced
    {z : Basic.ComplexSchemePoint X // z ∈ Basic.Point.overOpen U}
    (Basic.ComplexSchemePoint X) Basic.Point.analyticTopology Subtype.val A hA

/-- Analytification of an open subscheme is the corresponding analytic open subspace. -/
def Basic.ComplexSchemePoint.openHomeomorph :
    @Homeomorph
      (Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U))
      {z : Basic.ComplexSchemePoint X // z ∈ Basic.Point.overOpen U}
      Basic.Point.analyticTopology (TopologicalSpace.induced Subtype.val Basic.Point.analyticTopology) where
  toEquiv := Basic.ComplexSchemePoint.openEquiv X U
  continuous_toFun := Basic.ComplexSchemePoint.continuous_openEquiv X U
  continuous_invFun := Basic.ComplexSchemePoint.continuous_openEquiv_symm X U

/-- Inclusion of an open subscheme induces an open embedding on complex points. -/
lemma Basic.ComplexSchemePoint.isOpenEmbedding_map_open :
    IsOpenEmbedding (Basic.Point.map (Basic.ComplexSchemePoint.openInclusion X U) :
      Basic.ComplexSchemePoint (Basic.ComplexSchemePoint.openScheme X U) → Basic.ComplexSchemePoint X) := by
  have hU : IsOpen (Basic.Point.overOpen U : Set (Basic.ComplexSchemePoint X)) := Basic.Point.isOpen_overOpen (X := X) U
  have h := hU.isOpenEmbedding_subtypeVal.comp (Basic.ComplexSchemePoint.openHomeomorph X U).isOpenEmbedding
  simpa [Function.comp_def, Basic.ComplexSchemePoint.openHomeomorph, Basic.ComplexSchemePoint.openEquiv] using h

end

end OAI.AlgebraicGeometry.ComplexPoint