Uniform approximation of continuous and C¹ functions by test functions #
Let Ω be an open set of a finite-dimensional real normed space E. Mollifying a continuous
function supported in a compact set K by normalized bumps of small radius gives test functions
on Ω supported in a fixed closed thickening of K that converge to it uniformly, as long as that
thickening lies in Ω. For a C¹ function the derivatives of the mollifications are the
mollifications of its derivative (Mathlib's HasCompactSupport.hasFDerivAt_convolution_right), so
they converge uniformly as well. The construction follows Mathlib's
MeasureTheory.LocallyIntegrable.exists_contDiff_dist_le_of_forall_mem_ball_dist_le and
UniformContinuous.exists_contDiff_dist_le (in
Mathlib.Analysis.Calculus.BumpFunction.SmoothApprox), with added control of the support; the
error estimate is Mathlib's ContDiffBump.dist_normed_convolution_le.
Main results #
Continuous.exists_testFunction_dist_le: a continuous function supported in a compact setKis uniformly approximated by test functions supported in any closed thickening ofKthat lies inΩ.ContDiff.exists_testFunction_dist_le_and_dist_fderiv_le: aC¹function supported in a compact setKis approximated in the same way, uniformly together with its derivative.
References #
- L. Hörmander, The Analysis of Linear Partial Differential Operators I, Chapter I (regularization by convolution).
A continuous function supported in a compact set K is uniformly approximated by test
functions on Ω, as long as a closed thickening cthickening δ K lies in Ω: for every ε > 0
there is a test function on Ω, supported in cthickening δ K, within ε of f everywhere.
A C¹ function supported in a compact set K is approximated by test functions on Ω
uniformly together with its derivative, as long as a closed thickening cthickening δ K lies in
Ω: for every ε > 0 there is a test function on Ω, supported in cthickening δ K, within ε
of f everywhere and whose derivative is within ε of fderiv ℝ f everywhere.