Proof using.
red. unfold allEntries_term_sanity. intros. simpl in *.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
find_copy_eapply_lem_hyp update_elections_data_appendEntries_allEntries_term'; eauto.
intuition.
find_apply_lem_hyp handleAppendEntries_currentTerm_monotonic;
find_apply_hyp_hyp; omega.
Qed.

Lemma allEntries_term_sanity_append_entries_reply :
refined_raft_net_invariant_append_entries_reply allEntries_term_sanity.