cfahlgren1's picture
download
raw
9.49 kB
import OAI.Analysis.LipschitzEquivalence.SeparableCoordinates
namespace OAI
universe uM uN uB uIndex
noncomputable section
open scoped BigOperators InnerProductSpace Topology ENNReal
open scoped Topology ENNReal NNReal
open scoped Classical ENNReal NNReal InnerProductSpace Topology
open Filter Set
open scoped NNReal Topology
open Filter Set
namespace LipschitzCounterexample.LocalLipschitz
variable {M : Type uM} {N : Type uN} [MetricSpace M] [MetricSpace N]
def quotients (f : M → N) (S : Set M) : Set ℝ :=
{0} ∪ {r | ∃ x ∈ S, ∃ y ∈ S, r = dist (f x) (f y) / dist x y}
def constant (f : M → N) (S : Set M) : ℝ := sSup (quotients f S)
theorem quotients_nonempty (f : M → N) (S : Set M) : (quotients f S).Nonempty :=
⟨0,Or.inl rfl⟩
theorem quotient_le {f : M → N} {S : Set M} {L : ℝ≥0}
(hf : LipschitzOnWith L f S) {x y : M} (hx : x ∈ S) (hy : y ∈ S) :
dist (f x) (f y) / dist x y ≤ L := by
by_cases hxy : x = y
· simp [hxy]
· exact (div_le_iff₀ (dist_pos.mpr hxy)).mpr (hf.dist_le_mul x hx y hy)
theorem quotients_bounded {f : M → N} {S : Set M} {L : ℝ≥0}
(hf : LipschitzOnWith L f S) : BddAbove (quotients f S) := by
refine ⟨L,?_⟩
rintro r (rfl | ⟨x,hx,y,hy,rfl⟩)
· exact L.coe_nonneg
· exact quotient_le hf hx hy
theorem constant_nonneg {f : M → N} {S : Set M} {L : ℝ≥0}
(hf : LipschitzOnWith L f S) : 0 ≤ constant f S :=
le_csSup (quotients_bounded hf) (Or.inl rfl)
theorem constant_le {f : M → N} {S : Set M} {L : ℝ≥0}
(hf : LipschitzOnWith L f S) : constant f S ≤ L := by
apply csSup_le (quotients_nonempty f S)
rintro r (rfl | ⟨x,hx,y,hy,rfl⟩)
· exact L.coe_nonneg
· exact quotient_le hf hx hy
theorem lipschitzOn_constant {f : M → N} {S : Set M} {L : ℝ≥0}
(hf : LipschitzOnWith L f S) : LipschitzOnWith ⟨constant f S,constant_nonneg hf⟩ f S := by
apply LipschitzOnWith.of_dist_le_mul
intro x hx y hy
by_cases hxy : x = y
· simp [hxy]
· have hq : dist (f x) (f y) / dist x y ≤ constant f S :=
le_csSup (quotients_bounded hf) (Or.inr ⟨x,hx,y,hy,rfl⟩)
exact (div_le_iff₀ (dist_pos.mpr hxy)).mp hq
theorem subsequence_constants {B : Type uB} [Countable B] (O : B → Set M)
(f : ℕ → M → N) {L : ℝ≥0} (hf : ∀ i, LipschitzWith L (f i)) :
∃ a : B → ℝ, ∃ s : ℕ → ℕ, StrictMono s ∧
(∀ b, a b ∈ Icc (0 : ℝ) L) ∧
∀ b, Tendsto (fun i => constant (f (s i)) (O b)) atTop (𝓝 (a b)) := by
let v : ℕ → B → Icc (0 : ℝ) L := fun i b =>
⟨constant (f i) (O b), constant_nonneg (hf i).lipschitzOnWith,
constant_le (hf i).lipschitzOnWith⟩
obtain ⟨a,s,hs,ha⟩ := CompactSpace.tendsto_subseq v
refine ⟨fun b => a b,s,hs,fun b => (a b).property,?_⟩
intro b
exact (continuous_subtype_val.tendsto _).comp
((continuous_apply b).tendsto a |>.comp ha)
end LipschitzCounterexample.LocalLipschitz
namespace LipschitzCounterexample.LocalLipschitz
variable {M : Type uM} [MetricSpace M]
theorem uniform_zero_on_compact (f : ℕ → M → ℝ) {L : ℝ≥0}
(hf : ∀ i, LipschitzWith L (f i))
(hpoint : ∀ x, Tendsto (fun i => f i x) atTop (𝓝 0))
{K : Set M} (hK : IsCompact K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ i in atTop, ∀ x ∈ K, |f i x| < ε := by
classical
let δ : ℝ := ε / (2 * ((L : ℝ)+1))
have hδ : 0 < δ := div_pos hε (by positivity)
obtain ⟨t,ht,hcover⟩ := Metric.totallyBounded_iff.mp hK.totallyBounded δ hδ
let : Fintype t := ht.fintype
have hsmall : ∀ᶠ i in atTop, ∀ y : t, |f i y| < ε/2 := by
apply Filter.eventually_all.mpr
intro y
have hlim := (hpoint y.val).abs
simp only [abs_zero] at hlim
exact hlim.eventually (eventually_lt_nhds (half_pos hε))
filter_upwards [hsmall] with i hi x hx
obtain ⟨y,hy,hxy⟩ := Set.mem_iUnion₂.mp (hcover hx)
have hdist : dist x y < δ := hxy
have hLip := (hf i).dist_le_mul x y
rw [Real.dist_eq] at hLip
have htri : |f i x| ≤ |f i x-f i y|+|f i y| := by
simpa only [sub_add_cancel] using abs_add_le (f i x-f i y) (f i y)
have hδid : 2 * ((L : ℝ)+1) * δ = ε := by dsimp [δ]; field_simp
have hine := mul_lt_mul_of_pos_left hdist (show 0 < (L : ℝ)+1 by positivity)
have hy' := hi ⟨y,hy⟩
nlinarith [mul_nonneg L.coe_nonneg (dist_nonneg (x := x) (y := y))]
end LipschitzCounterexample.LocalLipschitz
namespace LipschitzCounterexample.LocalGeometry
open CoordinateSpaces LocalLipschitz
variable {M : Type uM} [MetricSpace M] {ι : ℕ → Type uIndex} [∀ n, Fintype (ι n)]
theorem scalar_local_lipschitz (D : M → Hilbert (ι := ι)) {L : ℝ≥0}
(hD : LipschitzWith L D) {O : Set M} (l : ℕ) (S : Set (Σ n, ι n))
(hS : ∀ x ∈ O, tail l (D x) ∈ space S) (b : Hilbert (ι := ι)) :
LipschitzOnWith
⟨L * (‖projection S b‖ + ‖head l b‖), mul_nonneg L.coe_nonneg (by positivity)⟩
(fun x => ⟪D x,b⟫_ℝ) O := by
apply LipschitzOnWith.of_dist_le_mul
intro x hx y hy
have hv : tail l (D x-D y) ∈ space S := by
rw [map_sub]
exact Submodule.sub_mem _ (hS x hx) (hS y hy)
have hid : ⟪D x,b⟫_ℝ-⟪D y,b⟫_ℝ =
⟪tail l (D x-D y),projection S b⟫_ℝ + ⟪D x-D y,head l b⟫_ℝ := by
rw [inner_projection S hv, ← inner_head, ← inner_add_left,
add_comm (tail l (D x-D y)), head_add_tail, inner_sub_left]
rw [Real.dist_eq, hid]
calc
|⟪tail l (D x-D y),projection S b⟫_ℝ+⟪D x-D y,head l b⟫_ℝ| ≤
|⟪tail l (D x-D y),projection S b⟫_ℝ|+|⟪D x-D y,head l b⟫_ℝ| := abs_add_le _ _
_ ≤ ‖tail l (D x-D y)‖*‖projection S b‖+‖D x-D y‖*‖head l b‖ :=
add_le_add (abs_real_inner_le_norm _ _) (abs_real_inner_le_norm _ _)
_ ≤ ‖D x-D y‖ * (‖projection S b‖+‖head l b‖) := by
dsimp [tail]
nlinarith [mul_le_mul_of_nonneg_right (norm_projection_le (tailSet l) (D x-D y))
(norm_nonneg (projection S b))]
_ ≤ (L * (‖projection S b‖+‖head l b‖)) * dist x y := by
have ht := hD.dist_le_mul x y
rw [dist_eq_norm] at ht
nlinarith [mul_le_mul_of_nonneg_right ht (show 0 ≤ ‖projection S b‖+‖head l b‖ by positivity)]
def LocalOrthogonality (D : M → Hilbert (ι := ι)) : Prop :=
∀ {I : Type} [Fintype I], ∀ z : I → M, Function.Injective z →
∃ r : ℝ, 0 < r ∧ ∃ l : ℕ, ∃ S : I → Set (Σ n, ι n),
Pairwise (fun i j => Disjoint (S i) (S j)) ∧
∀ i x, x ∈ Metric.ball (z i) r → tail l (D x) ∈ space (S i)
end LipschitzCounterexample.LocalGeometry
namespace LipschitzCounterexample.LocalGeometry
open CoordinateSpaces LocalLipschitz
variable {M : Type uM} [MetricSpace M] {ι : ℕ → Type uIndex} [∀ n, Fintype (ι n)]
def badSet {B : Type uB} (O : B → Set M) (a : B → ℝ) (η : ℝ) : Set M :=
{z | ∀ j, z ∈ O j → η ≤ a j}
theorem badSet_finite (D : M → Hilbert (ι := ι)) {L : ℝ≥0} (hL : 0 < L)
(hD : LipschitzWith L D) (hloc : LocalOrthogonality D)
(b : ℕ → Hilbert (ι := ι)) (hbn : ∀ i, ‖b i‖ ≤ 1)
(hb : ∀ a : Σ n, ι n, Tendsto (fun i => b i a.1 a.2) atTop (𝓝 0))
{B : Type uB} (O : B → Set M)
(hbase : ∀ z : M, ∀ r : ℝ, 0 < r → ∃ j, z ∈ O j ∧ O j ⊆ Metric.ball z r)
(a : B → ℝ)
(ha : ∀ j, Tendsto (fun i => constant (fun x => ⟪D x,b i⟫_ℝ) (O j)) atTop (𝓝 (a j)))
{η : ℝ} (hη : 0 < η) : (badSet O a η).Finite := by
classical
by_contra hn
have hinf : (badSet O a η).Infinite := hn
let e : ℕ ↪ badSet O a η := hinf.natEmbedding _
let t : ℝ := η / (4 * (L : ℝ))
have hL' : 0 < (L : ℝ) := hL
have ht : 0 < t := div_pos hη (by positivity)
obtain ⟨N,hN⟩ := exists_nat_gt (1 / t^2)
have hlarge : 1 < (N : ℝ) * t^2 := by
exact (div_lt_iff₀ (sq_pos_of_pos ht)).mp hN
let z : Fin N → M := fun j => (e j.val).val
have hz : Function.Injective z := by
intro i j hij
apply Fin.ext
apply e.injective
exact Subtype.ext hij
obtain ⟨r,hr,l,S,hS,hDS⟩ := hloc z hz
choose j hzj hj using fun k => hbase (z k) r hr
have hja (k : Fin N) : η ≤ a (j k) := (e k.val).property (j k) (hzj k)
have hhead : Tendsto (fun i => ‖head l (b i)‖) atTop (𝓝 0) := by
simpa using (head_tendsto_zero hb l).norm
have hbound (k : Fin N) : ∀ᶠ i in atTop, t ≤ ‖projection (S k) (b i)‖ := by
have hsmall := hhead.eventually (eventually_lt_nhds ht)
have hbig := (ha (j k)).eventually (eventually_gt_nhds (show η / 2 < a (j k) by linarith [hja k]))
filter_upwards [hsmall,hbig] with i hi hgi
have hconst := constant_le (scalar_local_lipschitz D hD l (S k)
(fun x hx => hDS k x (hj k hx)) (b i))
change constant (fun x => ⟪D x,b i⟫_ℝ) (O (j k)) ≤
(L : ℝ) * (‖projection (S k) (b i)‖+‖head l (b i)‖) at hconst
have htid : (L : ℝ) * t = η / 4 := by dsimp [t]; field_simp
nlinarith
obtain ⟨i,hi⟩ := (Filter.eventually_all.mpr hbound).exists
have hbessel := sum_projection_sq_le S hS (b i)
have hsum : ∑ k : Fin N, t^2 ≤ ∑ k : Fin N, ‖projection (S k) (b i)‖^2 := by
apply Finset.sum_le_sum
intro k hk
exact pow_le_pow_left₀ ht.le (hi k) 2
have hsum' : (N : ℝ) * t^2 ≤ ‖b i‖^2 := by
simpa using hsum.trans hbessel
nlinarith [hbn i, norm_nonneg (b i)]
end LipschitzCounterexample.LocalGeometry
end
end OAI

Xet Storage Details

Size:
9.49 kB
·
Xet hash:
7cf158212c1dc9e093324f47efd6449d400a74aaefcddf5dbfacac341792510f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.