Definition terms_and_indices_from_one_log_ind (net : network) : Prop :=
    terms_and_indices_from_one_log net /\ terms_and_indices_from_one_log_nw net.

(* Specifications: *)
Lemma terms_and_indices_from_one_log_ind_init : raft_net_invariant_init terms_and_indices_from_one_log_ind.
Lemma taifol_no_append_entries : forall ps' net ms p t leaderId prevLogIndex prevLogTerm entries leaderCommit h, (forall (p : packet), In p ps' -> In p (nwPackets net) \/ In p (send_packets h ms)) -> (forall m, In m ms -> ~ is_append_entries (snd m)) -> In p ps' -> pBody p = AppendEntries t leaderId prevLogIndex prevLogTerm entries leaderCommit -> terms_and_indices_from_one_log_nw net -> terms_and_indices_from_one entries.
Lemma terms_and_indices_from_one_log_ind_client_request : raft_net_invariant_client_request terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_timeout : raft_net_invariant_timeout terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_app : forall xs ys, terms_and_indices_from_one xs -> terms_and_indices_from_one ys -> terms_and_indices_from_one (xs ++ ys).
Lemma terms_and_indices_from_one_In : forall (xs ys : list entry), (forall x, In x xs -> In x ys) -> terms_and_indices_from_one ys -> terms_and_indices_from_one xs.
Lemma terms_and_indices_from_one_log_ind_append_entries : raft_net_invariant_append_entries terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_append_entries_reply : raft_net_invariant_append_entries_reply terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_request_vote : raft_net_invariant_request_vote terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_request_vote_reply : raft_net_invariant_request_vote_reply terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_do_leader : raft_net_invariant_do_leader terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_do_generic_server : raft_net_invariant_do_generic_server terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_state_same_packet_subset : raft_net_invariant_state_same_packet_subset terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_reboot : raft_net_invariant_reboot terms_and_indices_from_one_log_ind.
Lemma terms_and_indices_from_one_log_ind_invariant : forall net, raft_intermediate_reachable net -> terms_and_indices_from_one_log_ind net.