Section SpecLemmas.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Context {rri : raft_refinement_interface}.

Lemma votes_update_elections_data_request_vote :
forall h st t src lli llt st' m t' h',
handleRequestVote h (snd st) t src lli llt = (st', m) ->
In (t', h') (votes (update_elections_data_requestVote h src t src lli llt st)) ->
In (t', h') (votes (fst st)) \/ t' = currentTerm st' /\ votedFor st' = Some h'.