Proof using.
unfold handleAppendEntriesReply, advanceCurrentTerm.
intros.
repeat break_match; repeat find_inversion; simpl in *; do_bool; auto; congruence.
Qed.

(* Specifications: *)
Lemma match_index_sanity_append_entries_reply :
raft_net_invariant_append_entries_reply match_index_sanity.