Proof using.
red. unfold terms_and_indices_from_one_log_ind. split; red; simpl in *; intuition.
- find_higher_order_rewrite. update_destruct; rewrite_update; auto.
find_apply_lem_hyp handleRequestVoteReply_log. subst. find_rewrite. auto.
- eauto.
Qed.

Lemma terms_and_indices_from_one_log_ind_do_leader :
raft_net_invariant_do_leader terms_and_indices_from_one_log_ind.