Proof using.
intros. unfold handleRequestVoteReply, advanceCurrentTerm in *.
repeat break_match; subst; simpl in *; auto; congruence.
Qed.

Lemma handleRequestVote_reply_true:
forall h h' st t lli llt st' t',
handleRequestVote h st t h' lli llt =
(st', RequestVoteReply t' true) ->
votedFor st' = Some h' /\
currentTerm st' = t'.