Proof using.
intros.
unfold handleRequestVoteReply, advanceCurrentTerm in *.
repeat break_match; try find_inversion; subst; simpl in *; intuition;
do_bool; intuition.
Qed.

Lemma update_elections_data_requestVoteReply_leaderLogs :
forall h h' t r st,
leaderLogs (update_elections_data_requestVoteReply h h' t r st) =
leaderLogs (fst st) \/
leaderLogs (update_elections_data_requestVoteReply h h' t r st) =
(currentTerm (snd st), log (snd st)) :: leaderLogs (fst st).