Proof using.
unfold update_elections_data_timeout.
intros. repeat break_match; simpl in *; intuition; repeat tuple_inversion; intuition.
Qed.

Lemma votesWithLog_same_append_entries :
forall h st t n pli plt es ci,
votesWithLog (update_elections_data_appendEntries h st t n pli plt es ci) =
votesWithLog (fst st).