I can't tell you how many times I've had to explain this to confused linear algebra students...
Oh, and A minor correction: you mean "zero" instead of "empty".
Yep, that's right. HN doesn't allow me to edit :(
We could also notice that UW+VW is a subspace of (U+V)W, and therefore the following statement is valid:
dim(U+V+W)<= dim(U)+dim(V)+dim(W) - dim(UV)-dim(UW)-dim(VW) + dim(UVW).
So the result is weakened, but not entirely lost.
dim(U+V) = dimU+dimV−dim(UV)
The reason this step fails is that (U+V)W != UW+VW for example UW and VW can both be empty, but (U+V)W is not empty: Now U+V is the entire space R^2. If we take W={multiples of (1,1)} then VW={0} and UW={0}, but because U+V is the entire space we have (U+V)W = W = {multiples of (1,1)}.