If a functionf:E→R, excluding a set E0⊂E where m(E0)=0, has some property P, then f is said to have property Palmost everywhere within E.
Notation
When talking about probability, almost everywhere is expressed as almost surely, and for conciseness, the abbreviation f=g a.e.P(E)=0 a.s. can be used.
Explanation
Simply put, viewing all points except for the null set as ‘almost everywhere.’ This concept might seem new only because it’s formally defined, but it’s something already known when learning about definite integrals in high school. Hence, if the upper and lower limits are the same, that integral was inevitably 0, and whether endpoints were included or not was disregarded when calculating probabilities.
Basic Properties
[1]: If f:E→R is measurable and almost everywhere within Ef=g, then g is measurable within E.
[2]: If f,g is measurable within E and almost everywhere within E∣f∣,∣g∣<∞, then αf+βg is measurable within E.
[3]: If f,g is measurable within E and almost everywhere within E∣f∣,∣g∣<∞, then fg is measurable.
Proof
It’s beneficial to try proving these properties by hand at least once, though except for [3], they might not seem very interesting.
[1]
Let’s say E0={x∈E∣f(x)=g(x)}, then E0⊂E and m(E0)=0. For any given c,
{x∈E∣g(x)>c}={x∈E0∣g(x)>c}∪[{x∈E∣f(x)>c}∩(E∖E0)],
looking at each term on the right, since {x∈E0∣g(x)>c}⊂E0,
{x∈E0∣g(x)>c}∈M,
since f is measurable within E,
{x∈E∣f(x)>c}∈M,
and finally,
E∩(R∖E0)=(E∖E0)∈M,
thus {x∈E∣g(x)>c}∈M and g is measurable within E.
■
[2]
If α=0, then αf is measurable and if β=0, then βg is measurable.
If α=0, as f is measurable, for any given αc,
{x∈Ef(x)>αc}∈M,
if α>0,
{x∈E∣αf(x)>c}∈M,
and if α<0,
{x∈E∣αf(x)<c}∈M,
hence, αf is measurable and, in the same way, it can be shown that when β=0, βg is measurable.
Now if (f+g) is measurable, i.e., {x∈E∣f(x)+g(x)<c}∈M, the proof concludes. Since both functions have finite values, for all x∈E, there exists a c∈R that satisfies f(x)+g(x)<c. Rewriting, f(x)<c−g(x) and due to the density of rational numbers, there exists a q∈Q that satisfies f(x)<q<c−g(x). Thus,
q∈Q⋃{x∈E∣g(x)<c−q}∩{x∈∣Ef(x)<q}={x∈E∣f(x)+g(x)<c}∈M
■
Strategy[3]**: The idea to show that fg is measurable is summarized by one equation fg=21[(f+g)2−f2−g2].
[3]
Since [2] already proved that the sum of measurable functions not diverging in value is measurable, it suffices to demonstrate that f2 is measurable. Since f is measurable, for all c,
{x∈E∣f(x)>c}∈M{x∈E∣f(x)<−c}∈M,
thus,
{x∈E∣f(x)>c}∪{x∈E∣f(x)<−c}={x∈E∣f2(x)>c}∈M