Proof using.
currentTerm_sanity_start_update. simpl in *.
find_eapply_lem_hyp leaderLogs_update_elections_data_RVR; [|auto].
find_copy_apply_lem_hyp handleRequestVoteReply_type.
intuition.
- find_apply_hyp_hyp. repeat find_rewrite. auto.
- find_apply_hyp_hyp. omega.
- find_apply_hyp_hyp. repeat find_rewrite. auto.
- subst. auto.
- subst. auto.
- subst. auto.
Qed.

(* Specifications: *)
Lemma leaderLogs_currentTerm_sanity_do_leader :
refined_raft_net_invariant_do_leader leaderLogs_currentTerm_sanity.