  We generalize a real-space Chern number formula for gapped free fermions to
higher orders. Using the generalized formula, we prove recent proposals for
extracting thermal and electric Hall conductance from the ground state via the
entanglement Hamiltonian in the special case of non-interacting fermions,
providing a concrete example of the connection between entanglement and
topology in quantum phases of matter.
