Proof using.
unfold update_elections_data_timeout.
intros. repeat break_match; simpl in *; intuition; repeat tuple_inversion; intuition.
- unfold handleTimeout, tryToBecomeLeader in *.
repeat break_match; repeat find_inversion; simpl in *; intuition.
- unfold handleTimeout, tryToBecomeLeader in *.
repeat break_match;  repeat find_inversion; simpl in *; congruence.
Qed.

(* Specifications: *)
Lemma allEntries_votesWithLog_timeout :
refined_raft_net_invariant_timeout allEntries_votesWithLog.