Ltac prove_in :=
    match goal with
      | [ _ : nwPackets ?net = _,
              _ : In (?p : packet) _ |- _] =>
        assert (In p (nwPackets net)) by (repeat find_rewrite; do_in_app; intuition)
      | [ _ : nwPackets ?net = _,
              _ : pBody ?p = _ |- _] =>
        assert (In p (nwPackets net)) by (repeat find_rewrite; intuition)
    end.

Lemma leaderLogs_contiguous : forall net h t ll, refined_raft_intermediate_reachable net -> In (t, ll) (leaderLogs (fst (nwState net h))) -> contiguous_range_exact_lo ll 0.