Proof using.
unfold handleClientRequest.
intros.
repeat break_match; find_inversion; auto.
Qed.

(* Specifications: *)
Lemma handleClientRequest_maxIndex :
forall h st client id c out st' l,
handleClientRequest h st client id c = (out, st', l) ->
sorted (log st') ->
maxIndex (log st) <= maxIndex (log st').
Lemma handleTimeout_commitIndex :
forall h st out st' l,
handleTimeout h st = (out, st', l) ->
commitIndex st' = commitIndex st.