Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prove ReplicaSet invariants, Convert Model from usize to unbounded Nats #575

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark flaky proofs, remove rlimit extension
Signed-off-by: Cody Rivera <[email protected]>
codyjrivera committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c3d08b741f69d07ce8c1b0aaf761225419f8eeb5
Original file line number Diff line number Diff line change
@@ -605,7 +605,7 @@ pub proof fn lemma_from_after_receive_list_pods_resp_to_send_create_pod_req(
);
}

#[verifier(rlimit(10000))]
// TODO: Investigate flaky proof.
pub proof fn lemma_from_after_send_create_pod_req_to_receive_ok_resp(
vrs: VReplicaSetView, spec: TempPred<ClusterState>, cluster: Cluster, controller_id: int,
req_msg: Message, diff: int
3 changes: 1 addition & 2 deletions src/v2/kubernetes_cluster/proof/controller_runtime_safety.rs
Original file line number Diff line number Diff line change
@@ -90,8 +90,7 @@ pub open spec fn state_comes_with_a_pending_request(self, controller_id: int, st
&&& forall |cr, resp_o, pre_state| #[trigger] state((self.controller_models[controller_id].reconcile_model.transition)(cr, resp_o, pre_state).0) ==> (self.controller_models[controller_id].reconcile_model.transition)(cr, resp_o, pre_state).1.is_Some()
}

// TODO: Proof exceeds default rlimit now, investigate.
#[verifier(rlimit(10000))]
// TODO: Investigate flaky proof.
pub proof fn lemma_always_pending_req_in_flight_or_resp_in_flight_at_reconcile_state(self, spec: TempPred<ClusterState>, controller_id: int, key: ObjectRef, state: spec_fn(ReconcileLocalState) -> bool)
requires
self.controller_models.contains_key(controller_id),