Download MONA Version 1.4 User Manual
Transcript
MONA 1.4 7.8 Emulating Monadic Second-order Logic on Trees produces the following results for the states in state space a: Inherited-acceptance: States leading to reject: 3 4 States leading to accept or reject: 0 1 2 5 6 This shows for instance that if the automaton at some point is in state 3 in state space a at some position, it can only lead to reject—no matter what the automaton reads further up the tree. For an application of inherited-acceptance information, see [DKS99]. 7.8 Emulating Monadic Second-order Logic on Trees Just as WS2S is a generalization of WS1S, Monadic Second-order Logic on Trees (M2L-Tree) is a generalisation of M2L-Str, which was briefly described in Section 6.5. M2L-Tree can be emulated by writing m2l-tree; which is the same as writing ws2s; var2 $ where all1 p where true: (p in $) => ((p^ in $) | (p^=p)); allpos $; defaultwhere1(p) = p in $; defaultwhere2(P) = P sub $; The idea is the same as for M2L-Str: A special variable $ is used as a “skeleton” to which all other explicitly declared variables are restricted. 7.9 Recursive types and WSRT In order for the GTA-based decision procedure for WS2S to be efficient, a proper guide must be constructed – a task that requires knowledge about the application domain. However, for applications that are based on recursive types, an efficient guide can often be constructed automatically from the recursive types being used. Note that this MONA feature is just one example of extending WS2S. We plan to add more high-level support of this kind in future versions. This section is not essential for the understanding of tree mode in MONA. The logic WSRT, Weak monadic Second-order logic with Recursive Types, is a variant of WS2S where recursive types are made explicit. WS2S was introduced in [EMS00], based on an encoding technique from [DKS99]. When applicable, WSRT has some benefits compared to pure WS2S: • it allows structures for which the number of successors to a given tree position is not fixed to two; • it provides more high-level structural primitives; and • generated examples and counter-examples are provideed in a more high-level format. Current applications of WSRT include the tools described in [EMS00] and [DKS99]. 47