Proof using.
intros. unfold handleRequestVote, advanceCurrentTerm in *.
repeat break_match; find_inversion; simpl in *; auto.
Qed.

Theorem handleRequestVote_votesReceived :
forall h st t c li lt st' m,
handleRequestVote h st t c li lt = (st', m) ->
votesReceived st' = votesReceived st.