Proof using.
unfold doLeader.
intros.
repeat break_match; repeat find_inversion; simpl in *; intuition.
do_in_map.
subst.
unfold replicaMessage.
repeat break_match; simpl; eauto 10.
Qed.

(* Specifications: *)
Lemma match_index_all_entries_do_leader :
refined_raft_net_invariant_do_leader match_index_all_entries_inv.