Proof using.
unfold raft_net_invariant_do_leader, match_index_sanity.
simpl.
intros.
repeat find_higher_order_rewrite.
update_destruct_simplify.
- find_apply_lem_hyp doLeader_matchIndex_preserved.
eauto using match_index_sanity_preserved.
- auto.
Qed.

(* Specifications: *)
Lemma match_index_sanity_do_generic_server :
raft_net_invariant_do_generic_server match_index_sanity.