Let X be a vector space over K, and let Y⊂X be a linear subspace.
Define a relation on X by
x∼u⟺x−u∈Y.
This is an equivalence relation. The equivalence class of x is denoted
[x]=x+Y:={u∈X∣u−x∈Y}.
The set of all equivalence classes is written
X/Y:={x+Y∣x∈X}.
Define operations on X/Y by
(x+Y)+(u+Y):=(x+u)+Y,λ(x+Y):=(λx)+Y.
These operations are well-defined (independent of representatives) and make X/Y a vector space, called the quotient vector space.
The codimension of Y in X is defined by
codim(Y):=dim(X/Y).