My question is related to this one.
I'd like to explore this result in the context of polynomials defined on a smooth, properly embedded (thus closed) $m$-dimensional submanifold $M \subset R^n$. That is, I have a finite collection of polynomials defined on $M$ (say the determinants of submatrices whose entries are functions of the points of $M$) and would like to investigate the subset of $M$ (call it $Z$) on which all those functions vanish.
My approach is to think of $Z$ as the intersection of a finite number of manifolds; i.e. the zero sets of each of the determinant functions, and $M$.
Question: Is it correct to say that either $Z$ is all of $M$ or is a subset of $M$ of measure zero? If that is true then, since $Z$ is clearly closed, can we say that $M \setminus Z$ is either empty or open-dense?
I realize there is a question of what measure to use on $M$, I would guess $m$-dimensional Hausdorff measure, but I haven't gotten quite that far yet.
I've searched around for answers to this question (as you can see from my link) but I know things can become delicate when dealing with submanifolds, so really any pointers to resources addressing this question would be appreciated. I wouldn't have asked if I thought the question was trivial, but I guess it's possible, in which case I apologize.
Edit: Moishe Kohan has kindly pointed out that the concept of real analytic manifold as it pertains to $M$ is relevant here. I will look into this further.
Edit$^2$: I have found this post on MO, go figure. For anyone who has interest in this question, the fact that analytic manifolds and zeros of polynomials are related is fascinating. Then again, having locally an expansion logically connects these manifolds to polynomials. At least that is my immediate impression. There is another post which discusses a question closer to mine, but still no cigar. A key may be if I can compose chart coordinates with real analytic functions and get real analytic functions then my problem reduces to $R^n$. Thanks are also due to Severin Schraven for a counterexample that illustrates the difficulty with real analytic manifolds.
Edit$^3$: Severin Schraven has made the suggestion that the implicit function theorem coupled with this post will give me what I'm looking for (at least when $M$ is connected, or on each connected component of $M$). Will look into it.
Update: As you can see, Moishe Kohan has graciously provided a detailed proof, which I have marked as the Answer. From my perspective, the key seems to be (Severin Schraven also pointed this out) that when $M$ is an analytic manifold the coordinate maps are analytic so that my question can be reduced, in one way or another, to questions about real analytic functions on domains in $R^n$. This is crucial since there are existing results (e.g. Identity Theorem) available for real analytic fuctions in this context.
I do, however, have some questions about that proof which I will post over the next day or two in the comment section.