In a finite-dimensional vector space, any independent list can be extended to a basis. If it does not span, adjoin a vector outside its span; independence is preserved. Each step increases the list size, so the procedure terminates at the dimension of the space. A subspace version uses vectors from that subspace.