A verification of the LCR algorithm for leader election in a synchronous ring