I was trying to prove the truth (avoiding Fubini) or falsehood of
Q: Let $f:A\to\mathbb{R}^m$ be a continuous function where the domain $A\subseteq\mathbb{R}^k$ is open or closed. Then, is it necessarily the case that the graph $\Gamma(f,A)=\{(x,f(x)):x\in A\}$ has Lebesgue measure $0$ (and, thus, is Lebesgue measurable)?
But I failed. The thing is: I know that, on this site, the case where $A$ is a rectangle has been asked many times. But what about this more general case? I know how to prove it when $A$ is a rectangle (i.e. of the form $A=\prod_{j=1}^k [a_j,b_j]$) but I am unable to generalize this particular case to the more general case (if it is true). I know that every open/closed set in $\mathbb{R}^n$ is the countable union of compact spaces so it would suffice to prove it on compact spaces which seem helpful since continuity on compact sets implies uniform continuity. However, the rectangle case can't be extended to the compact case since there exist compact sets that aren't the union of countably many rectangles such as the Cantor set. Is there a possible counterexample? I don't think so, but there might be one (?). Also: sorry if this question has already been asked here. I've searched as best as I could and, sadly, found nothing...
Note: I don’t think that it’s valid to prove the case where $A=\mathbb{R}^k$ and $f$ is a continuous function (which is pretty trivial) and consider every other case of this problem as a simple restriction that follows directly. That is because not every continuous function $f\in C(A,\mathbb{R}^m)$ is the restriction of a continuous function with $\mathbb{R}^k$ as a domain. For example, $f:\mathbb{R}\setminus\{0\}\to\mathbb{R}$ defined $f(x)=\frac{1}{x}$ is continuous but its domain can’t be extended so that it’s still continuous. Or, even worse, $f:\mathbb{R}\setminus\left(\frac{\pi}{2}+\pi\mathbb{Z}\right)\to\mathbb{R}$ defined as $f(x)=\tan(x)$ can’t be continuously extended either.
Any help would be highly appreciated! :)