Proof using.
red. unfold votedFor_moreUpToDate. intros. simpl in *.
find_copy_apply_lem_hyp handleAppendEntriesReply_log_term_type.
subst. repeat find_higher_order_rewrite.
destruct_update_hyp; simpl in *; eauto;
intuition; try congruence; repeat find_rewrite; eauto;
find_copy_eapply_lem_hyp handleAppendEntriesReply_term_votedFor; eauto;
intuition; repeat find_rewrite; eauto.
Qed.

Lemma votedFor_moreUpToDate_request_vote :
refined_raft_net_invariant_request_vote votedFor_moreUpToDate.