The generalized density matrix in the Lipkin model