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.
Proof using.
unfold raft_net_invariant_append_entries, current_term_gt_zero.
simpl. intuition. find_higher_order_rewrite. update_destruct; subst; rewrite_update.
- find_apply_lem_hyp handleAppendEntries_type. intuition.
repeat find_rewrite. auto.
- auto.
Qed.
Proof using.
unfold raft_net_invariant_append_entries_reply, current_term_gt_zero.
simpl. intuition. find_higher_order_rewrite. update_destruct; subst; rewrite_update.
- find_apply_lem_hyp handleAppendEntriesReply_type. intuition.
repeat find_rewrite. auto.
- auto.
Qed.

Lemma current_term_gt_zero_request_vote :
raft_net_invariant_request_vote current_term_gt_zero.