File size: 6,894 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
import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalStalk
import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme

/-! # Birational Local Section -/

namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection

noncomputable section

/-! Above a valuation-ring point, the actual inverse stalk isomorphism
constructs a local section of a birational scheme map. Separatedness will
compare these sections through their common generic restriction. -/

set_option backward.isDefEq.respectTransparency false

open _root_.CategoryTheory _root_.AlgebraicGeometry

universe u

variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y]
  (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y)
  [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (y : Y) (x : X) (hx : f x = y)

def pointStalkMap : Y.presheaf.stalk y ⟶ X.presheaf.stalk x :=
  (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫ f.stalkMap x

include hη in
theorem pointStalkMap_isIso [ValuationRing (Y.presheaf.stalk y)] :
    IsIso (pointStalkMap f y x hx) := by
  let : ValuationRing (Y.presheaf.stalk (f x)) := by rw [hx]; infer_instance
  let := BirationalStalk.stalkMap_isIso_of_valuation f hη x
  unfold pointStalkMap
  infer_instance

omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in
theorem pointStalkMap_functionField :
    pointStalkMap f y x hx ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) =
      CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫
        Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by
  have hc : f.stalkMap x ≫ CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField) =
      CommRingCat.ofHom (algebraMap (Y.presheaf.stalk (f x)) Y.functionField) ≫
        Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη := by
    ext a
    exact (Divisor.DivisorRestriction.genericFieldMap_stalk f hη x a).symm
  rw [pointStalkMap, Category.assoc, hc, ← Category.assoc]
  congr 1
  change (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom ≫
    Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial) =
      Y.presheaf.stalkSpecializes ((genericPoint_spec Y).specializes trivial)
  rw [TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.stalkSpecializes_comp]

def localSection [ValuationRing (Y.presheaf.stalk y)] : Spec (Y.presheaf.stalk y) ⟶ X :=
  letI := pointStalkMap_isIso f hη y x hx
  Spec.map (asIso (pointStalkMap f y x hx)).inv ≫ X.fromSpecStalk x

theorem localSection_comp [ValuationRing (Y.presheaf.stalk y)] :
    localSection f hη y x hx ≫ f = Y.fromSpecStalk y := by
  let := pointStalkMap_isIso f hη y x hx
  have he : f.stalkMap x ≫ (asIso (pointStalkMap f y x hx)).inv =
      (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).inv := by
    apply (cancel_epi (Y.presheaf.stalkCongr (Inseparable.of_eq hx.symm)).hom).mp
    rw [← Category.assoc]
    change pointStalkMap f y x hx ≫ (asIso (pointStalkMap f y x hx)).inv = _
    simp
  rw [localSection, Category.assoc, ← Scheme.SpecMap_stalkMap_fromSpecStalk,
    ← Spec.map_comp_assoc, he, TopCat.Presheaf.stalkCongr_inv,
    Scheme.SpecMap_stalkSpecializes_fromSpecStalk]

theorem localSection_closedPoint [ValuationRing (Y.presheaf.stalk y)] :
    localSection f hη y x hx (IsLocalRing.closedPoint (Y.presheaf.stalk y)) = x := by
  let := pointStalkMap_isIso f hη y x hx
  rw [localSection, Scheme.Hom.comp_apply, Spec_closedPoint,
    Scheme.fromSpecStalk_closedPoint]

def genericApproachMap : Spec X.functionField ⟶ Spec (Y.presheaf.stalk y) :=
  Spec.map (CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) ≫
    Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)

omit [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] in
instance genericApproachMap_isDominant : IsDominant (genericApproachMap f hη y) := by
  refine ⟨?_⟩
  change DenseRange (PrimeSpectrum.comap
    ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp (algebraMap (Y.presheaf.stalk y) Y.functionField)))
  have hi : Function.Injective ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp
      (algebraMap (Y.presheaf.stalk y) Y.functionField)) :=
    (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.injective.comp
      (IsFractionRing.injective (Y.presheaf.stalk y) Y.functionField)
  rw [PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical,
    (RingHom.injective_iff_ker_eq_bot _).mp hi]
  exact bot_le

theorem genericApproach_localSection [ValuationRing (Y.presheaf.stalk y)] :
    genericApproachMap f hη y ≫ localSection f hη y x hx = Normalization.Scheme.genericMap X := by
  let := pointStalkMap_isIso f hη y x hx
  rw [genericApproachMap, localSection, ← Spec.map_comp_assoc,
    ← pointStalkMap_functionField f hη y x hx, ← Category.assoc]
  change Spec.map ((asIso (pointStalkMap f y x hx)).inv ≫
    (asIso (pointStalkMap f y x hx)).hom ≫
      CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField)) ≫ _ = _
  rw [Iso.inv_hom_id_assoc]
  change Spec.map (X.presheaf.stalkSpecializes ((genericPoint_spec X).specializes trivial)) ≫
    X.fromSpecStalk x = _
  rw [Scheme.SpecMap_stalkSpecializes_fromSpecStalk]
  rfl

include hη in
theorem valuationFiber_unique [IsSeparated f] [ValuationRing (Y.presheaf.stalk y)]
    (x₁ x₂ : X) (h₁ : f x₁ = y) (h₂ : f x₂ = y) : x₁ = x₂ := by
  have hs : localSection f hη y x₁ h₁ = localSection f hη y x₂ h₂ :=
    ext_of_isDominant_of_isSeparated f
      ((localSection_comp f hη y x₁ h₁).trans (localSection_comp f hη y x₂ h₂).symm)
      (genericApproachMap f hη y)
      ((genericApproach_localSection f hη y x₁ h₁).trans
        (genericApproach_localSection f hη y x₂ h₂).symm)
  have h := congrArg (fun s : Spec (Y.presheaf.stalk y) ⟶ X =>
    s (IsLocalRing.closedPoint (Y.presheaf.stalk y))) hs
  simpa only [localSection_closedPoint] using h

include hη in
theorem proper_valuationFiber_unique [IsProper f] [ValuationRing (Y.presheaf.stalk y)] :
    ∃! x : X, f x = y := by
  let : IsDominant f := by
    refine ⟨?_⟩
    rw [denseRange_iff_closure_range]
    apply Set.eq_univ_of_univ_subset
    rw [← genericPoint_spec Y]
    apply closure_mono
    exact Set.singleton_subset_iff.mpr ⟨genericPoint X, hη⟩
  let : Surjective f := surjective_of_isDominant_of_isClosed_range f
    (f.isClosedMap.isClosed_range)
  obtain ⟨a, ha⟩ := f.surjective y
  exact ⟨a, ha, fun b hb => valuationFiber_unique f hη y b a hb ha⟩

end

end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalLocalSection