Proof using.
unfold type_term_log_monotonic, doGenericServer.
intros.
repeat break_match; repeat find_inversion; simpl in *; auto; try congruence;
use_applyEntries_spec; subst; simpl in *; auto.
Qed.

(* Specifications: *)
Lemma appendEntries_leader_do_generic_server :
refined_raft_net_invariant_do_generic_server appendEntries_leader.