Proof using.
intros. unfold doGenericServer in *.
repeat break_match; find_inversion; subst; auto.
Qed.

Lemma doLeader_messages :
forall d h os d' ms m es e,
doLeader d h = (os, d', ms) ->
In m ms ->
mEntries (snd m) = Some es ->
In e es ->
In e (log d).