Proof using.
red. unfold allEntries_term_sanity. intros.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
find_rewrite_lem update_elections_data_timeout_allEntries.
find_apply_lem_hyp handleTimeout_type_strong.
intuition; repeat find_rewrite; eauto.
Qed.

(* Specifications: *)
Lemma allEntries_term_sanity_do_leader :
refined_raft_net_invariant_do_leader allEntries_term_sanity.