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

Theorem handleTimeout_not_is_append_entries :
forall h st st' ms m,
handleTimeout h st = (st', ms) ->
In m ms -> ~ is_append_entries (snd m).