Proof using.
unfold handleTimeout, tryToBecomeLeader.
intros. repeat break_match; repeat tuple_inversion; simpl in *; auto; omega.
Qed.

Lemma votes_update_elections_data_request_vote_reply_eq :
forall h st src t r st',
handleRequestVoteReply h (snd st) src t r = st' ->
votes (update_elections_data_requestVoteReply h src t r st) = votes (fst st).