Proof using.
red. unfold allEntries_leader_sublog. intros. simpl in *.
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.
subst. repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto;
do_in_map; subst;
destruct x; simpl in *;
find_copy_apply_lem_hyp doLeader_type;
find_apply_lem_hyp doLeader_log;
intuition; repeat find_rewrite; eauto; try congruence.
Qed.

(* Specifications: *)
Lemma allEntries_leader_sublog_do_generic_server :
refined_raft_net_invariant_do_generic_server allEntries_leader_sublog.