Proof using.
intros.
unfold haveNewEntries, not_empty in *.
repeat break_match; do_bool; intuition eauto; try congruence.
do_bool. eauto.
Qed.

(* Specifications: *)
Lemma advanceCurrentTerm_commitIndex :
forall st t,
commitIndex (advanceCurrentTerm st t) = commitIndex st.