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

Lemma match_index_sanity_state_same_packet_subset :
raft_net_invariant_state_same_packet_subset match_index_sanity.