Section NoAppendEntriesRepliesToSelf.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Context {naetsi : no_append_entries_to_self_interface}.

Lemma doLeader_no_messages_to_self :
forall st h os st' ms m,
doLeader st h = (os, st', ms) ->
In m ms ->
fst m <> h.