Proof using.
red. unfold requestVoteReply_term_sanity. intros. simpl in *.
subst. repeat find_higher_order_rewrite.
assert (In p0 (nwPackets net)) by
(find_apply_hyp_hyp; repeat find_rewrite; intuition; [in_crush|];
exfalso; subst; simpl in *; subst;
unfold handleAppendEntries in *;
repeat break_match; find_inversion).
repeat find_rewrite.
destruct_update; simpl in *; eauto.
find_copy_apply_lem_hyp handleAppendEntries_currentTerm_leaderId.
intuition; repeat find_rewrite; eauto;
eapply_prop_hyp pBody pBody; eauto; omega.
Qed.

(* Specifications: *)
Lemma requestVoteReply_term_sanity_append_entries_reply :
refined_raft_net_invariant_append_entries_reply requestVoteReply_term_sanity.