• Non ci sono risultati.

Mathematical Logic (Part I) January 16, 2015

N/A
N/A
Protected

Academic year: 2021

Condividi "Mathematical Logic (Part I) January 16, 2015"

Copied!
2
0
0

Testo completo

(1)

Mathematical Logic (Part I) January 16, 2015

1. Consider the universe of people. Formalise the following sentences in the language of mathematics:

(i) Every student likes some professor.

(ii) Some professor does not eat.

(iii) Professor John hates some student whom professor Mary likes.

Solution: Consider the universe of human being and the following language:

j constant m constant

P (x) iff x is a professor S(x) iff x is a student xLy iff x likes y xHy iff x hates y E(x) iff x eats

(i) ∀x(S(x) → ∃y(P (y) ∧ xLy)).

(ii) ∃x(P (x) ∧ ¬E(x)).

(iii) P (j) ∧ P (m) ∧ ∃x(S(x) ∧ jHx ∧ mLx).

2. Find proofs in natural deduction of the following formulas (when this is possible). (Re- member that the assumptions are on the left part of the symbol ` and the conclusion on the right part).

(a) ` ((A → ¬A) → A) → A.

(b) ` (¬A ∧ ¬B) → ¬(A ∨ B).

Solution: (a) is the Peirce law with B ≡ ¬A. The proof can be found in the notes.

(b) From the hypothesis ¬A ∧ ¬B and the assumption A you derive ⊥. Similarly, from the hypothesis ¬A ∧ ¬B and the assumption B you derive ⊥. This means that you have a proof of ⊥ either assuming A or assuming B.

Then we can apply the ∨ elimination rule to A ∨ B to get a proof of ⊥. By applying not introduction we get the conclusion.

1

(2)

3. Are the following two formulas logically equivalent? If yes, provide a proof.

(a) A ∨ ¬B.

(b) ¬(¬A ∧ B).

Solution: The formulas are logically equivalent by the De Morgan laws: ¬(¬A ∧ B) iff

¬¬A ∨ ¬B iff A ∨ ¬B (in classical logic!).

First we show A ∨ ¬B ` ¬(¬A ∧ B). We assume ¬A ∧ B and we get the contradiction

⊥. Then we apply not introduction and we get a proof of ¬(¬A ∧ B).

From ¬A ∧ B and A we easily get the contradiction ⊥.

From ¬A ∧ B and ¬B we easily get the contradiction ⊥.

Then we can apply or elimination to A ∨ ¬B to get a proof of ⊥ from ¬A ∧ B and we are done.

To prove ¬(¬A ∧ B) ` A ∨ ¬B it is sufficient to prove ⊥ strating from ¬(A ∨ ¬B).

4. Define a model where the following formula is true and a model where it is false. P is a unary relation symbol, g is a unary function symbol.

φ ≡ ∀x[P (g(x)) → ∃y P (g(y))]

Solution: Universe: the set N of natural numbers. gN(x) = 0 for all x ∈ N. PN(0) = false. The formula is true in this model. For every natural number x, PN(gN(x)) = PN(0) is false. Then the implication is true for every x.

The formula φ cannot be false in a model, because φ is false if there is an element a in the model such that P (g(a)) is true and ∃y P (g(y)) is false. But, if P (g(a)) is true, then

∃y P (g(y)) is also true. The witness is the element a.

2

Riferimenti

Documenti correlati

Say if the following statements are unambiguously true (TRUE), unambiguously false (FALSE) or impossible to classify the way they are stated (CAN’T SAY).. Write the mo- tivations

Say if the following statements are unambiguously true (TRUE), unambiguously false (FALSE) or impossible to classify the way they are stated (CAN’T SAY).. Write the mo- tivations

of the cases were diagnosed as indolent lymphoma, while the remaining were referable to nodular hyperplasia, either purely lymphoid or complex type. Notably, none of the dogs

Solution proposed by Roberto Tauraso, Dipartimento di Matematica, Universit`a di Roma “Tor Vergata”, via della Ricerca Scientifica, 00133 Roma,

Since, by definition, no flow can cross a streamline it requires that the velocity vector field v have to be divergence-free

Leggi x e S=s1 s2...sn. Assegna true ad

Figure 3.22: Experimental time series showing the presence of a stable upright position together with a stable large amplitude sub-harmonically resonant roll motion for ITACA in

Lin H, Yeh CB, Peterson BS, Scahill L, Grantz H, Findley DB, Katsovich L, Otka J, Lombroso PJ, King RA, Leckman JF (2002) Assessment of symptom exacerbations in a longitudinal study