Definition ghost_log_network : Type := @network _ raft_msg_refined_multi_params.Definition ghost_log_packet : Type := @packet _ raft_msg_refined_multi_params.Definition lifted_maxIndex_sanity (net : ghost_log_network) : Prop :=
    (forall h,
      lastApplied (snd (nwState net h)) <= maxIndex (log (snd (nwState net h)))) /\
    (forall h, commitIndex (snd (nwState net h)) <= maxIndex (log (snd (nwState net h)))).

Lemma lifted_sorted_network : forall net p t n pli plt es ci, refined_raft_intermediate_reachable net -> In p (nwPackets net) -> pBody p = AppendEntries t n pli plt es ci -> sorted es.