lemmaborelAction_eq_levelClamp (hT : IsMetricCurrentT) (hμ : ControlsT μ)
{f : X→ℝ} (hf : Integrable f μ) (π : Fin k →X→ℝ)
(hπ : ∀ j, ∃K : ℝ≥0, LipschitzWithK (π j)) (i : Fin k) (c : ℝ)
(hc : ∀ x, f x ≠0→ π i x = c) {ε : ℝ} (hε : 0 < ε) :
borelAction μ hT f π =
borelAction μ hT f (Function.update π i (levelClamp c ε (π i))) :=by
proof · 44
lines
classical
obtain ⟨K, hK⟩ := hπ i
let v := levelClamp c ε (π i)
letw : X→ℝ:=fun x => π i x - v x
letζ : X→ℝ:=fun x => max 0 (ε - dist (π i x) c)
havehv : LipschitzWithK v := levelClamp_lipschitz hK
havehw : ∃L : ℝ≥0, LipschitzWithL w := ⟨K + K, hK.sub hv⟩
havehζ : BoundedLip ζ :=by
apply Foundations.boundedLip_of_lipschitz
havehd : LipschitzWithK (fun x => dist (π i x) c) :=by simpa only [one_mul, Function.comp_def] using (LipschitzWith.dist_left c).comp hK
simpa using ((LipschitzWith.const ε).sub hd).const_max 0let ρ :=Function.update π i w
havehρ : ∀ j, ∃L : ℝ≥0, LipschitzWithL (ρ j) :=by
intro j
by_cases hji : j = i
· simpa [ρ, hji] using hw
· simpa [ρ, Function.update_of_ne hji] using hπ j
havehz : borelAction μ hT (fun x => f x * ζ x) ρ = 0:=by
apply borelAction_locality_mul μ hT hμ hf hζ ρ hρ
refine ⟨i, {x | dist (π i x) c < ε}, 0,
isOpen_lt (hK.continuous.dist continuous_const) continuous_const, ?_, ?_⟩
· intro x hx
change max 0 (ε - dist (π i x) c) ≠0 at hx
change dist (π i x) c < ε
by_contra h
exact hx (max_eq_left (by linarith [le_of_not_gt h]))
· intro x hx
simp only [ρ, Function.update_self]
change π i x - levelClamp c ε (π i) x = 0
rw [levelClamp_eq (by simpa [Real.dist_eq] using hx), sub_self]
haveheq : (fun x => f x * ζ x) = ε • f :=by
funext x
by_cases hfx : f x = 0
· simp [hfx]
· simp [ζ, hc x hfx, max_eq_right hε.le, mul_comm]
rw [heq, borelAction_smul μ hT hf ρ ε hρ] at hz
havehzero : borelAction μ hT f ρ = 0:= (mul_eq_zero.mp hz).resolve_left hε.ne'
have hlin := borelAction_linearCoord μ hT hμ hf π hπ i v ⟨K, hv⟩ 1 (-1)
havehform : Function.update π i (fun x =>1 * π i x + -1 * v x) = ρ :=by
simp only [one_mul, neg_one_mul, ← sub_eq_add_neg]
rfl
rw [hform, hzero] at hlin
linarith
apply LipschitzWith.of_dist_le_mul
intro x y
simp only [metricCone,Real.dist_eq,add_sub_add_left_eq_sub,←mul_sub,
abs_mul,abs_of_nonneg K.coe_nonneg]
exact mul_le_mul_of_nonneg_left (abs_dist_sub_le x y q) K.coe_nonneg
induction n with
| zero => exact metricCone_lipschitz φ K _
| succ n ih => simpa only [metricConeApprox,max_self] using ih.min (metricCone_lipschitz φ K _)
lemmametricConeApprox_tendsto {φ : Y→ℝ} {K : ℝ≥0} (hφ : LipschitzWithK φ) (x : Y) :
Tendsto (fun n => metricConeApprox φ K n x) atTop (𝓝 (φ x)) :=by
proof · 16
lines
apply tendsto_order.mpr
constructor
· intro a ha
exact Eventually.of_forall fun n => ha.trans_le (le_metricConeApprox hφ n x)
· intro b hb
havehD : 0 < 2*(K : ℝ)+1:=by positivity
obtain ⟨m,hm⟩ := (denseRange_denseSeq Y).exists_dist_lt x (div_pos (sub_pos.mpr hb) hD)
filter_upwards [eventually_ge_atTop m] with n hn
have hcone := metricConeApprox_le_cone φ K hn x
have hq := hφ.le_add_mul (denseSeq Y m) x
rw [dist_comm (denseSeq Y m) x] at hq
havehdist : dist x (denseSeq Y m) < (b-φ x)/(2*(K : ℝ)+1) :=by
simpa only [dist_comm] using hm
have hsmall := (lt_div_iff₀ hD).mp hdist
dsimp only [metricCone] at hcone
nlinarith [dist_nonneg (x := x) (y := denseSeq Y m)]
const : ∀c : ℝ, P (fun _ => c)
linear : ∀ {u v : X→ℝ}, (∃K, LipschitzWithK u) → (∃K, LipschitzWithK v) →P u →P v →∀a c : ℝ, P (fun x => a*u x+c*v x)
min : ∀ {u v : X→ℝ}, (∃K, LipschitzWithK u) → (∃K, LipschitzWithK v) →P u →P v →P (fun x => min (u x) (v x))
max : ∀ {u v : X→ℝ}, (∃K, LipschitzWithK u) → (∃K, LipschitzWithK v) →P u →P v →P (fun x => max (u x) (v x))
limit : ∀ {us : ℕ→X→ℝ} {u : X→ℝ} {K : ℝ≥0}, (∀ n, P (us n)) →
(∀ n, LipschitzWithK (us n)) →
(∀ x, Tendsto (fun n => us n x) atTop (𝓝 (u x))) →P u
lemmaLipLattice.pi_dist {m : ℕ} {P : (X→ℝ) →Prop} (hP : LipLatticeP)
{u : X→ (Fin m →ℝ)} {L : ℝ≥0} (hu : LipschitzWithL u)
(hgen : ∀ i, P (fun x => u x i)) (q : Fin m →ℝ) :
P (fun x => dist (u x) q) :=by
proof · 26
lines
classical
have hcoord (i : Fin m) : LipschitzWithL (fun x => u x i) :=
(LipschitzWith.eval i).comp hu |>.weaken (by simp)
have habs (i : Fin m) : P (fun x => |u x i-q i|) :=byhave hp := hP.linear ⟨L,hcoord i⟩ ⟨0,LipschitzWith.const _⟩ (hgen i) (hP.const (q i)) 1 (-1)
have hn := hP.linear ⟨L,hcoord i⟩ ⟨0,LipschitzWith.const _⟩ (hgen i) (hP.const (q i)) (-1) 1havehp' : P (fun x => u x i-q i) :=by simpa only [one_mul,neg_mul,one_mul,sub_eq_add_neg] using hp
havehn' : P (fun x => -(u x i-q i)) :=by convert hn using1; funext x; ring
havehsub : LipschitzWithL (fun x => u x i-q i) :=by
simpa only [add_zero] using (hcoord i).sub (LipschitzWith.const (q i))
convert hP.max ⟨L,hsub⟩ ⟨L,hsub.neg⟩ hp' hn' using1
funext x
exact abs_eq_max_neg
have hs (s : Finset (Fin m)) :
P (fun x => ((s.sup fun i => nndist (u x i) (q i) : ℝ≥0) : ℝ)) ∧LipschitzWithL (fun x => ((s.sup fun i => nndist (u x i) (q i) : ℝ≥0) : ℝ)) :=by
induction s usingFinset.induction_on with
| empty => simpa usingAnd.intro (hP.const 0) ((LipschitzWith.const (0:ℝ)).weaken (by positivity))
| @insert i s hi ih =>havehl : LipschitzWithL (fun x => (nndist (u x i) (q i) : ℝ)) :=by simpa only [one_mul,Function.comp_def,coe_nndist] using (LipschitzWith.dist_left (q i)).comp (hcoord i)
havehp : P (fun x => (nndist (u x i) (q i) : ℝ)) :=by
simpa only [coe_nndist,Real.dist_eq] using habs i
simpa only [Finset.sup_insert, NNReal.coe_max,max_self] usingAnd.intro (hP.max ⟨L,hl⟩ ⟨L,ih.2⟩ hp ih.1) (hl.max ih.2)
simpa only [dist_pi_def] using (hs Finset.univ).1
lemmaLipLattice.comp_pi {m : ℕ} {P : (X→ℝ) →Prop} (hP : LipLatticeP)
{u : X→ (Fin m →ℝ)} {L : ℝ≥0} (hu : LipschitzWithL u)
(hgen : ∀ i, P (fun x => u x i)) {φ : (Fin m →ℝ) →ℝ} {K : ℝ≥0}
(hφ : LipschitzWithK φ) : P (fun x => φ (u x)) :=by
proof · 13
lines
have hc (q : Fin m →ℝ) : P (fun x => metricCone φ K q (u x)) :=byhave hp := hP.linear ⟨0,LipschitzWith.const (φ q)⟩ ⟨L,by simpa only [one_mul,Function.comp_def,coe_nndist] using (LipschitzWith.dist_left q).comp hu⟩
(hP.const (φ q)) (hP.pi_dist hu hgen q) 1K
simpa only [one_mul,metricCone] using hp
havehs : ∀ n, P (fun x => metricConeApprox φ K n (u x)) :=by
intro n
induction n with
| zero => exact hc _
| succ n ih =>
exact hP.min ⟨K*L,(metricConeApprox_lipschitz φ K n).comp hu⟩
⟨K*L,(metricCone_lipschitz φ K _).comp hu⟩ ih (hc _)
exact hP.limit hs (fun n => (metricConeApprox_lipschitz φ K n).comp hu)
(fun x => metricConeApprox_tendsto hφ (u x))