On proving register atomicity