The areas / V15. Real analysis in one variable
Mathlib.Analysis.SpecialFunctions.SmoothTransition
31 declarations. Mathlib docs · Source
Infinitely smooth transition function
In this file we construct two infinitely smooth functions with properties that an analytic function cannot have:
-
expNegInvGlueis equal to zero forx ≤ 0and is strictly positive otherwise; it is given byx ↦ exp (-1/x)forx > 0; -
Real.smoothTransitionis equal to zero forx ≤ 0and is equal to one forx ≥ 1; it is given byexpNegInvGlue x / (expNegInvGlue x + expNegInvGlue (1 - x));
Smoothness of expNegInvGlue
In this section we prove that the function f = expNegInvGlue is infinitely smooth. To do
this, we show that $g_p(x)=p(x^{-1})f(x)$ is infinitely smooth for any polynomial p with real
coefficients. First we show that $g_p(x)$ tends to zero at zero, then we show that it is
differentiable with derivative $g_p'=g_{x^2(p-p')}$. Finally, we prove smoothness of $g_p$ by
induction, then deduce smoothness of $f$ by setting $p=1$.
def expNegInvGlue E1 #
ℝ → ℝ
expNegInvGlue is the real function given by x ↦ exp (-1/x) for x > 0 and 0
for x ≤ 0. It is a basic building block to construct smooth partitions of unity. Its main property
is that it vanishes for x ≤ 0, it is positive for x > 0, and the junction between the two
behaviors is flat enough to retain smoothness. The fact that this function is C^∞ is proved in
expNegInvGlue.contDiff.
theorem expNegInvGlue.zero_of_nonpos E1 #
∀ {x : ℝ}, x ≤ 0 → expNegInvGlue x = 0
The function expNegInvGlue vanishes on (-∞, 0].
theorem expNegInvGlue.zero E0 #
expNegInvGlue 0 = 0
theorem expNegInvGlue.pos_of_pos E1 #
∀ {x : ℝ}, 0 < x → 0 < expNegInvGlue x
The function expNegInvGlue is positive on (0, +∞).
theorem expNegInvGlue.nonneg E1 #
∀ (x : ℝ), 0 ≤ expNegInvGlue x
The function expNegInvGlue is nonnegative.
theorem expNegInvGlue.zero_iff_nonpos E0 #
∀ {x : ℝ}, expNegInvGlue x = 0 ↔ x ≤ 0
theorem expNegInvGlue.monotone E1 #
Monotone expNegInvGlue
theorem expNegInvGlue.not_analyticAt_zero E1 #
¬AnalyticAt ℝ expNegInvGlue 0
The function expNegInvGlue is not analytic at 0.
theorem expNegInvGlue.tendsto_polynomial_inv_mul_zero E1 #
∀ (p : Polynomial ℝ), Filter.Tendsto (fun x ↦ Polynomial.eval x⁻¹ p * expNegInvGlue x) (nhds 0) (nhds 0)
Our function tends to zero at zero faster than any $P(x^{-1})$, $P∈ℝ[X]$, tends to infinity.
theorem expNegInvGlue.hasDerivAt_polynomial_eval_inv_mul E1 #
∀ (p : Polynomial ℝ) (x : ℝ),
HasDerivAt (fun x ↦ Polynomial.eval x⁻¹ p * expNegInvGlue x)
(Polynomial.eval x⁻¹ (Polynomial.X ^ 2 * (p - Polynomial.derivative p)) * expNegInvGlue x) x
theorem expNegInvGlue.differentiable_polynomial_eval_inv_mul E1 #
∀ (p : Polynomial ℝ), Differentiable ℝ fun x ↦ Polynomial.eval x⁻¹ p * expNegInvGlue x
theorem expNegInvGlue.continuous_polynomial_eval_inv_mul E1 #
∀ (p : Polynomial ℝ), Continuous fun x ↦ Polynomial.eval x⁻¹ p * expNegInvGlue x
theorem expNegInvGlue.contDiff_polynomial_eval_inv_mul E1 #
∀ {n : ℕ∞} (p : Polynomial ℝ), ContDiff ℝ ↑n fun x ↦ Polynomial.eval x⁻¹ p * expNegInvGlue x
theorem expNegInvGlue.contDiff E1 #
∀ {n : ℕ∞}, ContDiff ℝ (↑n) expNegInvGlue
The function expNegInvGlue is smooth.
def Real.smoothTransition E1 #
ℝ → ℝ
An infinitely smooth function f : ℝ → ℝ such that f x = 0 for x ≤ 0,
f x = 1 for 1 ≤ x, and 0 < f x < 1 for 0 < x < 1.
theorem Real.smoothTransition.pos_denom E1 #
∀ (x : ℝ), 0 < expNegInvGlue x + expNegInvGlue (1 - x)
theorem Real.smoothTransition.one_of_one_le E1 #
∀ {x : ℝ}, 1 ≤ x → x.smoothTransition = 1
theorem Real.smoothTransition.zero_iff_nonpos E0 #
∀ {x : ℝ}, x.smoothTransition = 0 ↔ x ≤ 0
theorem Real.smoothTransition.zero_of_nonpos E1 #
∀ {x : ℝ}, x ≤ 0 → x.smoothTransition = 0
theorem Real.smoothTransition.zero E0 #
Real.smoothTransition 0 = 0
theorem Real.smoothTransition.one E0 #
Real.smoothTransition 1 = 1
theorem Real.smoothTransition.projIcc E0 #
∀ {x : ℝ}, (↑(Set.projIcc 0 1 ⋯ x)).smoothTransition = x.smoothTransition
Since Real.smoothTransition is constant on $(-∞, 0]$ and $[1, ∞)$, applying it to the
projection of x : ℝ to $[0, 1]$ gives the same result as applying it to x.
theorem Real.smoothTransition.le_one E1 #
∀ (x : ℝ), x.smoothTransition ≤ 1
theorem Real.smoothTransition.nonneg E1 #
∀ (x : ℝ), 0 ≤ x.smoothTransition
theorem Real.smoothTransition.lt_one_of_lt_one E1 #
∀ {x : ℝ}, x < 1 → x.smoothTransition < 1
theorem Real.smoothTransition.pos_of_pos E1 #
∀ {x : ℝ}, 0 < x → 0 < x.smoothTransition
theorem Real.smoothTransition.contDiff E1 #
∀ {n : ℕ∞}, ContDiff ℝ (↑n) Real.smoothTransition
theorem Real.smoothTransition.contDiffAt E1 #
∀ {x : ℝ} {n : ℕ∞}, ContDiffAt ℝ (↑n) Real.smoothTransition x
theorem Real.smoothTransition.continuous E1 #
Continuous Real.smoothTransition
theorem Real.smoothTransition.continuousAt E1 #
∀ {x : ℝ}, ContinuousAt Real.smoothTransition x
theorem Real.smoothTransition.monotone E1 #
Monotone Real.smoothTransition