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

Lemma appendEntries_leader_append_entries_reply :
refined_raft_net_invariant_append_entries_reply appendEntries_leader.