Context: these lecture notes, exercise 46. Not a homework assignment.
The notes give the following hint:
If $f,g$ are independent RVs, then $\mathbb{E}[fg] = \mathbb{E}[f]\mathbb{E}[g]$.
Here's my attempt:
for some $A \in \mathcal{G}$, take $g = \mathbb{1}_A$. As $f$ is independent of $\mathcal{G}$, $f$ is independent of $\mathbb{1}_A$. So $$\mathbb{E}[f\mathbb{1}_A] = \mathbb{E}[f]\mathbb{E}[\mathbb{1}_A]= \mathbb{E}[f]\mu(A)$$ $$\frac{\mathbb{E}[f\mathbb{1}_A]}{\mu(A)} = \mathbb{E}[f]$$ $$\mathbb{E}[f|A] = \mathbb{E}[f].$$
This holds for any $A\in \mathcal{G}$, but I can't see how it implies the thesis.
Alternatively, I was thinking of using the indicator function on the sigma algebra $\mathcal{G}$ as my $g$ in the formula, although does "the indicator function on the sigma algebra" actually mean anything?