Proof using.
unfold raft_net_invariant_request_vote. unfold logs_sorted.
intuition; simpl in *.
- unfold logs_sorted_host in *. simpl in *. intros.
find_apply_lem_hyp handleRequestVote_log.
repeat find_higher_order_rewrite. break_match; try find_rewrite; eauto.
- find_apply_lem_hyp handleRequestVote_packets. subst. simpl in *.
eapply logs_sorted_nw_not_append_entries; eauto.
+ intros. find_apply_hyp_hyp. find_rewrite. in_crush.
+ simpl. auto.
- find_apply_lem_hyp handleRequestVote_packets. subst. simpl in *.
eapply packets_gt_prevIndex_not_append_entries; eauto.
+ intros. find_apply_hyp_hyp. find_rewrite. in_crush.
+ simpl. auto.
- find_apply_lem_hyp handleRequestVote_packets. subst. simpl in *.
eapply packets_ge_prevTerm_not_append_entries; eauto.
+ intros. find_apply_hyp_hyp. find_rewrite. in_crush.
+ simpl. auto.
Qed.

Lemma handleRequestVoteReply_log :
forall h st src t vg st',
handleRequestVoteReply h st src t vg = st' ->
log st' = log st.