Proof using.
red. unfold allEntries_term_sanity. intros.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
find_apply_lem_hyp handleAppendEntriesReply_type_term. intuition; repeat find_rewrite; eauto.
find_apply_hyp_hyp. omega.
Qed.

(* Specifications: *)
Lemma allEntries_term_sanity_request_vote :
refined_raft_net_invariant_request_vote allEntries_term_sanity.