Proof using.
unfold doGenericServer.
intros.
repeat break_match; repeat find_inversion; simpl.
- do_bool.
revert Heqb.
eapply applyEntries_spec_ind; eauto.
- do_bool.
revert Heqb.
eapply applyEntries_spec_ind; eauto.
Qed.

Lemma lifted_maxIndex_sanity_do_generic_server :
msg_refined_raft_net_invariant_do_generic_server lifted_maxIndex_sanity.