Proof using lmi.
intros.
find_apply_lem_hyp maxIndex_non_empty.
break_exists; intuition; find_rewrite.
find_apply_lem_hyp log_matching_invariant.
unfold log_matching, log_matching_nw in *.
intuition. destruct (pBody p) eqn:?; simpl in *; try congruence.
find_apply_hyp_hyp. intuition. find_inversion.
find_apply_hyp_hyp. omega.
Qed.

(* Specifications: *)
Lemma logs_contiguous :
forall net h,
raft_intermediate_reachable net ->
contiguous_range_exact_lo (log (nwState net h)) 0.
Lemma deghost_snd :
forall net h,
snd (nwState net h) = nwState (deghost net) h.