lemmatangentConeAt_eq_univ_of_density_one (s : SetE) (x : E)
(hx : Tendsto (fun r => μ (s ∩ closedBall x r) / μ (closedBall x r))
(𝓝[>] 0) (𝓝 1)) : tangentConeAt ℝ s x = univ :=by
proof · 28
lines
apply eq_univ_of_forall
intro z
rw [tangentConeAt_eq_biInter_closure]
simp only [mem_iInter]
intro U hU
rw [Metric.mem_closure_iff]
intro ε hε
haveB₁ : ∀ᶠ r in 𝓝[>] (0 : ℝ), (s ∩ ({x} + r • closedBall z (ε / 2))).Nonempty:=Measure.eventually_nonempty_inter_smul_of_density_one μ s x hx _ measurableSet_closedBall
(measure_closedBall_pos μ z (half_pos hε)).ne'
haveB₂ : ∀ᶠ r in 𝓝[>] (0 : ℝ), r • closedBall z (ε / 2) ⊆U:=by
apply nhdsWithin_le_nhds
have h := eventually_singleton_add_smul_subset (𝕜:=ℝ) (x := (0 : E))
(s := closedBall z (ε / 2)) isBounded_closedBall hU
filter_upwards [h] with r hr
simpa using hr
obtain ⟨r, ⟨y, ys, hy⟩, hrU, hr⟩ :=
(B₁.and (B₂.and self_mem_nhdsWithin)).exists
obtain ⟨a, ha, hya⟩ : ∃ a, a ∈ closedBall z (ε / 2) ∧ y = x + r • a :=by
simp only [mem_smul_set, image_add_left, mem_preimage, singleton_add] at hy
rcases hy with ⟨a, ha, h⟩
exact ⟨a, ha, by simp only [h, add_neg_cancel_left]⟩
refine ⟨a, ?_, ?_⟩
· havehr0 : r ≠0:= ne_of_gt hr
havehra : r • a ∈U∩ (x + ·) ⁻¹' s :=
⟨hrU (smul_mem_smul_set ha), by simpa only [mem_preimage, ← hya] using ys⟩
exact ⟨r⁻¹, mem_univ _, r • a, hra, inv_smul_smul₀ hr0 a⟩
· exact lt_of_le_of_lt (by simpa [dist_comm] using ha) (half_lt_self hε)
lemmauniqueDiffWithinAt_of_density_one (s : SetE) (x : E)
(hx : Tendsto (fun r => μ (s ∩ closedBall x r) / μ (closedBall x r))
(𝓝[>] 0) (𝓝 1)) : UniqueDiffWithinAtℝ s x :=by
proof · 3
lines
have ht := tangentConeAt_eq_univ_of_density_one μ s x hx
rw [uniqueDiffWithinAt_iff, ht]
exact ⟨by simp, mem_closure_of_nonempty_tangentConeAt (by rw [ht]; exact univ_nonempty)⟩
lemmaae_fderivWithin_eq_fderiv_extension {s : SetE} (hs : MeasurableSet s)
{f F : E→ℝ} {L : ℝ≥0} (hF : LipschitzWithLF) (heq : EqOn f F s) :
∀ᵐ x ∂μ.restrict s, fderivWithin ℝ f s x = fderiv ℝF x :=by