Proof using.
unfold update_elections_data_requestVoteReply.
intros.
repeat break_match; auto.
Qed.

Lemma handleAppendEntriesReply_entries :
forall h st t h' pli plt es ci st' t' es',
handleAppendEntries h st t h' pli plt es ci =
(st', AppendEntriesReply t' es' true) ->
t' = t /\ es' = es /\ (forall e, In e es -> In e (log st') \/ haveNewEntries st es = false /\ log st' = log st).