Definition lifted_entries_sorted_nw' (net : ghost_log_network) :=
    forall p t n pli plt es ci,
      In p (nwPackets net) ->
      snd (pBody p) = AppendEntries t n pli plt es ci ->
      sorted es.

Lemma advanceCommitIndex_committed : forall h net, refined_raft_intermediate_reachable net -> type (snd (nwState net h)) = Leader -> (forall e, In e (log (snd (nwState net h))) -> eIndex e <= commitIndex (snd (nwState net h)) -> committed net e (currentTerm (snd (nwState net h)))) -> (forall e, In e (log (snd (nwState net h))) -> eIndex e <= commitIndex (advanceCommitIndex (snd (nwState net h)) h) -> committed net e (currentTerm (snd (nwState net h)))).