"Suppose $f$ and $g$ are continuous on the measurable set $E$. If $f = g$ a.e. on $E$, then $f=g$ on $E$."
I have shown that this statement is true when $E = [a,b]$ and I have shown that the statement is true for $E$ when $m(E)\neq 0$. However, my proof for the latter case never explicitly used the fact that $m(E)\neq 0$.
I have been told that the statement does not hold when $m(E)=0$. However, I am unconvinced (seems to me it should be vacuously true) and unable to prove it.
Could somebody please share with me a quick, not too complicated proof for why the statement is not true when $m(E) = 0$?
Thank you.
Let $E = \{\ast\}$ be some set with a single element. Equip it with the trivial sigma-algebra and a measure $m$ that is constant $0$. Let $f: E \to \{1,2\}$ be the constant $1$ function. Let $g: E \to \{1, 2\}$ be the constant $2$ function. Trivially, $f$ and $g$ are continuous. Trivially, it holds $f=g$ almost everywhere (the only point $\ast$ does not count, because $m(\{\ast\}) = 0$). However, they are obviously not equal.
If $E$ has to be a subset of $\mathbb{R}$ equipped with the trace-sigma algebra of the standard Borel sigma algebra of $\mathbb{R}$, the argument still holds: simply take $E=\{0\}$, or pick any other real number.