Proof using.
intros.
unfold update_elections_data_appendEntries in *.
unfold handleAppendEntries, advanceCurrentTerm in *.
repeat break_match; repeat find_inversion; subst; simpl in *; auto;
congruence.
Qed.

(* Specifications: *)
Lemma allEntries_leader_sublog_append_entries :
refined_raft_net_invariant_append_entries allEntries_leader_sublog.