• Aucun résultat trouvé

LOGICS TD 4 : Presburger Arithmetics Exercice 4.1

N/A
N/A
Protected

Academic year: 2022

Partager "LOGICS TD 4 : Presburger Arithmetics Exercice 4.1"

Copied!
2
0
0

Texte intégral

(1)

Bordeaux university

Master Computer Science, 2015/2016

LOGICS

TD 4 : Presburger Arithmetics Exercice 4.1 Automata construction

1- Construct finite automata for the following languages :

ν

1

({(x, y) ∈ N

2

| 2x = y}); ν

1

({(x, y) ∈ N

2

| x ≤ y}) 2- Let α ∈ N be some fixed integer. Describe some finite automaton recognizing

ν

1

({(x, y) ∈ N

2

| αx = y}) Exercice 4.2 Linear equations

We consider the following system of equations (and inequations) over natural integers : 2x + y = z, x ≤ y

1- How can we describe its set of solutions by means of a finite automaton ?

2- Let us assume we aim at solving a system of equations and inequations over N by means of automata theory.

2.1 How much time will it take to decide whether there exists some solution ? 2.2 Give an upper-bound on the minimal size of a solution (if some exists).

Exercice 4.3 Language of squares Let us consider the predicate defined by :

C(n) ⇔ ∃y, x = y × y

1- Show that the predicate x × y = z is definable within the language L

1

(+, =, C).

2- Conclude that the first-order theory of h N , +, =, Ci is undecidable.

3- Show that the langage

{u ∈ Σ

2

| ν(u) is a square } is not rationnal.

Exercice 4.4 Algebraic integers Show that the first-order theory of

h Z , +, 0, 1, ≤, =i is decidable.

Exercice 4.5 Skolem arithmetics

Show, by an adequate use of the closure and decidability properties of term automata, that the first-order theory of

h N , ×, =i

is decidable.

(2)

Exercice 4.6 Logics over words

1- Show, by an adequate use of the closure and decidability properties of word automata, that the first-order theory of

hX

, ≈, , (S

x

)

x∈X

i

[where u ≈ v means |u| = |v|, denotes the prefix ordering and u = S

x

(v) means u = v · x]

is decidable.

2- Is every rational language over X

definable within this logics ? Exercice 4.7 Logics over the free monoid

Using the undecidability of the Post Correspondence Problem, show that the first-order theory of

h{a, b, c}

, a, b, c, ·, =i is undecidable.

2

Références

Documents relatifs

◊ remarque : l'inductance est plus grande avec le noyau de fer feuilleté (aimantation induite) ; elle est un peu plus faible avec un noyau de métal non feuilleté (champ magnétique

Exercice 7 : Complète les pointillés pour ajuster les équations de

[r]

[r]

Le directeur estime que si plus de la moitié des résidents est âgée de plus de 87 ans, il devra embaucher du personnel supplémentaire pour s’occuper des résidents.. Indiquer si

1- Ecrire une Procédure DecToBin qui permet de convertir un entier positif en une chaine de caractères binaire (‘0’ ou ‘1’) représentant son code Binaire. 2-

[r]

Laquelle de ces affirmations est