Skip to content

Spec claims to check (safety-prop) UnforgLtl but config actually also checks (liveness-props) CorrLtl and RelayLtl #174

Open

Description

@lemmy

(* This formula SpecNoBcast is used to only check Unforgeability.
No fairness is needed, as Unforgeability is a safety property.
*)
SpecNoBcast == InitNoBcast /\ [][Next]_vars

(* If a correct process broadcasts, then every correct process eventually accepts. *)
CorrLtl == (\A i \in Corr: pc[i] = "V1") => <>(\A i \in Corr: pc[i] = "AC")
(* If a correct process accepts, then every correct process accepts. *)
RelayLtl == []((\E i \in Corr: pc[i] = "AC") => <>(\A i \in Corr: pc[i] = "AC"))
(* If no correct process don't broadcast ECHO messages then no correct processes accept. *)
UnforgLtl == (\A i \in Corr: pc[i] = "V0") => [](\A i \in Corr: pc[i] /= "AC")
(* The special case of the unforgeability property. When our algorithms start with InitNoBcast,
we can rewrite UnforgLtl as a first-order formula.
*)
Unforg == (\A i \in Proc: i \in Corr => (pc[i] /= "AC"))

PROPERTIES CorrLtl RelayLtl

Activity

  1. changed the title [-]Spec claims to check (safety-prop) UnforgLtl but config actually checks (liveness-props) CorrLtl and RelayLtl[/-] [+]Spec claims to check (safety-prop) `UnforgLtl` but config actually checks (liveness-props) `CorrLtl` and `RelayLtl`[/+] on Jun 23, 2025
  2. changed the title [-]Spec claims to check (safety-prop) `UnforgLtl` but config actually checks (liveness-props) `CorrLtl` and `RelayLtl`[/-] [+]Spec claims to check (safety-prop) `UnforgLtl` but config actually also checks (liveness-props) `CorrLtl` and `RelayLtl`[/+] on Jun 23, 2025
  3. lemmy commented on Jun 23, 2025

    @lemmy
    MemberAuthor

    CorrLtl is not violated, even without a fairness constraint, because InitNoBcast causes CorrLtl to be vacuously true. Although not as easy to see, the same is true for RelayLtl (confirmed by checking that the invariant \A i \in Corr: pc[i] # "AC" holds).

  4. lemmy commented on Jun 23, 2025

    @lemmy
    MemberAuthor

    @konnov As one of the specification authors, could you please share your input?

  5. ahelwer commented on Jun 23, 2025

    @ahelwer
    Collaborator

    I was the one who added the models as part of work last year to mass-add models for all specs in the repo (#110). I did not pay particularly close attention to things like this, just added things that looked like properties to check to the model file then ran TLC to see whether it worked. So if this property shouldn't be checked then that's fine, it can be removed.

  6. konnov commented on Jun 23, 2025

    @konnov
    Collaborator

    I was the one who added the models as part of work last year to mass-add models for all specs in the repo (#110). I did not pay particularly close attention to things like this, just added things that looked like properties to check to the model file then ran TLC to see whether it worked. So if this property shouldn't be checked then that's fine, it can be removed.

    @lemmy you are right. In case of SpecNoBcast, both CorrLtl and RelayLtl are vacuously true, as no correct process ever reaches V1 or AC. This works as intended. Since SpecNoBcast is the special case of Spec, and CorrLtl and RelayLtl hold true on Spec, they also hold true on SpecNoBcast.

    The above implication is obvious, but it's not machine-checked. So we could probably still keep the LTL formulas in both cases, just to show the properties on both kinds of specs.

  7. konnov commented on Jun 23, 2025

    @konnov
    Collaborator

    It's interesting how both CorrLtl and RelayLtl work without fairness in case of SpecNoBcast. I am not sure about whether $SpecNoBcast \Rightarrow Spec$ holds true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions