Proof using.
intros.
unfold handleAppendEntries in *.
repeat break_match; simpl in *; do_bool; repeat find_inversion; auto; try omega;
simpl in *;
unfold advanceCurrentTerm in *; repeat break_match; do_bool; auto.
Qed.

Lemma allEntries_term_sanity_append_entries :
refined_raft_net_invariant_append_entries allEntries_term_sanity.