aNote here is proofs of important theorems related to Basis and Dimension of vector space. All proofs are provided by the author(some inspired by Axler's book), so read it on your own risk.1. Intertwined Definitions of Basis and Dimension2. Spanning List, Linear Independency, and Subspace1. Intertwined Definitions of Basis and DimensionAs what we eluded in previous notes, basis of a vector space should be a list of vectors that are linearly independent and span the space. However, a vector space could have multiple basis sets, do those sets have the same length? The answer to this has significant consequence in quantum computing, as it decides whether basis changes of a quantum system can be complished by n×n matrices, with n being the dimension of vector space in which the quantum states live. Fortunately, all the basis sets of a vector space have the same length as we are proving now.
Theorem1All the bases of a vector space have the same length.
Proof:Let B1 and B2 are bases of a vector space V. Because vectors in B1 are linearly independent, and vectors in B2 span V. Because of the Lemma 3 in the note Span and Linear Dependency, we have the length of B1≤the length of B2. Using the similar argument, we also have the length of B2≤the length of B1. As a result, we have length of B1=length of B2□We can take the advantage of the uniqueness of basis length, indicated by Theorem 1, to define the dimension of vector space as
Definition1The dimension of a vector space is the length of its basis, and we use dim V to present the dimension of vector space V.
2. Spanning List, Linear Independency, and SubspaceLike the previous notes, we consider things in the section title to find interesting and useful theorems related to the concepts of basis and dimemsion. Our first stop is to show a way that reduces spanning list to basis of a vector space by proving the following lemma.
Lemma1Spanning list can always be reduced to a basis of corresponding vector space
Proof:Let V=span(v1,v2,...,vm), and we can follow the algorithm below to eleminate vectors in the set {vi}, after which we will obtain the desired basis:Step 1: if v1=0, remove it from {v1},remain it in {vi} otherwise;Step j: if vj∈span(v1,...,vj-1), remove vj. Acoording to Lemma 2 in Span and Linear Dependency, we must have span({vi})=span({vi}-vj)=V;Step m: vectors in the set now satisfy vj∉span(v1,...,vj-1), indicating that v1,v2,...,vj are linearly independent. To see this, suppose we have v1,v2,...,vj-1 linearly independent, and vj∉span(v1,...,vj-1). If v1,v2,...,vj are linearly dependent, there exist some nonzero ai∈F such that a1v1+a2v2+⋯+ajvj=0according to the definition of linear independency. If aj≠0, then we must have some ai≠0 for i=1,2,...,j-1 to give vj=-1/aj(a1v1+⋯+aj-1vj-1), contradicting to the condition of vj∉span(v1,...,vj-1). But if aj=0, then ai≡0 for i=1,2,...,j, another contradiction to the linear dependency we assumed. Thus, vj∉span(v1,...,vj-1) gives linear independency of v1,v2,..,vj.The final set still spans V as explained above, and the resulting set has vectors linearly independent and span V. So the set is indeed a basis of V.□The basis of a vector space can also be obtained from a linearly independent vector set, as we now show by proving the following lemma.
Lemma2A linearly independent vector list can always be extended to a basis of vector space.
Proof:Let B={w1,w2,...,wm} and {v1,v2,...,vn} be the basis of vector pace V and a linearly independent list in V, respectively. Because V=span(B), we have n≤m=dim V due to Lemma 3 in Span and Linear Dependency. Now we create a new list of v1,v2,...,vn,w1,w2,...,wm, and our target is to add some w's into {vi} so that the new set remains linearly independent and has a length of m. Starting from w1, we can follow the steps below to make such a set:Step 1: if w1∉span(v1,v2,...,vn) then add w1 in {vi}, otherwise proceed to the next stepStep m-n: Repeat step 1 for m-n times to make a list of m vector. Because wi∉span(v1,...,vn,w1,...,wi-1), we must have our new list linearly independent. As a result, we get a new basis list make of v's and some w's. □The proof above might leave readers wonder: what if I have a linearly independent list that has a length of dim V? Does that make the set a basis of vector space? Yes, and we can show this by proving the following theorem:
Theorem2A list of linearly independent vectors is a vector space basis if its length equals to the dimension of the vector space.
Proof:Suppose B={v1,v2,...,vn} are linearly independent in V, and the length of B equals to dim V. By using the steps in Lemma 2, we notice that extending B to the basis of V is trivial, as every basis of V has a length of dim V, according to Theorem 1.□Conversely, what if we have a spanning list that has a length of dim V? Yes again, and we have the following theorem.
Theorem3A spanning list is a vector space basis if its length equals to the dimension of the vector space.
Proof:Let dim V=n, and V is spanned by v1,v2,...,vn. We now need to show that the list is linearly independent. Suppose {vi} is linearly dependent, then we must have at least one vector that can be expressed as linear combination of other vectors,i.e., vj=a1v1+⋯+aj-1vj-1+aj+1vj+1+⋯+anvnwhere some a's are nonzero. According to Lemma 2 in Span and Linear Dependency, we have span({vi})=span({vi}-vj)=dim V≠ncausing a contradiction. Therefore, a spanning list of dim V vectors must be basis of V.□Now that we have laid out useful things about spanning list and linearly independent list, we focus on subspaces in the following paragraphs. The most obvious lemma we can prove is argubly that
Lemma3If U is a subspace of V, then dim U≤dim V.
Proof (Axler's way):The equality indicates U=V, as can be easily shown. For the case of dim U<dim V, let U=span(u1,u2,...,un) and V=span(v1,v2,...,vm). Think of {ui} as a linearly independent list, and {vi} a spanning list, then the length of {ui}≤the length of {vi}. So it must be true that dim U≤dim V.□Axler's book introduced a neat proof to the following theorem. We will not repeat it here as copy exactly is not fun at all, and the author could not find a better alternative proof either.
Theorem4If U1 and U2 are subspaces of a finite-dimensional vector space, thendim(U1+U2)=dimU1+dim U2-dim(U1∩U2)