Section LogAllEntries.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Context {rri : raft_refinement_interface}.
Context {tsi : term_sanity_interface}.
Ltac rewrite_goal :=
match goal with
| H: _ = _ |- _ => rewrite H
end.
Definition no_entries_past_current_term_host_lifted net :=
forall (h : name) e,
In e (log (snd (nwState net h))) ->
eTerm e <= currentTerm (snd (nwState net h)).

Lemma no_entries_past_current_term_host_lifted_invariant :
forall net,
refined_raft_intermediate_reachable net ->
no_entries_past_current_term_host_lifted net.