Proof using uii rri.
intros.
find_apply_lem_hyp lift_UniqueIndices.
unfold UniqueIndices, uniqueIndices_host_invariant in *.
intuition.
unfold deghost in *. simpl in *. break_match; eauto.
Qed.

Theorem lift_logs_sorted :
forall net h,
refined_raft_intermediate_reachable net ->
sorted (log (snd (nwState net h))).