Proof using tsi.
red. unfold candidate_term_gt_log. simpl. intros.
find_higher_order_rewrite. update_destruct; subst; rewrite_update; auto.
find_copy_apply_lem_hyp handleTimeout_log_same.
find_apply_lem_hyp handleTimeout_type_strong. intuition.
+ repeat find_rewrite. eauto.
+ find_apply_lem_hyp no_entries_past_current_term_invariant.
unfold no_entries_past_current_term in *. intuition.
unfold no_entries_past_current_term_host in *. repeat find_rewrite.
find_apply_hyp_hyp. omega.
Qed.

Lemma candidate_term_gt_log_append_entries :
raft_net_invariant_append_entries candidate_term_gt_log.