Let
- $(X, \mathcal A, \mu)$ and $(Y, \mathcal B, \nu)$ be complete $\sigma$-finite measure spaces, and $(E, | \cdot |)$ a Banach space.
- $S (X)$ the space of $\mu$-simple functions from $X$ to $E$.
- $\mathcal C :=\mathcal A \otimes \mathcal B$ the product $\sigma$-algebra of $\mathcal A$ and $\mathcal B$.
- $\lambda := \mu \otimes \nu$ the product measure of $\mu$ and $\nu$.
Here we use Bochner integral. Then we have
Let $p \in [1, \infty)$.
Lemma 1 Then
$$
\overline{S(X) \otimes S(Y)} = L^p(X \times Y),
$$
where the closure is with respect to the norm in $L^p(X \times Y)$. Here $S (X) \otimes S(Y)$ is identified with a subspace of $L^p(X \times Y)$ through the natural embedding
$$
f \otimes g \mapsto \big( (x,y) \mapsto f(x) g(y) \big).
$$
Lemma 2 Let $(f_n) \subset S (X \times Y)$ be a Cauchy sequence in $L^p(X \times Y)$ that converges $\lambda$-a.e. to $f$. Then there is a subsequence $\varphi$ of $\mathbb N$ such that for $\mu$-a.e. $x \in X$, we have $(f_{\varphi (n)} (x, \cdot))_n \subset S (Y)$ is a Cauchy sequence in $L^p (Y)$ and converges to $f(x, \cdot)$ both $\nu$-a.e. and in $L^p (Y)$.
Let $X := [0, T]$ and $Y := \mathbb R^d$. Let $\mathcal A, \mathcal B$ be the corresponding Lebesgue $\sigma$-algebras of $X$ and $Y$. Let $\mu, \nu$ be the corresponding Lebesgue measures on $X, Y$.
By Lemma 1, there is a sequence of $(f_n) \subset L^p(X \times Y)$ with $f_n = g_n h_n$ for some $g_n \in S (X)$ and $h_n \in S (Y)$ such that $\|f_n-f\|_{L^p(X \times Y)} \to 0$. Clearly, $(f_n)$ is a Cauchy sequence in $S(X \times Y)$. Also, each $f_n$ is of the form
$$
f_n (t, x) = \sum_{k=1}^{\varphi_n} e_{n, k} 1_{A_{n, k}} (t) 1_{B_{n, k}} (x)
\quad \forall t\in X, x \in Y,
$$
for some $e_{n, k} \in \mathbb R$ and $A_{n, k} \in \mathcal A, B_{n, k} \in \mathcal B$ such that $\mu(A_{n, k}) + \nu (B_{n, k}) < \infty$. Then $f_n (t, \cdot) \in L^p(Y)$ for all $t \in X$. Let
$$
F_n : X \to L^p (Y), t \mapsto f_n (t, \cdot)
\quad \forall n \in \mathbb N.
$$
Clearly, $F_n \in S(X, L^p(Y)) \subset L^p(X, L^p(Y))$ for all $n \in \mathbb N$. By Fubini's theorem,
$$
\begin{align*}
\| F_n - F_m\|_{L^p(X, L^p(Y))}^p &= \int_0^T \mathrm d t \, \|F_n (t) - F_m (t)\|_{L^p (Y)}^p \\
&= \|f_n-f_m\|_{L^p(X \times Y)}^p.
\end{align*}
$$
Then $(F_n)$ is a Cauchy sequence in the Banach space $L^p(X, L^p(Y))$. Then there is $F \in L^p(X, L^p(Y))$ such that $\|F_n-F\|_{L^p(X, L^p(Y))} \to 0$.
Convergence in $L^p$ implies a.e. convergence of a subsequence, so WLOG we assume $f_n \to f$ $\lambda$ a.e. and $F_n \to F$ $\mu$-a.e. By Lemma 2, there is a subsequence $\varphi$ of $\mathbb N$ su for $\mu$-a.e. $t \in X$ we have
$$
\|f_{\varphi (n)} (t, \cdot)-f(t, \cdot) \|_{L^p (Y)} \xrightarrow{n \to \infty} 0.
$$
On the other hand, for $\mu$-a.e. $t \in X$ we have
$$
\|f_n (t, \cdot) - F (t)\|_{L^p(Y)} =\|F_n (t) - F (t)\|_{L^p(Y)} \xrightarrow{n \to \infty} 0.
$$
It follows that for $\mu$-a.e. $t \in X$ we have
$$
\|f (t, \cdot) - F(t) \|_{L^p (Y)} = 0.
$$
The claim then follows.