Canonical: https://knowlpedia.com/measure-theory/ae-equality/

# Almost-everywhere equality

Two functions are a.e. equal if they differ only on a null set.

An **almost-everywhere equality** (or **a.e. equality**) on a [measure space](https://knowlpedia.com/measure-theory/measure-space/) \((X,\Sigma,\mu)\) is the relation on functions \(f,g:X\to \overline{\mathbb R}\) defined by
\[
\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, \(f\) and \(g\) agree outside a measurable [null set](https://knowlpedia.com/measure-theory/null-set/). If the disagreement set is measurable, this is the same as requiring its measure to be zero.

## Remarks

This formalizes equality [almost everywhere](https://knowlpedia.com/measure-theory/almost-everywhere/) and gives an [equivalence relation](https://knowlpedia.com/shared-foundations/equivalence-relation/) on (for instance) the collection of [measurable functions](https://knowlpedia.com/measure-theory/measurable-function/). Many constructions in integration theory and spaces such as [Lp spaces](https://knowlpedia.com/measure-theory/lp-space/) treat functions as identical whenever they are a.e. equal.

## Examples

- On \(\mathbb R\) equipped with the [Borel sigma-algebra](https://knowlpedia.com/measure-theory/borel-sigma-algebra/) and [Lebesgue measure](https://knowlpedia.com/measure-theory/lebesgue-measure/), the functions \(f=0\) and \(g=\mathbf{1}_{\{0\}}\) are a.e. equal.
- If \(E\subseteq X\) is a null set and \(f\) is measurable, then \(f\) and the function obtained by redefining \(f\) arbitrarily on \(E\) are a.e. equal.
