Section CandidatesVoteForSelvesProof.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Ltac rewrite_state :=
match goal with
| [st : name -> raft_data,
H : forall _, ?st _ = _  |- _] =>
rewrite H in *
end.
Ltac t :=
repeat break_match;
simpl in *; try find_inversion; rewrite_state;
try use_applyEntries_spec;
repeat break_if; subst; eauto; simpl in *; try discriminate.

(* Specifications: *)
Theorem candidates_vote_for_selves_do_leader :
raft_net_invariant_do_leader (candidates_vote_for_selves).