I'm interested in computing the dimension of a variety $X$. I can get a lower bound by exhibiting some strictly increasing chain of irreducible subvarieties $$\varnothing =Z_{-1}\subset Z_0\subset Z_1\subset Z_2\subset\ldots\subset Z_r=X$$ so that $\dim X\ge r$.
To show $\dim X=r$, I'd like to do the following:
- Show that there are no irreducible subvarieties $Y_i$ such that $Z_{i-1}\subsetneq Y_i\subsetneq Z_{i}$ for $i=0,1,\ldots,r-1$.
- Show that the chain $\varnothing =Z_{-1}\subset Z_0\subset Z_1\subset Z_2\subset\ldots\subset Z_r=X$ may be extended to a chain of maximal length in $X$.
Now, if $X$ is reducible, then I can think of counterexamples to 2., but what if I require that $Z_{r-1}$ is contained in the irreducible component of $X$ of maximal dimension? So we may assume that $X$ is irreducible. Is 2. true in this case?