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)))).

(* Specifications: *)
Lemma lifted_maxIndex_sanity_init : msg_refined_raft_net_invariant_init lifted_maxIndex_sanity.
Lemma handleClientRequest_lastApplied : forall h st client id c out st' l, handleClientRequest h st client id c = (out, st', l) -> lastApplied st' = lastApplied st.
Lemma handleClientRequest_maxIndex : forall h st client id c out st' l, handleClientRequest h st client id c = (out, st', l) -> sorted (log st') -> maxIndex (log st) <= maxIndex (log st').
Lemma lifted_sorted_host : forall net h, refined_raft_intermediate_reachable net -> sorted (log (snd (nwState net h))).
Lemma msg_lifted_sorted_host : forall net h, msg_refined_raft_intermediate_reachable net -> sorted (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.