Put r=n−k.
Step 1: the generators are commuting Hermitian involutions. Each gj lies in
S, which does not contain −I. An element of Pn with phase ±i
squares to −I, so gj=±P1⊗⋯⊗Pn, which is Hermitian with
gj2=I. Hence Πj±=21(I±gj) are the projectors onto the
±1 eigenspaces of gj, and since the gj commute these projectors commute.
Step 2: the syndrome projectors. The projector onto Vσ is
Πσ=j=1∏r2I+(−1)σjgj=2r1x∈F2r∑(−1)σ⋅xg1x1g2x2⋯grxr.
For σ=σ′ some factor appears as Πj+ in one product and
Πj− in the other, and Πj+Πj−=0, so ΠσΠσ′=0.
Summing over σ, each factor contributes Πj++Πj−=I, so
∑σΠσ=I. This gives the orthogonal direct sum.
Step 3: non-identity products are traceless. Let x=0 and
s=g1x1⋯grxr. Its binary vector is ∑jxjvj, where vj is
the vector of gj, and this is nonzero because the vj are linearly independent.
So s=±P1⊗⋯⊗Pn with at least one Pm=I, and
Trs=±∏mTrPm=0 because TrX=TrY=TrZ=0. For x=0
the product is I, with trace 2n.
Step 4: count. Taking the trace of the expansion in Step 2,
dimVσ=TrΠσ=2r12n=2n−r=2k.
Step 5: Pauli errors permute the syndrome spaces. If E∈Pn has
syndrome σ(E), then gjE=(−1)σj(E)Egj, so for
∣ψ⟩∈V0 we get gjE∣ψ⟩=(−1)σj(E)E∣ψ⟩. Thus
the unitary E maps V0 into Vσ(E), and since both have dimension 2k
it maps it onto. Every syndrome occurs: by linear independence the map
v↦(⟨v,vj⟩s)j from F22n to F2r is surjective, so
for every σ there is a Pauli operator with syndrome σ. This last fact is
not needed for the dimension count but confirms that no Vσ is special.
The dimension 2k is stated in Section 3.2 of Gottesman;
the trace computation above is a standard way to prove it. Compare the proof of
Proposition 10.5 in Nielsen and Chuang.