We define a new topology, weaker than the gap topology, on the space of selfadjoint operators affiliated to a semifinite von Neumann algebra and define the real-valued spectral flow for a continuous path of selfadjoint Breuer-Fredholm operators in terms of a generalization of the winding number. We compare our definition with Phillips’ analytical definition. Furthermore we prove the homotopy in...