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

The parameter -os Mealy,Strict is ignored #44

Open
5nizza opened this issue Jan 24, 2023 · 5 comments
Open

The parameter -os Mealy,Strict is ignored #44

5nizza opened this issue Jan 24, 2023 · 5 comments

Comments

@5nizza
Copy link

5nizza commented Jan 24, 2023

According to https://arxiv.org/pdf/1604.02284.pdf Section 3.2, the parameter -os Mealy,Strict when coinciding with SEMANTICS should produce the authentic GR1 formula, not a formula with the global implication. The tool doesn't. Here is an example:

$ cat tmp.tlsf 
INFO {
  TITLE:       ""
  DESCRIPTION: "Exposition of bug"
  SEMANTICS:   Mealy,Strict
  TARGET:      Mealy
}

GLOBAL {
  PARAMETERS { }
  DEFINITIONS { }
}

MAIN {
  INPUTS { a; b; }
  OUTPUTS { c; d; }

  // env, sys init
  INITIALLY { a; b; }
  PRESET { c; d; }

  // env, sys safety
  REQUIRE { c -> (X a || X b); }
  ASSERT { a -> (X c && X d); }

  // env, sys GF
  ASSUME { G F !a; }
  GUARANTEE { G F d; }
}

Now run:

$ syfco ./tmp.tlsf -f ltl -m fully -os Mealy,Strict 
(((a) && (b)) -> (((c) && (d)) && (((G ((c) -> ((X (a)) || (X (b))))) && (G (F (! (a))))) -> ((G ((a) -> ((X (c)) && (X (d))))) && (G (F (d)))))))

It uses the global-implication semantics instead of weak until. Related to #25.

@ssardina
Copy link

I can confirm that, and add that it does produce the strict version with weak until when -os Mealy alone is used:

image

It also seems that the SEMANTICS section in the TLSF file is ignored, always produces the non-strict standard semantics.

@ssardina
Copy link

ssardina commented Jun 4, 2023

@5nizza , no news on this right? Have you found a way around?

@5nizza
Copy link
Author

5nizza commented Jun 5, 2023

@ssardina nope, in my context, I had to manually encode it into the right semantics.

@ssardina
Copy link

ssardina commented Jun 5, 2023

Ouch! What a pity...

See that, against all intuitions, the strict semantics is obtained if you use -os Mealy!

@5nizza
Copy link
Author

5nizza commented Oct 13, 2023

@ssardina oh, thanks for noticing, I use this hack now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants