Proof using.
red. unfold append_entries_came_from_leaders. intros.
subst. simpl in *.
find_apply_hyp_hyp. intuition eauto.
- find_apply_hyp_hyp.
break_exists.
repeat find_higher_order_rewrite.
update_destruct; subst_max; rewrite_update; simpl in *; eauto; subst; auto.
rewrite update_elections_data_timeout_leaderLogs. repeat find_rewrite.
eauto.
- do_in_map. subst. simpl in *.
find_eapply_lem_hyp handleTimeout_packets; eauto.
contra.
Qed.

(* Specifications: *)
Lemma append_entries_came_from_leaders_doLeader :
refined_raft_net_invariant_do_leader append_entries_came_from_leaders.