The idea is to realize \(H^1(K,T)\)  as a discrete subgroup of some locally compact group, so that \(\sum w(f)\)  appears to be one side of a Poisson summation. We recall the Poisson formula for locally compact abelian groups (see, for instance, Hewitt and Ross [1]}, p. 246):
