Skip to content

Commit

Permalink
Change trigges
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Sun <[email protected]>
  • Loading branch information
marshtompsxd committed Sep 5, 2024
1 parent edd9b5c commit 8476686
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/kubernetes_cluster_v2/proof/compositionality.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ pub trait BaseComposition: Sized {
spec.entails(lift_state(cluster.init())),
spec.entails(always(lift_action(cluster.next()))),
// The cluster starts with the initial state of the consumer().
forall |s| cluster.init()(s)
==> #[trigger] (controller(Self::consumer().controller.reconcile_model, consumer_id).init)(s.controller_and_externals[consumer_id].controller),
forall |s| #[trigger] cluster.init()(s)
==> (controller(Self::consumer().controller.reconcile_model, consumer_id).init)(s.controller_and_externals[consumer_id].controller),
// The fairness condition is enough to say that the consumer runs as part of the cluster's next transition.
spec.entails(tla_forall(|input| cluster.chosen_controller_next(consumer_id).weak_fairness(input))),
// The next two preconditions say that no controller (except the consumer itself) interferes with this consumer().
Expand All @@ -232,8 +232,8 @@ pub trait BaseComposition: Sized {
spec.entails(lift_state(cluster.init())),
spec.entails(always(lift_action(cluster.next()))),
// The cluster starts with the initial state of the producer.
forall |s| cluster.init()(s)
==> #[trigger] (controller(Self::producers()[p_index].controller.reconcile_model, producer_id).init)(s.controller_and_externals[producer_id].controller),
forall |s| #[trigger] cluster.init()(s)
==> (controller(Self::producers()[p_index].controller.reconcile_model, producer_id).init)(s.controller_and_externals[producer_id].controller),
// The fairness condition is enough to say that the producer runs as part of the cluster's next transition.
spec.entails(tla_forall(|input| cluster.chosen_controller_next(producer_id).weak_fairness(input))),
// The next two preconditions say that no controller (except the producer itself) interferes with this producer.
Expand Down Expand Up @@ -301,8 +301,8 @@ pub trait IncrementalComposition: Sized {
spec.entails(lift_state(cluster.init())),
spec.entails(always(lift_action(cluster.next()))),
// The cluster starts with the initial state of the consumer().
forall |s| cluster.init()(s)
==> #[trigger] (controller(Self::consumer().controller.reconcile_model, consumer_id).init)(s.controller_and_externals[consumer_id].controller),
forall |s| #[trigger] cluster.init()(s)
==> (controller(Self::consumer().controller.reconcile_model, consumer_id).init)(s.controller_and_externals[consumer_id].controller),
// The fairness condition is enough to say that the consumer runs as part of the cluster's next transition.
spec.entails(tla_forall(|input| cluster.chosen_controller_next(consumer_id).weak_fairness(input))),
// The next two preconditions say that no controller (except the consumer itself) interferes with this consumer().
Expand Down

0 comments on commit 8476686

Please sign in to comment.