Lemma handleAppendEntriesReply_preserves_candidateEntriesTerm : forall net h h' t es r st' ms t', handleAppendEntriesReply h (snd (nwState net h)) h' t es r = (st', ms) -> refined_raft_intermediate_reachable net -> candidateEntriesTerm t' (nwState net) -> candidateEntriesTerm t' (update name_eq_dec (nwState net) h (fst (nwState net h), st')).