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.

(* Specifications: *)
Lemma allEntries_term_sanity_append_entries :
refined_raft_net_invariant_append_entries allEntries_term_sanity.
Lemma log_all_entries_append_entries :
refined_raft_net_invariant_append_entries log_all_entries.