An almost-everywhere equality (or a.e. equality) on a (X,Σ,μ)(X,\Sigma,\mu) is the relation on functions f,g:XRf,g:X\to \overline{\mathbb R} defined by

f=g a.e.NΣ such that μ(N)=0and f(x)=g(x) for all xXN.\begin{gathered} f=g\text{ a.e.}\quad\Longleftrightarrow\\ \exists N\in\Sigma\text{ such that }\mu(N)=0\\ \text{and }f(x)=g(x)\text{ for all }x\in X\setminus N. \end{gathered}
Equivalent characterizations

Equivalently, ff and gg agree outside a measurable . If the disagreement set is measurable, this is the same as requiring its measure to be zero.

Remarks

This formalizes equality and gives an on (for instance) the collection of . Many constructions in integration theory and spaces such as treat functions as identical whenever they are a.e. equal.

Examples
  • On R\mathbb R equipped with the and , the functions f=0f=0 and g=1{0}g=\mathbf{1}_{\{0\}} are a.e. equal.
  • If EXE\subseteq X is a null set and ff is measurable, then ff and the function obtained by redefining ff arbitrarily on EE are a.e. equal.