Proof using iliaei rmri.
red. unfold ghost_log_allEntries. 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.
- find_apply_hyp_hyp; intuition; eauto.
do_in_map.
remember (pSrc p).
subst p. simpl in *. unfold add_ghost_msg in *.
do_in_map. subst. simpl in *. unfold write_ghost_log in *.
pose proof lifted_in_log_in_all_entries_invariant (mkNetwork _ _) ltac:(eauto) n e.
simpl in *. find_higher_order_rewrite. rewrite_update.
simpl in *. concludes. auto.
- find_apply_hyp_hyp; intuition; eauto.
do_in_map.
remember (pSrc p).
subst p. simpl in *. congruence.
Qed.

Lemma ghost_log_allEntries_do_generic_server :
msg_refined_raft_net_invariant_do_generic_server' ghost_log_allEntries.