Proof using.
unfold raft_net_invariant_request_vote_reply, match_index_sanity.
simpl.
intros.
repeat find_higher_order_rewrite.
update_destruct_simplify.
- pose proof handleRequestVoteReply_matchIndex (pDst p) (nwState net (pDst p)) (pSrc p) t v.
erewrite handleRequestVoteReply_log by eauto.
intuition.
+ repeat find_rewrite. auto.
+ repeat find_rewrite.
destruct (name_eq_dec h (pDst p)).
* subst. rewrite get_set_same_default. auto.
* rewrite get_set_diff_default by auto.
unfold assoc_default. simpl. omega.
- auto.
Qed.

Lemma match_index_sanity_do_leader :
raft_net_invariant_do_leader match_index_sanity.