Proof using.
unfold handleAppendEntriesReply, advanceCurrentTerm.
intros.
repeat break_match; repeat find_inversion; auto.
Qed.

(* Specifications: *)
Lemma handleRequestVote_same_commitIndex :
forall n st t c li lt st' ms,
handleRequestVote n st t c li lt = (st', ms) ->
commitIndex st' = commitIndex st.