Proof using.
red. unfold candidate_term_gt_log. simpl. intros.
find_higher_order_rewrite. update_destruct; subst; rewrite_update; auto.
unfold handleAppendEntries in *. repeat break_match; tuple_inversion; eauto; discriminate.
Qed.
Ltac start := red; unfold candidate_term_gt_log; simpl; intros;
find_higher_order_rewrite; update_destruct; subst; rewrite_update; [|auto].

(* Specifications: *)
Lemma candidate_term_gt_log_append_entries_reply :
raft_net_invariant_append_entries_reply candidate_term_gt_log.