Proof using.
intros. unfold doGenericServer in *.
repeat break_match; find_inversion;
use_applyEntries_spec; simpl in *;
subst; auto.
Qed.

Lemma handleClientRequest_term_votedFor :
forall h st client id c os st' m,
handleClientRequest h st client id c = (os, st', m) ->
type st' = type st /\
currentTerm st' = currentTerm st /\
votedFor st' = votedFor st.