Let $X$ be a linear space and $Y$ be a linear subspace of X. The set $X/Y$ consisting of equivalence classes (mod $Y$) is called the quotient space of $X$ mod $Y$.
It is defined that: $$codim (Y)=dim(X/Y)$$
My questions are:$$$$ 1. Does this definition still have a meaning if both $Y$ and $Y/X$ are of infinite dimensions?$$$$ 2. According to the definition, $$dim(X/Y)+dim(Y)=dim(X);$$ Why is this true (in terms of both finite and infinite dimensional spaces)?
Well! Ambiguity may always happen for example take:$$X=\{(x_1,...,x_n)|\forall n\in\Bbb N\qquad,\qquad x_1,...,x_n\in\Bbb R^n\}$$and for some $k\in\Bbb N$ take$$Y_k=X-\{(x_1,...,x_k)\in X\}$$therefore $dim(X)$ and $dim(Y)$ are both $\infty$ and $dim(X/Y)=\infty-\infty$ which is an ambiguity however it is still true.