Definition everything (net : ghost_log_network) : Prop :=
    lifted_maxIndex_sanity net /\
    commit_invariant net /\
    state_machine_safety (deghost (mgv_deghost net)).

(* Specifications: *)
Lemma everything_init : msg_refined_raft_net_invariant_init everything.
Lemma everything_client_request : msg_refined_raft_net_invariant_client_request' everything.
Lemma everything_timeout : msg_refined_raft_net_invariant_timeout' everything.
Lemma everything_append_entries : msg_refined_raft_net_invariant_append_entries' everything.
Lemma everything_append_entries_reply : msg_refined_raft_net_invariant_append_entries_reply' everything.
Lemma everything_request_vote : msg_refined_raft_net_invariant_request_vote' everything.
Lemma everything_request_vote_reply : msg_refined_raft_net_invariant_request_vote_reply' everything.
Lemma everything_do_leader : msg_refined_raft_net_invariant_do_leader' everything.
Lemma everything_do_generic_server : msg_refined_raft_net_invariant_do_generic_server' everything.
Lemma directly_committed_state_same : forall net net' e, (forall h, nwState net' h = nwState net h) -> directly_committed net e -> directly_committed net' e.
Lemma lifted_committed_state_same : forall (net net' : ghost_log_network) e t, (forall h, nwState net' h = nwState net h) -> lifted_committed net e t -> lifted_committed net' e t.
Lemma exists_in_mgv_deghost_packet : forall (p : packet (params := raft_refined_multi_params)) (net : ghost_log_network), In p (nwPackets (mgv_deghost net)) -> exists q, In q (nwPackets net) /\ pDst q = pDst p /\ pSrc q = pSrc p /\ snd (pBody q) = pBody p.
Lemma state_machine_safety'_state_same_packet_subset : msg_refined_raft_net_invariant_state_same_packet_subset (fun net : ghost_log_network => state_machine_safety' (mgv_deghost net)).
Lemma CRC_state_same_packet_subset : msg_refined_raft_net_invariant_state_same_packet_subset (fun net : ghost_log_network => commit_recorded_committed (mgv_deghost net)).
Lemma everything_state_same_packet_subset : msg_refined_raft_net_invariant_state_same_packet_subset' everything.
Lemma everything_reboot : msg_refined_raft_net_invariant_reboot' everything.
Theorem everything_invariant : forall net, msg_refined_raft_intermediate_reachable net -> everything net.
Theorem state_machine_safety_invariant : forall net, raft_intermediate_reachable net -> state_machine_safety net.
Theorem maxIndex_sanity_invariant : forall net, raft_intermediate_reachable net -> maxIndex_sanity net.
Theorem commit_recorded_committed_invariant : forall net, refined_raft_intermediate_reachable net -> commit_recorded_committed net.