Proof using.
red. unfold requestVoteReply_term_sanity. intros. simpl in *.
assert (In p (nwPackets net)) by
(find_apply_hyp_hyp; intuition; exfalso; do_in_map; subst; simpl in *;
unfold handleTimeout, tryToBecomeLeader in *;
repeat break_match; find_inversion; simpl in *; intuition;
do_in_map; subst; simpl in *; congruence).
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
find_apply_lem_hyp handleTimeout_log_term_type.
intuition; repeat find_rewrite; eauto.
Qed.

(* Specifications: *)
Lemma requestVoteReply_term_sanity_client_request :
refined_raft_net_invariant_client_request requestVoteReply_term_sanity.