lemmaderiv_transition_eq_zero {x : ℝ} (hx : x ∉Icc (0:ℝ) 1) :
deriv Real.smoothTransition x = 0:=by
proof · 12
lines
havehcases : x < 0∨1 < x :=by simpa only [mem_Icc,not_and_or,not_le] using hx
rcases hcases with hx | hx
· haveheq : Real.smoothTransition =ᶠ[𝓝 x] fun _ => (0:ℝ) :=by
filter_upwards [eventually_lt_nhds hx] with y hy
exact Real.smoothTransition.zero_of_nonpos hy.le
rw [heq.deriv_eq]
simp
· haveheq : Real.smoothTransition =ᶠ[𝓝 x] fun _ => (1:ℝ) :=by
filter_upwards [eventually_gt_nhds hx] with y hy
exact Real.smoothTransition.one_of_one_le hy.le
rw [heq.deriv_eq]
simp
obtain ⟨C,hC,hD⟩ := exists_derivative_bound
refine ⟨C,?_,?_,?_⟩
· apply lipschitzWith_of_nnnorm_deriv_le ((@Real.smoothTransition.contDiff 1).differentiable (by norm_num))
exact fun x => hC x
· apply lipschitzWith_of_nnnorm_deriv_le ((showContDiffℝ (1:ℕ) (deriv Real.smoothTransition) from (@Real.smoothTransition.contDiff 2).deriv').differentiable (by norm_num))
exact fun x => hD x
· simpa only [Real.norm_eq_abs] using hC