File size: 7,694 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
import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProperAnalyticImage

/-! # Fiber Cardinality -/

namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiberCardinality.Constructions.Cone

noncomputable section

/-!
# Local bounds on the cardinalities of proper analytic fibers

Each local prepared polynomial bounds the number of roots in its disk.
Properness ensures finitely many such disks cover all nearby fibers.
-/

open Set Filter _root_.Metric _root_.Complex _root_.Polynomial
open scoped _root_.Topology BigOperators

theorem eventually_fiber_mem_disk_union {n : β„•} {S : Set ((Fin n β†’ β„‚) Γ— β„‚)}
    {x : Fin n β†’ β„‚} (hproper : IsProperMap (fun p : S => p.val.1))
    (R : {z : β„‚ | (x, z) ∈ S} β†’ ℝ) (hR : βˆ€ a, 0 < R a) :
    βˆ€αΆ  y in 𝓝 x, βˆ€ z, (y, z) ∈ S β†’
      βˆƒ a : {z : β„‚ | (x, z) ∈ S}, z ∈ ball (a : β„‚) (R a) := by
  let O : Set ((Fin n β†’ β„‚) Γ— β„‚) :=
    ⋃ a : {z : β„‚ | (x, z) ∈ S}, Prod.snd ⁻¹' ball (a : β„‚) (R a)
  have hO : IsOpen O := isOpen_iUnion (fun a => isOpen_ball.preimage continuous_snd)
  let D : Set S := Subtype.val ⁻¹' Oᢜ
  have hD : IsClosed D := hO.isClosed_compl.preimage continuous_subtype_val
  have hclosed := hproper.isClosedMap D hD
  have hxnot : x βˆ‰ (fun p : S => p.val.1) '' D := by
    rintro ⟨⟨⟨y, z⟩, hyz⟩, hpD, hpx⟩
    dsimp only at hpx
    subst y
    exact hpD (mem_iUnion.mpr ⟨⟨z, hyz⟩, mem_ball_self (hR ⟨z, hyz⟩)⟩)
  filter_upwards [hclosed.isOpen_compl.mem_nhds hxnot] with y hy
  intro z hyz
  have hyo : (y, z) ∈ O := by
    by_contra hnot
    exact hy ⟨⟨(y, z), hyz⟩, hnot, rfl⟩
  obtain ⟨a, ha⟩ := mem_iUnion.mp hyo
  exact ⟨a, ha⟩

theorem exists_local_polynomial_bound {n : β„•} {S : Set ((Fin n β†’ β„‚) Γ— β„‚)}
    {x : Fin n β†’ β„‚} {c : β„‚} (hlocal : ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, c))
    (hfinite : {z : β„‚ | (x, z) ∈ S}.Finite) :
    βˆƒ (R : ℝ) (d : β„•) (U : Set (Fin n β†’ β„‚)) (P : (Fin n β†’ β„‚) β†’ Polynomial β„‚),
      0 < R ∧ IsOpen U ∧ x ∈ U ∧
      βˆ€ y ∈ U, (P y).Monic ∧ (P y).natDegree = d ∧
        βˆ€ z ∈ closedBall c R, (y, z) ∈ S β†’ (P y).eval z = 0 := by
  obtain ⟨R, d, m, U, Q, hR, hU, hx, _, _, hQ, heq⟩ :=
    PolynomialFibers.Constructions.Preparation.polynomial_equations_of_finite_fiber hlocal hfinite
  exact ⟨R, d, U, Q 0, hR, hU, hx, fun y hy =>
    ⟨(hQ y hy).1, (hQ y hy).2.1, fun z hz hzs => ((heq y hy z hz).mp hzs) 0⟩⟩

theorem eventually_bounded_fiber_cardinality {n : β„•}
    {S : Set ((Fin n β†’ β„‚) Γ— β„‚)} {x : Fin n β†’ β„‚}
    (hproper : IsProperMap (fun p : S => p.val.1))
    (hfinite : {z : β„‚ | (x, z) ∈ S}.Finite)
    (hlocal : βˆ€ z, (x, z) ∈ S β†’ ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, z)) :
    βˆƒ N : β„•, βˆ€αΆ  y in 𝓝 x, {z : β„‚ | (y, z) ∈ S}.Finite ∧
      {z : β„‚ | (y, z) ∈ S}.ncard ≀ N := by
  classical
  let K := {z : β„‚ | (x, z) ∈ S}
  let : Fintype K := hfinite.fintype
  have hprep := fun a : K => exists_local_polynomial_bound (hlocal a a.property) hfinite
  choose R d U P hR hU hx hP using hprep
  have hcover := eventually_fiber_mem_disk_union hproper R hR
  have hnear : βˆ€αΆ  y in 𝓝 x, βˆ€ a : K, y ∈ U a :=
    eventually_all.mpr (fun a => (hU a).mem_nhds (hx a))
  refine βŸ¨βˆ‘ a : K, d a, ?_⟩
  filter_upwards [hcover, hnear] with y hy hUy
  let H : Finset β„‚ := Finset.univ.biUnion (fun a : K => (P a y).roots.toFinset)
  have hsub : {z : β„‚ | (y, z) ∈ S} βŠ† (H : Set β„‚) := by
    intro z hz
    obtain ⟨a, ha⟩ := hy z hz
    exact Finset.mem_biUnion.mpr ⟨a, Finset.mem_univ _, Multiset.mem_toFinset.mpr
      ((mem_roots (hP a y (hUy a)).1.ne_zero).mpr
        ((hP a y (hUy a)).2.2 z (ball_subset_closedBall ha) hz))⟩
  have hcard : H.card ≀ βˆ‘ a : K, d a := by
    apply (Finset.card_biUnion_le).trans
    apply Finset.sum_le_sum
    intro a _
    exact (Multiset.toFinset_card_le _).trans
      ((card_roots' (P a y)).trans_eq (hP a y (hUy a)).2.1)
  refine ⟨H.finite_toSet.subset hsub, ?_⟩
  exact (ncard_le_ncard hsub H.finite_toSet).trans (by simpa only [ncard_coe_finset] using hcard)

theorem bounded_on_compact_of_locally_bounded {X : Type*} [TopologicalSpace X]
    {s : Set X} (hs : IsCompact s) {b : X β†’ β„•}
    (hlocal : βˆ€ x ∈ s, βˆƒ N : β„•, βˆ€αΆ  y in 𝓝 x, b y ≀ N) :
    βˆƒ N : β„•, βˆ€ x ∈ s, b x ≀ N := by
  classical
  choose N hN using (fun a : s => hlocal a a.property)
  have hopen := fun a : s => _root_.mem_nhds_iff.mp (hN a)
  choose U hUb hU hxU using hopen
  have hcover : s βŠ† ⋃ a : s, U a := fun x hx => mem_iUnion.mpr ⟨⟨x, hx⟩, hxU ⟨x, hx⟩⟩
  obtain ⟨t, ht⟩ := hs.elim_finite_subcover U hU hcover
  refine ⟨t.sup N, fun x hx => ?_⟩
  obtain ⟨a, hxa⟩ := mem_iUnion.mp (ht hx)
  obtain ⟨ha, hxa⟩ := mem_iUnion.mp hxa
  exact (hUb a hxa).trans (Finset.le_sup ha)

theorem fiber_eq_scaled_image
    {E : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    {S : Set (E Γ— β„‚)} (hcone : βˆ€ (a : β„‚) ⦃v⦄, v ∈ S β†’ a β€’ v ∈ S)
    {a : β„‚} (ha : a β‰  0) (y : E) :
    {z : β„‚ | (a β€’ y, z) ∈ S} = (fun z : β„‚ => a * z) '' {z : β„‚ | (y, z) ∈ S} := by
  ext z
  constructor
  Β· intro hz
    refine ⟨a⁻¹ * z, ?_, mul_inv_cancel_leftβ‚€ ha z⟩
    change (y, a⁻¹ * z) ∈ S
    have h := hcone a⁻¹ hz
    simpa only [Prod.smul_mk, smul_smul, inv_mul_cancelβ‚€ ha, one_smul, smul_eq_mul] using h
  · rintro ⟨w, hw, rfl⟩
    exact hcone a hw

theorem fiber_ncard_smul
    {E : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    {S : Set (E Γ— β„‚)} (hcone : βˆ€ (a : β„‚) ⦃v⦄, v ∈ S β†’ a β€’ v ∈ S)
    {a : β„‚} (ha : a β‰  0) (y : E) :
    {z : β„‚ | (a β€’ y, z) ∈ S}.ncard = {z : β„‚ | (y, z) ∈ S}.ncard := by
  rw [fiber_eq_scaled_image hcone ha y]
  exact ncard_image_of_injective _ (mul_right_injectiveβ‚€ ha)

/-- Scaling reduces a global fiber-cardinality bound to compactness of the
unit sphere; the vertex fiber is handled separately. -/
theorem bounded_fiber_cardinality_of_cone {n : β„•}
    {S : Set ((Fin n β†’ β„‚) Γ— β„‚)}
    (hproper : IsProperMap (fun p : S => p.val.1))
    (hfinite : βˆ€ y, {z : β„‚ | (y, z) ∈ S}.Finite)
    (hcone : βˆ€ (a : β„‚) ⦃v⦄, v ∈ S β†’ a β€’ v ∈ S)
    (hlocal : βˆ€ v ∈ S, v β‰  0 β†’ ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S v) :
    βˆƒ N : β„•, βˆ€ y, {z : β„‚ | (y, z) ∈ S}.ncard ≀ N := by
  have hb : βˆ€ y ∈ sphere (0 : Fin n β†’ β„‚) 1,
      βˆƒ N : β„•, βˆ€αΆ  x in 𝓝 y, {z : β„‚ | (x, z) ∈ S}.ncard ≀ N := by
    intro y hy
    have hy0 : y β‰  0 := by
      intro h
      simp only [h, mem_sphere, dist_self, zero_ne_one] at hy
    obtain ⟨N, hN⟩ := eventually_bounded_fiber_cardinality hproper (hfinite y)
      (fun z hz => hlocal (y, z) hz (fun h => hy0 (congrArg Prod.fst h)))
    exact ⟨N, hN.mono (fun _ h => h.2)⟩
  obtain ⟨N, hN⟩ := bounded_on_compact_of_locally_bounded (isCompact_sphere (0 : Fin n β†’ β„‚) 1) hb
  refine ⟨max N {z : β„‚ | ((0 : Fin n β†’ β„‚), z) ∈ S}.ncard, fun y => ?_⟩
  by_cases hy : y = 0
  Β· subst y
    exact le_max_right _ _
  let a : β„‚ := (β€–yβ€– : β„‚)⁻¹
  have ha : a β‰  0 := inv_ne_zero (ofReal_ne_zero.mpr (norm_ne_zero_iff.mpr hy))
  have hunit : a β€’ y ∈ sphere (0 : Fin n β†’ β„‚) 1 := by
    rw [mem_sphere_iff_norm, sub_zero, norm_smul]
    simp [a, norm_ne_zero_iff.mpr hy]
  rw [← fiber_ncard_smul hcone ha y]
  exact (hN (a β€’ y) hunit).trans (le_max_left _ _)

end

end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiberCardinality.Constructions.Cone