Proof using.
intros.
find_apply_lem_hyp doGenericServer_type. break_and.
eapply candidateEntriesTerm_same; eauto.
- intros. update_destruct_simplify; auto.
find_rewrite. simpl. auto.
- intros. update_destruct_simplify; auto.
repeat find_rewrite.  auto.
- intros. update_destruct_simplify; auto.
repeat find_rewrite.  auto.
Qed.

Lemma prevLog_candidateEntriesTerm_do_generic_server :
refined_raft_net_invariant_do_generic_server prevLog_candidateEntriesTerm.