Proof using.
intros.
unfold handleRequestVote in *.
repeat (break_match; repeat (find_inversion; simpl in *));
intro; break_exists; discriminate.
Qed.

Lemma handleAppendEntriesReply_doesn't_send_AE :
forall n st src t es b st' l,
handleAppendEntriesReply n st src t es b = (st', l) ->
forall x,
In x l ->
~ is_append_entries (snd x).