§ Linear algebraic proof of the handshaking lemma
We wish to show that the number odd vertices is even. Let A be the adjacency
matrix of the undirected graph G. Since G is undirected, A=AT. Now
move everything to F2, including A. This means that A has entries {0,1}.
Now, denote the vector of all ones by o≡(1,1,…1). See that
Ao counts the partities of the degrees of each vertex, and oT(Ao) counts the
sum of parities of the degrees of each vertex.
Note that the vertices of even degree with add 0 to the sum oTAo, while
odd vertices will add a 1. Thus, oTAo will equal the parity of
the number of odd vertices. As we wish to show that the number of odd vertices
is even, we want to prove that oTAo=0.
We will now algebraically simplify oTAo (does anyone have a cleaner proof?)
giving us:
oTAo=ij∑oiAijoj=i=j∑oiAijoj+i<j∑oiAijoj+ojAjioi(A is symmetric; Aji=Aij)=i=j∑oiAijoj+i<j∑oiAijoj+ojAijoi=i=j∑oiAijoj+i<j∑2⋅oiAijoj(F2 has characteristic zero, so 2=0)=i=j∑oiAijoj+0(replace i=j with k)=k∑okAkkok(Akk=0 since graph has no self loops)=k∑0⋅ok2=0
So, the number of vertices of odd degree is even.
I want to avoid this computation with respect to the basis, but I'm not
sure how to do that.
§ A simplification from arjun
Since Akk=0, we have that A=B+BT for B lower triangular.
This allows us to simplify:
oTAo=oT(B+BT)o==oTBo+oTBTo=⟨o,Bo⟩+⟨Bo,o⟩=2⋅⟨o,Bo⟩=0