Section VotesReceivedMoreUpToDate.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Context {rri : raft_refinement_interface}.
Context {rvrmutdi : requestVoteReply_moreUpToDate_interface}.
Proof using.
red. unfold votesReceived_moreUpToDate. intros. simpl in *.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto;
try rewrite votesWithLog_same_append_entries; eauto;
find_copy_apply_lem_hyp handleAppendEntries_votesReceived;
find_apply_lem_hyp handleAppendEntries_log_term_type;
intuition; repeat find_rewrite; try congruence;
eauto;
rewrite votesWithLog_same_append_entries;
eauto.
Qed.

Lemma votesReceived_moreUpToDate_append_entries_reply :
refined_raft_net_invariant_append_entries_reply votesReceived_moreUpToDate.