27.7. CONVOLUTION AND SUMS 753

Proof: For each x ∈ K, there exists a ball, B(x,δ x) such that B(x,3δ x) ⊆U . Finitelymany of these balls cover K because K is compact, say {B(xi,δ xi)}

mi=1. Let

0 < δ < min(δ xi : i = 1,2, · · · ,m) .

Now pick any x ∈ K. Then x ∈ B(xi,δ xi) for some xi and so

B(x,δ )⊆ B(xi,2δ xi)⊆U.

Therefore, for any x ∈ K,dist(x,UC

)≥ δ . If x ∈ B(xi,2δ xi) for some xi, it follows that

dist(x,UC

)≥ δ because then B(x,δ ) ⊆ B(xi,3δ xi) ⊆U. If x /∈ B(xi,2δ xi) for any of the

xi, then x /∈ B(y,δ ) for any y ∈ K because all these sets are contained in some B(xi,2δ xi) .Consequently dist(x,K)≥ δ . ■

From this lemma, there is an easy corollary.

Corollary 27.7.2 Suppose K is a compact subset of U, an open set in E a metric space.Then there exists a uniformly continuous function f defined on all of E, having values in[0,1] such that f (x) = 0 if x /∈U and f (x) = 1 if x ∈ K.

Proof: Consider

f (x)≡dist(x,UC

)dist(x,UC)+dist(x,K)

.

Then some algebra yields∣∣ f (x)− f(x′)∣∣≤ 1

δ

(∣∣dist(x,UC)−dist

(x′,UC)∣∣+ ∣∣dist(x,K)−dist

(x′,K

)∣∣)where δ is the constant of Lemma 27.7.1. Now it is a general fact that∣∣dist(x,S)−dist

(x′,S

)∣∣≤ d(x,x′).

See Proposition 3.6.6. Therefore, | f (x)− f (x′)| ≤ 2δ

d (x,x′) and this proves the corollary.■

Now suppose µ is a finite measure defined on the Borel sets of a separable Banachspace E. It was shown above that µ is inner and outer regular. Lemma 26.1.9 on Page 717shows that µ is inner regular in the usual sense with respect to compact sets. This makespossible the following theorem.

Theorem 27.7.3 Let µ be a finite measure on B (E) where E is a separable Ba-nach space and let f ∈ Lp (E; µ) . Then for any ε > 0, there exists a uniformly continuous,bounded g defined on E such that

∥ f −g∥Lp(E) < ε.

Proof: As usual in such situations, it suffices to consider only f ≥ 0. Then by Theorem9.1.6 on Page 239 and an application of the monotone convergence theorem, there exists asimple measurable function,

s(x)≡m

∑k=1

ckXAk (x)

such that || f − s||Lp(E) < ε/2. Now by regularity of µ there exist compact sets, Kk and

open sets, Vk such that 2∑mk=1 |ck|µ (Vk \K)1/p < ε/2 and by Corollary 27.7.2 there exist

27.7. CONVOLUTION AND SUMS 753Proof: For each x € K, there exists a ball, B(x, 6,) such that B(x,36,) C U. Finitelymany of these balls cover K because K is compact, say {B (xj, 5x,)}/",. Let0<6 <min(6,,:i=1,2,---,m).Now pick any x € K. Then x € B(x;, 6,,) for some x; and soB(x,8) C B(x;,26,,) CU.Therefore, for any x € K,dist (x,U©) > 6. If x € B(x;,26,,) for some x;, it follows thatdist (x,U) > 6 because then B(x,5) C B(x;,36,,) CU. If x ¢ B(x;,26,,) for any of thex;, then x ¢ B(y,6) for any y € K because all these sets are contained in some B(x;,26,,).Consequently dist (x,K) > 6. MlFrom this lemma, there is an easy corollary.Corollary 27.7.2 Suppose K is a compact subset of U, an open set in E a metric space.Then there exists a uniformly continuous function f defined on all of E, having values in[0,1] such that f (x) =O ifx €U and f (x) =1lifxeK.Proof: Considerdist (x,US)dist (x, U©) + dist (x, K) °F(x)Then some algebra yieldsIf) —f (x’)| < ; (|dist (x, U©) —dist (x’,U©) | + |dist (x, K) — dist (x’,K) |)where 6 is the constant of Lemma 27.7.1. Now it is a general fact that|dist (x,S) — dist (x’,S)| <d(x,x’).See Proposition 3.6.6. Therefore, | f (x) — f (x’)| < 5d (x,x’) and this proves the corollary.aNow suppose jl is a finite measure defined on the Borel sets of a separable Banachspace E’. It was shown above that yu is inner and outer regular. Lemma 26.1.9 on Page 717shows that u is inner regular in the usual sense with respect to compact sets. This makespossible the following theorem.Theorem 27.7.3 Let Lt be a finite measure on B(E) where E is a separable Ba-nach space and let f € L? (E;1). Then for any € > 0, there exists a uniformly continuous,bounded g defined on E such thatIf — 8llirce) < &:Proof: As usual in such situations, it suffices to consider only f > 0. Then by Theorem9.1.6 on Page 239 and an application of the monotone convergence theorem, there exists asimple measurable function,ms(x) = y CK KA, (x)k=lsuch that || —s||;o(¢) < €/2. Now by regularity of j there exist compact sets, K, andopen sets, V, such that 27); |cx| M (Ve \ K)!/P < €/2 and by Corollary 27.7.2 there exist