Definition lifted_entries_contiguous net :=
    forall h,
      contiguous_range_exact_lo (log (snd (nwState net h))) 0.Definition lifted_entries_sorted net :=
    forall h,
      sorted (log (snd (nwState net h))).

(* Specifications: *)
Lemma lifted_entries_contiguous_invariant : forall (net : @network _ raft_msg_refined_multi_params), msg_refined_raft_intermediate_reachable net -> lifted_entries_contiguous net.
Lemma lifted_entries_sorted_invariant : forall (net : @network _ raft_msg_refined_multi_params), msg_refined_raft_intermediate_reachable net -> lifted_entries_sorted net.
Lemma ghost_log_correct_append_entries : msg_refined_raft_net_invariant_append_entries ghost_log_correct.
Lemma ghost_log_correct_append_entries_reply : msg_refined_raft_net_invariant_append_entries_reply ghost_log_correct.
Lemma ghost_log_correct_request_vote : msg_refined_raft_net_invariant_request_vote ghost_log_correct.
Lemma ghost_log_correct_request_vote_reply : msg_refined_raft_net_invariant_request_vote_reply ghost_log_correct.
Lemma doLeader_replicaMessage : forall h st os st' ms m, doLeader st h = (os, st', ms) -> In m ms -> type st = Leader /\ exists h', m = replicaMessage st' h h'.
Lemma doLeader_getNextIndex : forall h h' st os st' ms, doLeader st h = (os, st', ms) -> getNextIndex st' h' = getNextIndex st h'.
Lemma ghost_log_correct_do_leader : msg_refined_raft_net_invariant_do_leader ghost_log_correct.
Lemma ghost_log_correct_do_generic_server : msg_refined_raft_net_invariant_do_generic_server ghost_log_correct.
Lemma ghost_log_correct_reboot : msg_refined_raft_net_invariant_reboot ghost_log_correct.
Lemma ghost_log_correct_client_request : msg_refined_raft_net_invariant_client_request ghost_log_correct.
Lemma ghost_log_correct_timeout : msg_refined_raft_net_invariant_timeout ghost_log_correct.
Lemma ghost_log_correct_state_same_packet_subset : msg_refined_raft_net_invariant_state_same_packet_subset ghost_log_correct.
Lemma ghost_log_correct_init : msg_refined_raft_net_invariant_init ghost_log_correct.