File size: 9,712 Bytes
dd14c26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
import Mathlib
import OAI.Probability.LatticeSurface.Coercivity.SparseAmbient
import OAI.Probability.LatticeSurface.Coercivity.SparseColor
import OAI.Probability.LatticeSurface.Coercivity.SparseEntropy
import OAI.Probability.LatticeSurface.Coercivity.SparseGeodesic
import OAI.Probability.LatticeSurface.Coercivity.SparseGeometry
import OAI.Probability.LatticeSurface.Coercivity.SparseGradients
import OAI.Probability.LatticeSurface.Coercivity.SparseModel
import OAI.Probability.LatticeSurface.Coercivity.SparseParameters
import OAI.Probability.LatticeSurface.Coercivity.SparsePaths
import OAI.Probability.LatticeSurface.Coercivity.SparseProb
import OAI.Probability.LatticeSurface.Coercivity.SparseSeparated
import OAI.Probability.LatticeSurface.Coercivity.SparseWitnessModel
import OAI.Probability.LatticeSurface.Convexity.BoundedBase
import OAI.Probability.LatticeSurface.Convexity.BrunnMinkowski
import OAI.Probability.LatticeSurface.Convexity.CubePrekopa
import OAI.Probability.LatticeSurface.Convexity.GradientWindows
import OAI.Probability.LatticeSurface.Convexity.QuantileTransport
import OAI.Probability.LatticeSurface.Convexity.WeightedPrekopa
import OAI.Probability.LatticeSurface.Dynamics.DisplacementInequality
import OAI.Probability.LatticeSurface.Geometry.BlockVolume
import OAI.Probability.LatticeSurface.Geometry.CapCentral
import OAI.Probability.LatticeSurface.Geometry.CapCompact
import OAI.Probability.LatticeSurface.Geometry.CapContract
import OAI.Probability.LatticeSurface.Geometry.CapCoordinates
import OAI.Probability.LatticeSurface.Geometry.CapMatching
import OAI.Probability.LatticeSurface.Geometry.CapOrient
import OAI.Probability.LatticeSurface.Geometry.CapReflection
import OAI.Probability.LatticeSurface.Geometry.CapSmall
import OAI.Probability.LatticeSurface.Geometry.CapSplit
import OAI.Probability.LatticeSurface.Geometry.CapUnpin
import OAI.Probability.LatticeSurface.Geometry.CapWeld
import OAI.Probability.LatticeSurface.Geometry.TriangularCover
import OAI.Probability.LatticeSurface.Geometry.TriangularGeometry
import OAI.Probability.LatticeSurface.Moments.ControlledGradients
import OAI.Probability.LatticeSurface.Moments.OrderedGradients

namespace OAI

open Set MeasureTheory Filter

open scoped Topology

noncomputable section

namespace FacetVolume

end FacetVolume

namespace ExtremalEdges

open scoped ENNReal

end ExtremalEdges

noncomputable section

open MeasureTheory Set

open scoped ENNReal

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*}

end ExtremalEdges

noncomputable section

namespace ExtremalEdges

open Finset

variable {V I : Type*} [Fintype V] [Fintype I]

attribute [local instance] Classical.propDecidable

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V I : Type*} [Fintype V] [Fintype I]

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

end ExtremalEdges

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

variable {V : Type*} [Fintype V]

end ExtremalEdges

open MeasureTheory

open scoped ENNReal

noncomputable section

namespace TriangularLipschitz

end TriangularLipschitz

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace ExtremalEdges

attribute [local instance] Classical.propDecidable

end ExtremalEdges

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

noncomputable section

open scoped BigOperators

namespace SparsePaths

attribute [local instance] Classical.propDecidable

end SparsePaths

noncomputable section

open scoped BigOperators

namespace SparseWitness

attribute [local instance] Classical.propDecidable

end SparseWitness

noncomputable section

open Set MeasureTheory

open scoped BigOperators

namespace SparseWitness

attribute [local instance] Classical.propDecidable

end SparseWitness

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

open Filter

open scoped Topology

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

end SparseBlocks

namespace SparseBlocks

attribute [local instance] Classical.propDecidable

local instance zeroPinnedSparseDecidableEq (sort : Sort*) : DecidableEq sort :=
  Classical.typeDecidableEq sort

lemma law_real_all (V : Finset Vertex) (S : Set (V → ℝ)) :
    (law V).real S = (volume (body V ∩ S)).toReal / (volume (body V)).toReal := by
  simp only [Measure.real,law,Measure.smul_apply,    Measure.restrict_apply' (closed_body V).measurableSet,smul_eq_mul,
    ENNReal.toReal_mul,ENNReal.toReal_inv]
  rw [Set.inter_comm,div_eq_mul_inv,mul_comm]

lemma law_real_of_subset (V : Finset Vertex) (S : Set (V → ℝ)) (hS : S ⊆ body V) :
    (law V).real S = (volume S).toReal / (volume (body V)).toReal := by
  rw [law_real_all,Set.inter_eq_right.mpr hS]

theorem zero_pinned_sparse (ρ : ℝ) (hρ : 0 < ρ) (m : ℕ) :
    ∃ p : Parameters, ∀ (V : Finset Vertex) (A : Finset Vertex),
    (volume {h : V → ℝ | h ∈ body V ∧ ∀ z ∈ A, thickBad p V h m z}).toReal /
       (volume (body V)).toReal ≤ ρ^A.card := by
  let P := 2*m+4
  have hP : 0 < P := by dsimp [P];omega
  let D : ℝ := (offsets m).card
  have hD : 0 < D := by dsimp [D];rw [offsets_card];positivity
  let β := min ρ 1
  have hβ : 0 < β := lt_min hρ (by norm_num)
  have hβ1 : β ≤ 1 := min_le_right _ _
  let θ := β^(P^2)/D
  have hθ : 0 < θ := div_pos (pow_pos hβ _) hD
  obtain ⟨p,hp⟩ := separated_parameters θ hθ
  refine ⟨p,?_⟩
  intro V A
  let f : A → Fin P × Fin P := fun z => color P hP z.val
  obtain ⟨c,hc⟩ := SparseWitness.large_fiber f
  let B : Finset A := Finset.univ.filter (fun i => f i = c)
  have hsize : A.card ≤ P^2*B.card := by
    simp only [Fintype.card_coe,Fintype.card_prod,Fintype.card_fin] at hc
    convert hc using 1; simp [B,pow_two]
    apply congrArg Finset.card
    ext i
    simp
  let z : B → Vertex := fun i => i.val.val
  have hcolor (i j : B) : color P hP (z i) = color P hP (z j) := by
    exact (Finset.mem_filter.mp i.property).2.trans (Finset.mem_filter.mp j.property).2.symm
  have hne (i j : B) (hij : i ≠ j) : z i ≠ z j := by
    intro hh
    exact hij (Subtype.ext (Subtype.ext hh))
  let S : Set (V → ℝ) := {h | h ∈ body V ∧ ∀ zz ∈ A, thickBad p V h m zz}
  let T : (B → offsets m) → Set (V → ℝ) := fun t =>
    {h | h ∈ body V ∧ ∀ i, bad p V h (z i+(t i).val)}
  have hsub : S ⊆ ⋃ t : B → offsets m, T t := by
    intro h hh
    have hw (i : B) : ∃ t : offsets m, bad p V h (z i+t.val) := by
      obtain ⟨w,hw1,hw2,hbad⟩ := hh.2 (z i) i.val.property
      let t : offsets m := ⟨w-z i,(offsets_mem m _).mpr ⟨hw1,hw2⟩⟩
      refine ⟨t,?_⟩
      simpa only [t,add_sub_cancel] using hbad
    choose t ht using hw
    exact Set.mem_iUnion.mpr ⟨t,hh.1,ht⟩
  have hbound (t : B → offsets m) : (law V).real (T t) ≤ θ^B.card := by
    have hdisj (i j : B) (hij : i ≠ j) :
        Disjoint (sites p.L (z i+(t i).val)) (sites p.L (z j+(t j).val)) := by
      apply sites_disjoint (L_pos p)
      exact perturbed_color_distance m (z i) (z j) (hne i j hij) (hcolor i j) (t i) (t j)
    simpa only [Fintype.card_coe] using hp V B (fun i => z i+(t i).val) hdisj
  have hprob : (law V).real S ≤ ρ^A.card := by
    calc
      _ ≤ (law V).real (⋃ t : B → offsets m, T t) := measureReal_mono hsub (measure_ne_top _ _)
      _ ≤ ∑ t : B → offsets m, (law V).real (T t) := measureReal_iUnion_fintype_le _
      _ ≤ ∑ _t : B → offsets m, θ^B.card := Finset.sum_le_sum (fun t _ => hbound t)
      _ = (D*θ)^B.card := by
        simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fun,Fintype.card_coe,
          nsmul_eq_mul,Nat.cast_pow,mul_pow,D]
      _ = β^(P^2*B.card) := by
        rw [show D*θ = β^(P^2) by dsimp [θ];field_simp, pow_mul]
      _ ≤ β^A.card := pow_le_pow_of_le_one hβ.le hβ1 hsize
      _ ≤ ρ^A.card := pow_le_pow_left₀ hβ.le (min_le_left _ _) _
  change (volume S).toReal / (volume (body V)).toReal ≤ _
  rw [← law_real_of_subset V S (fun _ hh => hh.1)]
  exact hprob

end SparseBlocks

end
end
end
end
end
end
end

end OAI