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

Lemma terms_and_indices_from_one_log_ind_invariant :
forall net,
raft_intermediate_reachable net ->
terms_and_indices_from_one_log_ind net.