• Aucun résultat trouvé

LOGICS TD0 : Natural deduction

N/A
N/A
Protected

Academic year: 2022

Partager "LOGICS TD0 : Natural deduction"

Copied!
2
0
0

Texte intégral

(1)

Bordeaux university

Master in Computer science, semester 1, 2015/2016

LOGICS

TD0 : Natural deduction

Propositionnal calculus Exercise 0.1 NJ

Give a proof within system NJ for the formulas :

⊢ (B → ⊥) ↔ ¬B

⊢ A → ¬¬A

⊢ ¬¬¬A → ¬A

⊢ (¬A ∨ ¬B) → ¬(A ∧ B )

⊢ ¬(A ∨ B) ↔ (¬A ∧ ¬B )

⊢ ¬¬(A ∨ ¬A)

⊢ (A → B) → (¬B → ¬A)

Exercise 0.2 NK

Give a proof within system NK for the formulas :

⊢ ¬¬A → A

⊢ A ∨ ¬A

⊢ ¬(A ∧ B) → ¬A ∨ ¬B

⊢ (¬B → ¬A) → (A → B)

Exercise 0.3 De Bruijn’s numbering

Let Φ be some first-order formula and p a leaf of the planar tree P (Φ) that represents this formula. If p is labeled by a variable v ∈ V , we define its De Bruijn’ s number by :

N (p) := −1 if v is free at p

N (p) := Card{q ∈ Dom(P(Φ)) | r ≺ q ≺ p, P(Φ)(q) ∈ QV, P(Φ)(q) ∈ Q{v}} / if P (Φ)(r) ∈ Q{v} and ∀q, (r ≺ q ≺ p ⇒ P (Φ)(q) ∈ Q{v}). /

In words : N (p) is the number of the first quantification of the variable v that is encountered when “ climbing” the tree from position p up to the root. One defines then the planar tree DB(Φ) by

Dom(DB(Φ)) := Dom(P(Φ))

DB(Φ)(p) := (P(Φ))(p) if (P(Φ))(p) is a connective or a symbol of the signature DB(Φ)(p) := Q if (P(Φ))(p) ∈ QV where Q is a quantifier

DB(Φ)(p) := N (p) if (P(Φ))(p) ∈ V and N (p) ≥ 0 DB(Φ)(p) := v if (P(Φ))(p) ∈ V and N (p) = −1

1- Show that, if Φ, Φ

are first-order formulas, Φ ≡

α

Φ

if and only if DB(Φ) = DB(Φ

).

2- Show that Φ 7→ DB(Φ) can be computed in linear time.

(2)

3- Construct an algorithm that takes in input (Φ, v, t) where Φ is a first-order formula, v is a variable and t is a term and returns a representative of Φ[v := t].

4- Describe an algorithmic method allowing, given a first-order formula Ψ to compute all the formulas Φ, up to α-equivalence, such that there exists some variable v and some term t such that

Φ[v := t] ≡

α

Ψ.

Exercise 0.4 variables that are linked several times

The “ four-squares theorem” asserts that, every natural integer can be written as a sum of four squares. Using the signature S = {E; P, M }, this theorem can be expressed by :

∀x · ∃y

1

· ∃y

2

· ∃y

3

· ∃y

4

· E(x, P (M (y

1

, y

1

), P (M(y

2

, y

2

), P (M (y

3

, y

3

), M (y

4

, y

4

)))))

Could you express the same theorem by a formula that uses three variables only ? Exercise 0.5

What do you think about the following “ proofs” ? π

1

:

1 − P (x) ⊢ P(x) (axiom) 2 − P (x) ⊢ ∀x · P (x) (1, ∀

intro

) 3 − P (x) ⊢ P(y) (2, ∀

elim

) 4− ⊢ P (x) → P (y) (3, →

elim

) 5− ⊢ ∀y P (x) → P(y) (4, ∀

intro

) 6− ⊢ ∀x ∀y P (x) → P (y) (5, ∀

intro

) π

2

:

1 − ∀z · z = z ⊢ ∀z · z = z (axiom) 2 − ∀z · z = z ⊢ x = x (1, ∀

elim

) 3 − ∀z · z = z ⊢ ∃y · x = y (2, ∀

intro

) 4 − ∀z · z = z ⊢ ∀x · ∃y · x = y (3, ∀

intro

) 5 − ∀z · z = z ⊢ ∃y · S(y) = y (4, ∀

elim

)

Exercise 0.6 NJ

Give a NJ proof for the following formulas :

⊢ (∀xP (x) ∧ ∀yQ(y)) → ∀z(P (z) ∧ Q(z))

⊢ (∀xP (x) ∧ ∃yQ(y)) → ∃z(P (z) ∧ Q(z))

⊢ ¬∃xP (x) ↔ ∀x¬P (x)

⊢ ∃xP (x) → ¬∀x¬P (x)

⊢ ∃x¬P(x) → ¬∀xP (x)

Exercise 0.7 NK

Give a NK proof for the following formulas :

⊢ [¬∀x · ¬P (x)] → [∃x · P(x)]

⊢ [∀x · (R ∨ R

(x))] → [R ∨ ∀x · R

(x)]

2

Références

Documents relatifs

functions reuches the extreme bound of 9 possible simplification.. function belongs to

Here, given a de- composition of an Episturmian morphism f over exchange morphisms and {L, R} , we consider two problems: how to compute a decompo- sition of one conjugate of f ; how

First, the authors proved a weak version of the Frie- drichs lemma using the regularization technique presented in [5]; this technique enables to prove the Friedrichs

L’accès aux archives de la revue « Rendiconti del Seminario Matematico della Università di Padova » ( http://rendiconti.math.unipd.it/ ) implique l’accord avec les

L’accès aux archives de la revue « Rendiconti del Seminario Matematico della Università di Padova » ( http://rendiconti.math.unipd.it/ ) implique l’accord avec les

Under suitable boundary conditions and assuming a maximum principle for the interior points, we obtain a uniform convergence similar to that of Theorem 1.1.. Theorem 2.1 below can

After elementarily studying the above mentioned class of Heegner points, upon imposing certain conditions (see Theorem 2.3 and Proposition 2.4), given a complex elliptic curve E,

2 This naive algorithm can be improved and it is possible to obtain a word complexity in O(n) (A. Weilert 2000) using a divide and conquer approach... Show how the LLL algorithm gives