Proof using.
intros.
unfold handleAppendEntries, advanceCurrentTerm in *.
repeat break_match; find_inversion; simpl in *;
do_bool; auto.
Qed.

Lemma update_elections_data_appendEntries_spec :
forall h st t n pli plt es ci st' e t',
update_elections_data_appendEntries h st t n pli plt es ci = st' ->
In e (cronies st' t') ->
In e (cronies (fst st) t').