Proof using.
intros. unfold update_elections_data_appendEntries in *.
repeat break_match; auto. simpl in *.
do_in_app. intuition. do_in_map. find_inversion.
right.
unfold handleAppendEntries in *.
repeat break_match; find_inversion; simpl in *; do_bool; auto.
Qed.

(* Specifications: *)
Lemma allEntries_votesWithLog_append_entries :
refined_raft_net_invariant_append_entries allEntries_votesWithLog.