File size: 1,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 | import OAI.Analysis.Fourier.Restriction.Coloring
import Mathlib.Data.Finset.Max
import Mathlib.Data.Finset.Powerset
noncomputable section
namespace OAI.Analysis.Fourier.Restriction
/-- A finite set admits a separated net with centers in the set, without
ambient compactness or a pre-existing covering-number estimate. -/
theorem finite_separated_cover {X : Type*} [PseudoMetricSpace X]
(S : Finset X) {r : β} (hr : 0 < r) :
β T : Finset X, T β S β§
(β x β T, β y β T, x β y β r β€ dist x y) β§
β x β S, β y β T, dist x y < r := by
classical
let separated (T : Finset X) : Prop := β x β T, β y β T, x β y β r β€ dist x y
let candidates := S.powerset.filter separated
have hne : candidates.Nonempty := β¨β
, by simp [candidates, separated]β©
obtain β¨T, hT, hmaxβ© := Finset.exists_max_image candidates Finset.card hne
have hsub : T β S := Finset.mem_powerset.mp (Finset.mem_filter.mp hT).1
have hsep : separated T := (Finset.mem_filter.mp hT).2
refine β¨T, hsub, hsep, ?_β©
intro x hx
by_contra! hfar
have hxT : x β T := by
intro h
have H := hfar x h
exact hr.not_ge (by simpa using H)
have hins : separated (insert x T) := by
intro y hy z hz hyz
by_cases hyx : y = x
Β· subst y
exact hfar z ((Finset.mem_insert.mp hz).resolve_left hyz.symm)
Β· by_cases hzx : z = x
Β· subst z
simpa [dist_comm] using hfar y (Finset.mem_of_mem_insert_of_ne hy hyx)
Β· exact hsep y (Finset.mem_of_mem_insert_of_ne hy hyx)
z (Finset.mem_of_mem_insert_of_ne hz hzx) hyz
have hinc : insert x T β candidates := by
apply Finset.mem_filter.mpr
refine β¨Finset.mem_powerset.mpr (Finset.insert_subset hx hsub), hinsβ©
have H := hmax (insert x T) hinc
rw [Finset.card_insert_of_notMem hxT] at H
omega
end OAI.Analysis.Fourier.Restriction
|