Proof using.
unfold handleRequestVoteReply.
intros.
repeat break_match; repeat find_inversion; do_bool; subst; simpl; intuition.
Qed.

Lemma update_elections_data_RVR_ascending_leaderLog :
forall h src t1 v st,
type (snd st) = Candidate ->
type (handleRequestVoteReply h (snd st) src t1 v) = Leader ->
exists ll,
In (currentTerm (snd st), ll) (leaderLogs (update_elections_data_requestVoteReply h src t1 v st)).