-
Notifications
You must be signed in to change notification settings - Fork 2
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
multiple transitions with same source/label/destination, but different acceptance #38
Comments
Wow, very interesting bug indeed. (Nice catch.) I can see one more solution: we can replace the set of transitions, which is a subset of |
@strejcek I don't get the multiset idea. If |
OK, I have to change F a bit: instead of defining F as a set of sets of transitions, I define it as a function assigning to each element of the multiset of transitions a set of naturel numbers (meaning to which acceptance sets the transition belongs). Hmm, it is probably not as elegant as it seemed to be during the last night. |
My proposal is in commit d83e171. Let me know what you think. In particular, distinguishing transitions is not a problem with state-based acceptance, so I've opted to keep the definition of R as a set of triplets. It this OK? This creates a new difference between the transition-based and state-based semantics that I am not very fond of. It is not just the definition of S that is different, but now also the definition of R. Because R is different, one could also argue that the interpretation of the run should be redefined. Do we really want that, or can we agree that it is easy to infer from the previous definition? The other option is to keep R as a set of quadruplets, but then someone reading only this semantic will wonder what is the purpose of this unused n. Also, do we need an example to illustate this subteltly? Another option is to simply link to this issue when we define n. |
I'm fine with having simpler semantics for state-based acceptance, but then the simpler case should be presented first and the more complex (with N) only later and together with an example. |
Joachim told me (privately) that he favored I would like to make a third proposal in that direction. Let We set |
I like the proposal! |
I agree, that's a very good idea, giving us a clean formalism that easily maps to the format. Thanks, Alexandre! |
In the semantics, distinguish transitions with identical src/label/dst but belonging to difference acceptance sets. This fixes #38.
In the semantics, distinguish transitions with identical src/label/dst but belonging to difference acceptance sets. This fixes #38.
If we ignore alternation, the semantic we give for omega automata with transition-based acceptance assume that the set of transitions and the acceptance sets are subsets of
Q*B(AP)*Q
whereB(AP)
is the set of Boolean functions. However our syntax allows automata that cannot easily fit into this constraint.Consider this:
this declare two transitions
(0)-a->(0)
, each of them in a different acceptance set. But our semantics do not support distinguishing these transitions. Of course we could interpret this situation as a single transition that belongs to both sets: indeed if one of these transitions appear infinitely often in a run, the other transition can be used infinitely often as well. So this automaton is equivalent to the following:(Shameless plug: Spot's
autfilt --merge-transitions
will do this simplification if you need it.)However this reduction is only correct because we are using Inf acceptance.
For instance consider again the first automaton, but negating the acceptance condition:
The above non-deterministic automaton is accepting since we can decide to stop using one of the two transitions at some point. We cannot consider the two transitions as being a single transition that
belongs to both sets, otherwise the automaton would be non-accepting. If fact, because the sets are Fin-accepting, we could declare the
(0)-a->(0)
transition in their intersection if we want to avoid duplicate transitions.Using intersection of
Fin
sets, and union forInf
sets fail when the same set number is used both withFin
andInf
. Consider for instance the same automaton with:I believe we have to change the semantics to support duplicate transitions in different acceptance sets to ensure that they work for any automaton we can represent with HOAF.
Here are two ideas for a possible fix:
Q*B(AP)*Q
to something likeQ*B(AP)*2^F*Q
whereF
is a set of /acceptance numbers/. Then change the acceptance of a run to extract the set of acceptance numbers seen infinitely often and make sure this set is compatible with the acceptance formula.Q*B(AB)*Q
to something likeQ*B(AB)*N*Q
where N are just natural numbers to allow us to duplicate transitions, but are not used for any other purpose. In this caseF
can remain a set of subsets of transitions.I like the second option better because it still makes it clear we think in terms of acceptance sets of transitions.
The text was updated successfully, but these errors were encountered: