Proof using.
unfold refined_raft_net_invariant_reboot, prevLog_candidateEntriesTerm, reboot.
simpl. intros.
eapply candidateEntriesTerm_ext; eauto.
repeat find_rewrite.
find_apply_hyp_hyp.
unfold candidateEntriesTerm in *.
break_exists_exists.
update_destruct_simplify; auto.
repeat find_rewrite.
simpl in *. intuition.
discriminate.
Qed.

(* Specifications: *)
Lemma prevLog_candidateEntriesTerm_invariant :
forall net,
refined_raft_intermediate_reachable net ->
prevLog_candidateEntriesTerm net.