Section CurrentTermGtZero.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Proof using.
unfold raft_net_invariant_init, current_term_gt_zero.
intros. simpl in *. congruence.
Qed.
Proof using.
unfold raft_net_invariant_client_request, current_term_gt_zero.
simpl. intuition. find_higher_order_rewrite. update_destruct; subst; rewrite_update.
- find_apply_lem_hyp handleClientRequest_type. intuition.
repeat find_rewrite. auto.
- auto.
Qed.
Proof using.
unfold raft_net_invariant_timeout, current_term_gt_zero.
simpl. intuition. find_higher_order_rewrite. update_destruct; subst; rewrite_update.
- find_apply_lem_hyp handleTimeout_type_strong. intuition.
repeat find_rewrite. auto.
- auto.
Qed.

Lemma current_term_gt_zero_append_entries :
raft_net_invariant_append_entries current_term_gt_zero.