Let's consider a family of varieties defined by two equations in $\operatorname{Spec}(\mathbb{C}[x\_1,\dots,x\_n])$.


First, Let $\Delta\_i, i=1,2$ be a finite set of monomials in $\mathbb{C}[x\_1,\dots,x\_n]$, for simplicity, I use $X^v$ to denote an element of $\Delta\_i$. Then $$F\_i=\{\sum\_{X^v \in \Delta\_i}c\_vX^v \mid c\_v \in \mathbb{C}\}$$ is a family of polynomials parameterized by $\mathbb{C}^{\#(\Delta\_i)}$, where $\#(\Delta\_i)$ is the cardinality of $\Delta\_i$.


Let $V\_{f,g}$ be a variety in $\operatorname{Spec}(\mathbb{C}[x\_1,\dots,x\_n])$ defined by $f=g=0$ with $f \in F\_1, g \in F\_2$ respectively. Then $V\_{f,g}$ is parameterized by $\mathbb{C}^{\#(\Delta\_1)} \times \mathbb{C}^{\#(\Delta\_2)}$.


Is the family of codimesion $2$ intersection $V\_{f,g}$ parameterized by an open set (might be empty) of $\mathbb{C}^{\#(\Delta\_1)} \times \mathbb{C}^{\#(\Delta\_2)}$?


I think the point is to find an "algebraic" characterization of dimension. However, it will be good even if such set is not open, but contains a nonempty open set (or the set itself is empty). Geometrically, it seems quite plausible this is the case.


**Edit**
I think the result might be true in $\operatorname{Proj}(\mathbb{C}[x\_0,\dots,x\_n])$ by the following argument: 


First, the parameterized space is really $\mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1}$ after ignoring the case $f=g=0$, and module the constant.


Let $a \in \mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1}$, and $V\_a$ be the intersection parameterized by $a$. Then we have a "variety" $S$ (I am a little worry about $S$ to be a variety, but since the following construction is "algebraic", it should be a variety )


$$S = \{(a, V\_a) \mid a \in \mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1}\} \subset \mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1} \times \mathbb{P}^n.$$


It should be a projective variety, with a natural projection


$$S \to \mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1}, \quad (a, V\_a) \mapsto a.$$ This projection is proper, then by the [upper semicontinuity](https://mathoverflow.net/questions/193/when-is-fiber-dimension-upper-semi-continuous) of the fibre, we know there is an open set of $ \mathbb{P}^{\#(\Delta\_1)-1} \times \mathbb{P}^{\#(\Delta\_2)-1} $ such that the fibres are of codimension $2$.



Is dimension an open condition?
Probably this was downvoted because it is follows from standard material in most algebraic geometry textbooks. It might be more appropriate for Math Stack Exchange. 


At any rate, with the question as formulated, this locus is not an open subset. For instance, consider a copy of $\mathbb{C}$ with coordinate $t$ inside your parameter space, where $f$ and $g$ are $f=x\_1(1-tx\_3)$ and $g=x\_2(1-tx\_3)$. For $t\neq 0$, then $V\_{f,g}$ contains the codimension one hypersurface $\{(x\_1,x\_2,x\_3) : x\_3= 1/t\}$. But for $t=0$, $V\_{f,g}$ has codimension $2$. Thus the intersection of this copy of $\mathbb{C}$ with your locus is the Zariski closed subset $\{t : t=0\}$, rather than a Zariski open subset. This type of example is one reason that algebraic geometers frequently work with proper / projective varieties rather than affine varieties.


