Proof using.
red. unfold requestVote_maxIndex_maxTerm. intros. simpl in *.
assert (In p0 (nwPackets net)) by
(repeat find_rewrite;
find_apply_lem_hyp handleAppendEntriesReply_packets;
subst; simpl in *; find_apply_hyp_hyp; intuition; in_crush).
repeat find_rewrite.
find_copy_apply_lem_hyp handleAppendEntriesReply_log_term_type.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto;
break_or_hyp; try congruence; break_and; repeat find_rewrite; eauto.
Qed.

Lemma requestVote_maxIndex_maxTerm_request_vote :
refined_raft_net_invariant_request_vote requestVote_maxIndex_maxTerm.