Proof using cci.
start.
eapply candidateEntries_ext; eauto.
repeat find_higher_order_rewrite.
destruct_update; simpl in *; eauto.
- find_copy_apply_lem_hyp update_elections_data_client_request_allEntries.
intuition;
repeat find_rewrite; eauto.
+ find_apply_hyp_hyp.
unfold candidateEntries in *.
break_exists_exists.
destruct_update; simpl in *; eauto.
erewrite update_elections_data_client_request_cronies; eauto.
intuition.
find_apply_lem_hyp handleClientRequest_type.
intuition. repeat find_rewrite. eauto.
+ break_exists. intuition.
repeat find_rewrite. simpl in *. intuition.
* find_inversion.
exists h0. rewrite_update.
simpl.
find_copy_apply_lem_hyp handleClientRequest_type.
break_and; repeat find_rewrite; intuition; try congruence.
erewrite update_elections_data_client_request_cronies; eauto.
eapply won_election_cronies; repeat find_rewrite;
eauto using cronies_correct_invariant.
* find_apply_hyp_hyp.
unfold candidateEntries in *.
break_exists_exists.
destruct_update; simpl in *; eauto.
erewrite update_elections_data_client_request_cronies; eauto.
intuition.
find_apply_lem_hyp handleClientRequest_type.
intuition. repeat find_rewrite. eauto.
- find_apply_hyp_hyp.
unfold candidateEntries in *.
break_exists_exists.
destruct_update; simpl in *; eauto.
erewrite update_elections_data_client_request_cronies; eauto.
intuition.
find_apply_lem_hyp handleClientRequest_type.
intuition. repeat find_rewrite. eauto.
Qed.

(* Specifications: *)
Lemma allEntries_candidateEntries_timeout :
refined_raft_net_invariant_timeout allEntries_candidateEntries.