Proof using.
unfold candidateEntriesTerm.
intros. break_exists_exists.
find_apply_lem_hyp handleAppendEntriesReply_type.
update_destruct_simplify.
- intuition; repeat find_rewrite; auto. discriminate.
- auto.
Qed.

(* Specifications: *)
Lemma prevLog_candidateEntriesTerm_append_entries_reply :
refined_raft_net_invariant_append_entries_reply prevLog_candidateEntriesTerm.