I was trying to understand the Markov property of Brownian Motion and in one of the proofs the author claims that the following result
Let $\mathcal{F} \subseteq \mathcal{A}$ be a $\sigma$-algebra and $X:\Omega \to \mathbb{R}^d$ be a random variable such that $$\mathbb{E}(F(X) 1_A) = \mathbb{P}(A) \mathbb{E}(F(X))$$ for all $A \in \mathcal{F}$ and $F$ bounded, continuous. Then $X$ and $\mathcal{F}$ are independent.
I understand that if we know that they were independent then the above equality will be true but i cannot prove why this implies independence if I use the basic definition of independence . Can you give me some hints on how could I go about showing it ?I have thought a lot about it ? But I was unsuccessful in proving it .