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

Lemma handleAppendEntriesReply_packets :
forall h st from t es s st' ps,
handleAppendEntriesReply h st from t es s = (st', ps) ->
ps = [].