Proof using.
intros.
unfold update_elections_data_client_request in *.
repeat break_match; repeat find_inversion; auto.
simpl in *. intuition.
find_inversion. repeat find_rewrite. intuition.
Qed.

(* Specifications: *)
Lemma handleClientRequest_currentTerm_leaderId :
forall h st client id c out st' ms,
handleClientRequest h st client id c = (out, st', ms) ->
currentTerm st' = currentTerm st /\
leaderId st' = leaderId st.