Proof using.
red. unfold votedFor_moreUpToDate. intros. simpl in *.
subst. repeat find_higher_order_rewrite.
destruct_update_hyp; simpl in *; eauto;
try rewrite votesWithLog_same_append_entries; eauto.
- find_copy_eapply_lem_hyp handleAppendEntries_term_votedFor; eauto.
find_apply_lem_hyp handleAppendEntries_log_term_type.
intuition; try congruence. repeat find_rewrite. eauto.
- find_copy_eapply_lem_hyp handleAppendEntries_term_votedFor; eauto.
intuition; repeat find_rewrite; eauto.
- find_apply_lem_hyp handleAppendEntries_log_term_type.
intuition; try congruence. repeat find_rewrite. eauto.
Qed.

Lemma votedFor_moreUpToDate_append_entries_reply :
refined_raft_net_invariant_append_entries_reply votedFor_moreUpToDate.