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

Theorem handleAppendEntriesReply_votesReceived :
forall h st n t es r st' ps,
handleAppendEntriesReply h st n t es r = (st', ps) ->
votesReceived st' = votesReceived st.