Proof using.
unfold doLeader. intros.
repeat break_match; find_inversion; simpl in *; auto.
Qed.

(* Specifications: *)
Lemma handleAppendEntriesReply_log :
forall h st h' t es r st' ms,
handleAppendEntriesReply h st h' t es r = (st', ms) ->
log st' = log st.