I struggle with the understanding of stopping times. Could someone check whether what I wrote is correct and answer my question:
If $(X_n)$ is a martingale adapted to a filtration $(\mathcal{F}_n)$, then from the property $E[X_{n+1}\mid\mathcal{F}_n]=X_n$ and the law of total expectation we have for $s,t\in \mathbb{N}$ and $s
However if $T$ is a stopping time, then $E(X_T)=E(X_s)$ is not always true but the optional stopping theorem gives us the conditions when it is true. For example if $T<\infty \quad a.s.$
Now I came across this example:
Let $X_n$ with $\mathbb{P}[X_i = 1] = 1/2$ and $\mathbb{P}[X_i = -1] = 1/2$ and $X_i$ are i.i.d. Let $\tau=\inf\{n: X_n =1\}$, then $\mathbb{E}[X_{\tau}]=1$ but $E(X_0)=0$.
So this must mean $\tau$ is not finite, how do I see this? And how do I correctly compute $E[X_{\tau}]$? Intuitively it is clear, but I'm unable to show this.