Definition (stopping time)
Let $\ouline{X} = (X_n)_{n\geq 0}$ be a random process, and let $T$ be a random variable taking values in $\set{0,1,2,\ldots} \cup \set{\infty}$.
We say $T$ is a stopping time with respect to $\ouline{X}$ if for each $n$, the event $\set{T=n}$ only depends on $X_0, X_1, \ldots, X_n$.