This question asks about the convexity of the function
$$ g(x)=\inf_{y\in\Re^n} f(x,y) $$
where $f \colon \Re^n \times \Re^m \to \Re$ is convex in $(x,y)$. I would ask a more advanced case that if the set given in the inner minimization problem depends on the upper variable $x$, i.e., $\Re^n$ is replaced by $C(x)$, the convexity still holds? That is, I would know the convexity of the following function $g\colon\Re^n\to\Re$:
$$ g(x)=\inf_{y\in C(x)} f(x,y), $$
where $C(x)$ is always convex for any $x\in\Re^n$, and $f$ is convex in $(x,y)$.
My question would also be the generalization of Example 3.17 in Boyd & Vandenberghe's Convex Optimization, which is the convexity of the following case:
$$ g(x) = \inf \left\{ h(y) \mid Ay = x \right\}. $$
It would be grateful if you could answer the question above. Thank you!
No, not in general. The ability to adjust $C(x)$, with only the constraint of convexity of the images, is far too powerful. We could make each $C(x)$ a singleton (which, of course, is convex), but essentially choose $C(x)$ to be any single-valued function we like (non-convex, even totally discontinuous).
As a concrete example, consider: $$f : \Bbb{R} \times \Bbb{R} : (x, y) \mapsto y$$ and $$C(x) = \{D(x)\}, \text{ where } D(x) = \begin{cases} 1 & \text{if } x \in \Bbb{Q} \\ 0 & \text{if } x \in \Bbb{R} \setminus \Bbb{Q}.\end{cases}$$ Then $$g(x) = \inf_{y \in C(x)} f(x, y) = \inf_{y \in C(x)} y = D(x),$$ which is very much not a convex function. You can see how I could adjust $C(x)$ to get any pathological function I wish!