Let $(S, \Sigma, \mu)$ be a measure space. Let $X$ be a Banach space over $\mathbb R$ or $\mathbb C$. Call a function $x : S \to X$ strongly measurable if there exists a sequence of simple functions $\langle s_n\rangle$ such that $s_n \to x$ almost everywhere. It's known that a function $x : S \to X$ is strongly measurable if and only if it is weakly measurable (for each $f \in X^\ast$ the composition $f \circ x$ is $\Sigma$-measurable as a real function $S \to \mathbb R$) and essentially separately valued. (there exists a null set $N \subseteq S$ such that $x(S \setminus N)$ is separable)
I'm trying to prove this fact. I've checked both Pettis (very last line above Cor 1.11 in https://www.jstor.org/stable/1989973) and Yosida's proofs and they both state without proof on the very last line that the uniform limit of strongly measurable functions is strongly measurable. Specifically a sequence $\langle x_n\rangle$ is constructed that is strongly measurable and converges uniformly to $x$, and this must virtually immediate imply $x$ is strongly measurable, but I'm not seeing why. If you have $s_{n, k} \to x_n$ a.e. pointwise you can split $$\lVert x(t) - s_{n, k}(t)\rVert \le \lVert x(t) - x_n(t)\rVert + \lVert x_n(t) - s_{n,k}(t)\rVert$$ Controlling the first term is easy by uniform convergence, and so is the other term pointwise, (my idea was to essentially take $n$ and $k$ jointly to $\infty$ but this seems difficult without at least almost uniform convergence of the $s_{n, k}$) but not uniformly in $t$. How do I proceed?