Proof using.
unfold update_elections_data_appendEntries.
intros.
repeat break_match; subst; auto.
Qed.

(* Specifications: *)
Lemma votesWithLog_sorted_append_entries :
refined_raft_net_invariant_append_entries votesWithLog_sorted.
Lemma leaderLogs_sorted_append_entries :
refined_raft_net_invariant_append_entries leaderLogs_sorted.