Proof using.
intros.
unfold handleRequestVoteReply, advanceCurrentTerm in *.
repeat break_match; try find_inversion; subst; simpl in *; intuition;
do_bool; intuition; try right; congruence.
Qed.

Lemma contradict_leaderLogs_term_sanity :
forall net h t ll e,
refined_raft_intermediate_reachable net ->
In (t, ll) (leaderLogs (fst (nwState net h))) ->
In e ll ->
eTerm e = currentTerm (snd (nwState net h)) ->
False.