Consider a finite-valued function $f : \mathbb{R}^n \rightarrow \mathbb{R}$; and a closed-valued, measurable, set-valued mapping $S: \mathbb{R}^m \rightrightarrows \mathbb{R}^n$ .
Measurability is intended with respect to a finite measure $m: \mathcal{B}(\mathbb{R}^m) \rightarrow [0,1]$, where $\mathcal{B}(\mathbb{R}^m)$ are the Borel sets.
I am wondering if the following mapping is measurable as well. $$ x \mapsto \sup_{y \in S(x)} f(y) $$
What I thought is to define the mapping "$M: C \mapsto \sup_{y \in C} f(y)$", which takes a closed set as argument, and look at the measurability of $x \mapsto M(S(x))$. However, I am not clear what properties of $M$ should be exploited for the claim.