Proof using.
unfold handleTimeout, tryToBecomeLeader.
intros.
repeat break_match; repeat find_inversion; simpl in *; auto.
Qed.

(* Specifications: *)
Lemma allEntries_update_timeout :
forall x h h' net d,
In x (allEntries (fst (nwState net h))) ->
In x (allEntries (fst (update name_eq_dec (nwState net) h'
(update_elections_data_timeout h' (nwState net h'), d) h))).