Let $S = (\Omega, \mathcal{F}, \mathbb{P}, T)$ be a D2839: Probability-preserving system.
Then $\mathbb{P}$ is an ergodic probability measure on $S$ if and only if
\begin{equation}
\forall \, E \in \mathcal{F} \, (T^{-1} E = E \quad \implies \quad \mathbb{P}(E) = 0 \text{ or } \mathbb{P}(\Omega \setminus E) = 0)
\end{equation}