Proof using lhlli.
red. intros. unfold in_any_log_term_was_created. intros.
iae_case.
- unfold term_was_created. simpl in *.
find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
+ find_apply_lem_hyp handleClientRequest_log.
intuition; subst; repeat find_rewrite; try cr_in_log_in_leader_log.
break_exists. intuition.
repeat find_rewrite. simpl in *. intuition; subst.
* find_eapply_lem_hyp leaders_have_leaderLogs_invariant; eauto.
match goal with
| [h : name |- _ ] => (exists h)
end.
break_exists_exists.
repeat find_rewrite.
repeat find_higher_order_rewrite.
rewrite update_eq; auto. simpl.
rewrite update_elections_data_client_request_leaderLogs.
auto.
* cr_in_log_in_leader_log.
+ cr_in_log_in_leader_log.
- find_apply_hyp_hyp. intuition.
+ cr_in_aer_in_leader_log.
+ do_in_map. subst.
find_eapply_lem_hyp handleClientRequest_no_append_entries; eauto.
simpl in *.
intuition. find_false.
unfold mEntries in *. break_match; try congruence.
repeat eexists; eauto.
- find_higher_order_rewrite.
destruct_update; simpl in *.
+ find_rewrite_lem update_elections_data_client_request_leaderLogs.
cr_in_ll_in_leader_log.
+ cr_in_ll_in_leader_log.
Qed.

(* Specifications: *)
Lemma in_any_log_term_was_created_timeout :
refined_raft_net_invariant_timeout in_any_log_term_was_created.