Proof using rlmli rmri.
red.
split; red; intros; simpl in *; intuition;
unfold ghost_log_entries_match in *; break_and.
- repeat find_higher_order_rewrite; destruct_update; simpl in *; eauto.
+ find_apply_hyp_hyp. intuition.
* erewrite handleTimeout_log_same; eauto.
* packet_simpl. eauto.
+ find_apply_hyp_hyp. intuition.
packet_simpl.
erewrite handleTimeout_log_same with (d' := d) by eauto.
eapply lifted_entries_match_invariant; eauto.
- find_apply_hyp_hyp.
find_apply_hyp_hyp.
intuition.
+ do_in_map. subst. unfold add_ghost_msg in *. do_in_map.
subst. simpl in *.
erewrite handleTimeout_log_same; eauto.
+ do_in_map. subst. unfold add_ghost_msg in *. do_in_map.
subst. simpl in *.
erewrite handleTimeout_log_same; eauto.
+ repeat do_in_map. subst. unfold add_ghost_msg in *. repeat do_in_map.
subst. simpl in *. auto.
Qed.

(* Specifications: *)
Lemma ghost_log_entries_match_do_leader :
msg_refined_raft_net_invariant_do_leader ghost_log_entries_match.