Lemma doLeader_preserves_candidateEntriesTerm : forall net gd d h os d' ms t', nwState net h = (gd, d) -> doLeader d h = (os, d', ms) -> candidateEntriesTerm t' (nwState net) -> candidateEntriesTerm t' (update name_eq_dec (nwState net) h (gd, d')).