Proof using si rri.
unfold refined_raft_net_invariant_timeout, votesWithLog_sorted.
intros. subst. simpl in *. find_higher_order_rewrite.
update_destruct_simplify; simpl in *.
- destruct (votesWithLog (update_elections_data_timeout h0 (nwState net h0)))
using (votesWithLog_update_elections_data_timeout ltac:(eauto)).
+ simpl in *. intuition.
* find_inversion. erewrite handleTimeout_log_same by eauto.
eauto using sorted_host_lifted.
* eauto.
+ eauto.
- eauto.
Qed.

Lemma votesWithLog_update_elections_data_AE :
forall me st t li pli plt es lci,
votesWithLog (update_elections_data_appendEntries me st t li pli plt es lci) =
votesWithLog (fst st).