Proof using.
intros. unfold handleClientRequest in *.
break_match; find_inversion; subst; intuition.
simpl in *. eauto 10.
Qed.

Lemma lifted_match_index_leader :
forall net leader,
refined_raft_intermediate_reachable net ->
type (snd (nwState net leader)) = Leader ->
assoc_default name_eq_dec (matchIndex (snd (nwState net leader))) leader 0 =
maxIndex (log (snd (nwState net leader))).