Let C⊆F2n be linear.
Step 1: a sum over C of signs. For u∈F2n,
c∈C∑(−1)u⋅c={∣C∣0u∈C⊥,u∈/C⊥.
If u∈C⊥ every term is 1. Otherwise pick c0∈C with u⋅c0=1;
the substitution c↦c+c0 permutes C and multiplies the sum by −1, so the
sum is zero.
Step 2: transform of the weight function. Fix numbers x,y and let
f(u)=xn−wt(u)ywt(u)=∏i=1nf1(ui)
with f1(0)=x, f1(1)=y. For v∈F2n define
f^(v)=∑u∈F2n(−1)u⋅vf(u). The sum factorises over
coordinates:
f^(v)=i=1∏n(x+(−1)viy)=(x+y)n−wt(v)(x−y)wt(v).
Step 3: combine. Summing f^ over the code and exchanging the order of
summation,
c∈C∑f^(c)=u∈F2n∑f(u)c∈C∑(−1)u⋅c=∣C∣u∈C⊥∑f(u),
by Step 1. The left side is WC(x+y,x−y) by Step 2 and the right side is
∣C∣WC⊥(x,y). Since this holds for all numbers x,y, it is an
identity of polynomials.