Proof using.
red. unfold append_entries_came_from_leaders. 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.
subst. simpl in *. find_reverse_rewrite.
find_apply_hyp_hyp.
repeat find_higher_order_rewrite.
update_destruct; subst_max; rewrite_update; simpl in *; eauto; subst; auto.
Qed.

(* Specifications: *)
Lemma append_entries_came_from_leaders_state_same_packet_subset :
refined_raft_net_invariant_state_same_packet_subset append_entries_came_from_leaders.