Proof using.
red; unfold candidate_term_gt_log; simpl; intros;
find_higher_order_rewrite; update_destruct; rewrite_update; auto.
find_copy_apply_lem_hyp handleRequestVoteReply_type.
find_copy_apply_lem_hyp handleRequestVoteReply_log.
intuition; repeat find_rewrite; [eauto|discriminate|discriminate].
Qed.

(* Specifications: *)
Lemma candidate_term_gt_log_do_leader :
raft_net_invariant_do_leader candidate_term_gt_log.