Proof using.
red. unfold log_all_entries. intros.
match goal with
| H : nwState ?net ?h = (?gd, ?d) |- _ =>
replace gd with (fst (nwState net h)) in * by (rewrite H; reflexivity);
replace d with (snd (nwState net h)) in * by (rewrite H; reflexivity);
clear H
end.
simpl in *. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto;
[|copy_eapply_prop_hyp In In; repeat find_rewrite; auto].
find_copy_apply_lem_hyp doLeader_type; intuition.
find_apply_lem_hyp doLeader_log. repeat find_rewrite.
copy_eapply_prop_hyp In In; repeat find_rewrite; auto.
Qed.

Lemma log_all_entries_do_generic_server :
refined_raft_net_invariant_do_generic_server log_all_entries.