Let $D$ be an open connected subset in $\mathbb{R}^n.$ Assume that the non-trivial/non-zero function $f \equiv f(x,y): D \times (0, \infty) \to \mathbb{R} $ is real analytic in both $x$ and $y.$ Denote by $f_y(x):=f(x,y), f_x(y)=f(x,y).$ Assume that $f_x(.), f_y(.)$ are not identically zero. I'm trying to check, if possible that the set $S:= \{y \in (0, \infty): f(x,y) = 0 \text{ for at least one $x \in D$ } \}$ has measure zero or not.
To solve the problem, I've written:
$$S= \bigcup_{x \in D}\{y \in (0, \infty): f(x,y) = 0 \}$$
Next we take the complement of $S,$ denoted by $S':$
$$S'= \bigcap_{x \in D}\{y \in (0, \infty): f(x,y)= f_y(x) \ne 0 \}$$
Next, we note that since for each fixed $y, f_y(x)$ is a continuous function of $x,$ therefore if $f_y(x) \ne 0,$ then $f_y(z) \ne 0 \forall z$ sufficiently near $x.$ Therefore, the above intersection $\bigcap_{x \in D}$ is essentially a countable intersection where $x$ have rational coordinates (this is where I'm hesitating a bit, and please check if this rationale is correct!). Therefore we have:
$$S'= \bigcap_{x \in D \cap \mathbb{Q}^n}\{y \in (0, \infty): f(x,y)=f_y(x) \ne 0 \}$$.
So taking complement again:
$$S= \bigcup_{x \in D \cap \mathbb{Q}^n}\{y \in (0, \infty): f(x,y)=f_x(y) = 0 \}$$.
We already know that the zero set of a real analytic function (of one or several variables) is of zero Lebesgue measure in the corresponding dimension, c.f. Zeros of analytic function of several real variables, https://arxiv.org/abs/1512.07276. So each $\{y \in (0, \infty): f(x,y)=f_x(y) = 0 \}$ above has measure zero in $\mathbb{R}$, since $f_x(y)$ is real analytic in $y\in \mathbb{R}.$
But this implies that $S$ is a countable union $x \in D \cap \mathbb{Q}^n$ of measure zero subsets $\{y \in (0, \infty): f_x(y) = 0 \}$ of $\mathbb{R}.$ So we conclude that $S$ has measure zero in $\mathbb{R}.$
Is my argument correct?