As I understand, martingale is a stochastic process (i.e., a sequence of random variables) such that the conditional expected value of an observation at some time $t$, given all the observations up to some earlier time $s$, is equal to the observation at that earlier time $s$.
A sequence $Y_1, Y_2, Y_3 ...$ is said to be a martingale with respect to another sequence $X_1, X_2, X_3 ...$ if for all $n$:
$E(Y_{n+1}|X_1,...,X_n) = Y_n$
Now I don't understand how it is defined in terms of filtration. Does filtration discretize the time space of a stochastic process so that we can analyze the process as a martingale? A simple explanation or an example on what is filtration and how it relates to martingale theory would be very helpful. I can then read more detailed content.