Artificial intelligent assistant

$L^2$ representation of Hilbert subspace of $L^2$ Suppose that $\mathcal{H}$ is a Hilbert space which is a subspace of $L^2(X,\mathcal{A},\mu)$. Does there exist a sub-$\sigma$-algebra $\mathcal{B}$ of $\mathcal{A}$ such that $\mathcal{H}=L^2(X,\mathcal{B},\mu |_\mathcal{B})$?

Let $f$ be a bounded function in $L^{2}(X,\mathcal A,\mu)$ such that $f^{2}$ is not a scalar multiple of $f$. Let $M$ be the one dimensional subspace generated by $f$. If $M$ has the desired form then $f^{2}$ is an $L^{2}$ function measurable w.r.t. $\mathcal B$ so it must belong to $M$. This is a contradiction.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4237c781f0f738ceec9bc20ded333b97