Proof using.
unfold advanceCurrentTerm.
intros. repeat break_match; auto.
Qed.

(* Specifications: *)
Lemma handleRV_advanceCurrentTerm_preserves_candidateEntriesTerm :
forall net h h' t lli llt t',
candidateEntriesTerm t' (nwState net) ->
candidateEntriesTerm t'
(update name_eq_dec (nwState net) h
(update_elections_data_requestVote h h' t h' lli llt (nwState net h),
advanceCurrentTerm (snd (nwState net h)) t)).
Lemma handleRV_advanceCurrentTerm_preserves_candidateEntries :
forall net h h' t lli llt e,
candidateEntries e (nwState net) ->
candidateEntries e
(update name_eq_dec (nwState net) h
(update_elections_data_requestVote h h' t h' lli llt (nwState net h),
advanceCurrentTerm (snd (nwState net h)) t)).