Proof using.
intros. unfold doGenericServer in *. break_let. find_inversion.
simpl in *.
break_if; simpl in *; do_bool; auto.
- use_applyEntries_spec. subst. simpl in *.
eauto using Max.le_max_r.
- use_applyEntries_spec. subst. simpl in *.
eauto using Max.le_max_l.
Qed.

Lemma lastApplied_le_commitIndex_doGenericServer :
raft_net_invariant_do_generic_server lastApplied_le_commitIndex.