Professional Documents
Culture Documents
Tut 1
Tut 1
1. Give FO formulae for the languages over Σ = {a, b} that are defined
by the following regular expressions.
a + b.b∗ , aab∗ aa, ab(ab)∗ .
/ 0O
b / 1
b a
3o b
2Q
a
Write down a MSO-formula with only two set variables which captures
the language L(A).
Show that L(A) can also be described using a FO-formula.
5. Show that the logical systems MSO and MSO0 have the same expressive
power.
L0 = w ∈ Σ∗1 | π −1 (w) ⊆ L
∀x.∀y.∃z.(x + z = y) ∨ (y + z = x)
1
Show that the relations x < y, S(x, y) can be defined in PA.
Let φ be a PA formula. We would like to associate to φ an automaton
Aφ such that the language accepted by Aφ is precisely the models of
the formula φ. Towards this, we encode a natural number by its binary
expansion in reverse (that is, starting with the least significant bit). So,
for example, the number ‘13’ corresponds to the binary word ‘1011’.
Note that the binary words ‘10110, 101100, 1011000’ also represent
‘13’.
Now, given a PA formula φ(x1 , . . . , xn ) with free variables x1 , . . . , xn ,
we can represent an interpretation x1 = m1 , . . . , xn = mn by a word
over the alphabet {0, 1}n such that the i-th component of this word
corresponds to a reversed binary expansion of mi .
Show how to construct a finite automaton Aφ working over {0, 1}n such
that L(Aφ ) is the set of all words which represent interpretations for
x1 , . . . , xn which make φ true. Using this, show that, the satisfiability
problem for PA is decidable.
Show that the multiplication predicate x ∗ y = z can not be defined in
PA.
• Σ∗ is star-free, defined by ∼ ∅
• a∗ is star-free, defined by ∼ (Σ∗ · (b + c) · Σ∗ ).
Show that (ab)∗ is star-free. Also, show that, every star-free language
is FO-definable.