0% found this document useful (0 votes)
8 views

Logic

Uploaded by

Ai Cha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Logic

Uploaded by

Ai Cha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ENSIA Academic year 2024-2025

Mathematical Logic Third Academic Semester

Worksheet 1 : Informal Natural Deduction


Exercise 1 : What are the conclusion and the assumptions of the following argument ?
Theorem. Let r be a positive real number. Then r has a square root.
Proof. Write f (x) = x2 − r for any real x. Then f is a continuous function on R. If x = 0, then f (x) = 0 − r < 0
since r is positive. If x is very large, then f (x) = x2 − r > 0. So, by the Intermediate Value Theorem, there must
be x such that f (x) = 0. For this value x, we have
r = r + 0 = r + f (x) = r + (x2 − r) = x2 .
Exercise 2 : A first-year calculus textbook contains the following paragraph :
Given that
x2 x2
1− ≤ u(x) ≤ 1 + for all x ̸= 0,
4 4
we calculate lim u(x). Since
x→0
x2 x2
lim (1 −) = 1 and lim (1 + ) = 1,
x→0 4 x→0 4
the Sandwich Theorem implies that lim u(x) = 1.
x→0
What is the conclusion of this argument, and what are the assumptions ?
Exercise 3 : From your understanding of mathematical arguments, which (if any) of the following possible sequent
rules seem to be true ? Give reasons.
Possible sequent rule A : If the sequent (Γ ⊢ ψ) is a correct sequent, and every statement in Γ is also in
∆, then the sequent (∆ ⊢ ψ) is also correct.
Possible sequent rule B : If the sequent ({ϕ} ⊢ ψ) is correct, then so is the sequent ({ψ} ⊢ ϕ).
Possible sequent rule C : If the sequents (Γ ⊢ ψ) and (∆ ⊢ ψ) are both correct, then so is the sequent
((Γ ∩ ∆) ⊢ ψ).
Exercise 4 : Express the following using ∧ between statements :
1. The real number r is positive but not an integer.
2. v is a nonzero vector.
3. ϕ if and only if ψ. [Here ϕ and ψ stand for statements.]
Exercise 5 : Write out derivations that prove the following sequents :
1. {ϕ, ψ, χ} ⊢ (ϕ ∧ (ψ ∧ χ)).
2. {ϕ, ψ} ⊢ ((ϕ ∧ ψ) ∧ (ϕ ∧ ψ)).
3. {((ϕ ∧ ψ) ∧ χ)} ⊢ (ϕ ∧ (ψ ∧ χ)).
4. {ϕ, (ψ ∧ χ)} ⊢ (χ ∧ ϕ).
5. {(ϕ ∧ (ψ ∧ χ))} ⊢ ((χ ∧ ϕ) ∧ ψ).
Exercise 6 : Show that {ϕ1 , ϕ2 } ⊢ ψ if and only if {(ϕ1 ∧ ϕ2 )} ⊢ ψ.
Exercise 7 : Write the following using → between statements :
1. f is continuous if f is differentiable.
2. Supposing x is positive, x has a square root.
3. ab/b = a provided a ̸= 0.
Exercise 8 : In the following two derivations, the names of the rules are missing, and so are the dandahs and step
numbers for the assumptions that are discharged. Write out the derivations, including these missing pieces.
1. A proof of ⊢ ((ϕ ∧ ψ) → (ψ ∧ ϕ))
(ϕ ∧ ψ) (ϕ ∧ ψ)

ψ ϕ

(ψ ∧ ϕ)

((ϕ ∧ ψ) → (ψ ∧ ϕ))

1
2. A proof of ⊢ ((ψ → χ) → ((ϕ → ψ) → (ϕ → χ)))
ϕ (ϕ → ψ)

ψ (ψ → χ)

(ϕ → χ)

((ϕ → ψ) → (ϕ → χ))

((ψ → χ) → ((ϕ → ψ) → (ϕ → χ)))


Exercise 9 : Each of the following derivations proves a sequent. Write out the sequent that it proves.
1.
1
ϕ

(→ I)
(ψ → ϕ)
1 (→ I).
(ϕ → (ψ → ϕ))
2.
ϕ
(→ I)
(ψ → ϕ)
(→ I).
(ϕ → (ψ → ϕ))
3.
(ϕ ∧ ψ)
(∧E)
1
ψ
 ϕ
(∧I).
(ψ ∧ ϕ)
1 (→ I)
(ψ → (ψ ∧ ϕ))
4.
1
1 ϕ

(→ I).
(ϕ → ϕ)
Exercise 10 : Write out derivations to prove each of the following sequents.
1. ⊢ (ϕ → (ψ → ψ)).
2. ⊢ ((ϕ → (θ → ψ)) → (θ → (ϕ → ψ))).
3. {(ϕ → ψ), (ϕ → χ)} ⊢ (ϕ → (ψ ∧ χ))
4. {(ϕ → ψ), ((ϕ ∧ ψ) → χ)} ⊢ (ϕ → χ).
5. {(ϕ → (ψ → χ))} ⊢ ((ϕ ∧ ψ) → χ).
6. ⊢ ((ϕ → ψ) → ((ψ → θ) → (ϕ → θ))).
7. ⊢ ((ϕ → (ψ ∧ θ)) → ((ϕ → θ) ∧ (ϕ → ψ))).
Exercise 11 : Show that {ϕ} ⊢ ψ if and only if ⊢ (ϕ → ψ). [Prove the directions ⇒ and ⇐ separately.]
Exercise 12 : Let ϕ and ψ be statements and Γ a set of statements. Consider the two sequents
(a) Γ ∪ {ϕ} ⊢ ψ.
(b) Γ ⊢ (ϕ → ψ).
Show that if D1 is a derivation proving (a), then D1 can be used to construct a derivation D1′ proving (b). Show
also that if D2 is a derivation proving (b), then D2 can be used to construct a derivation D2′ proving (a). (Together,
these show that (a) has a proof by derivation if and only if (b) has a proof by derivation. The previous exercise is
the special case where Γ is empty.)

2
Exercise 13 : Give derivations to prove the following sequents :
1. {ϕ, (ϕ ↔ ψ)} ⊢ ψ.
2. ⊢ (ϕ ↔ ϕ).
3. {(ϕ ↔ ψ), (ψ ↔ χ)} ⊢ (ϕ ↔ χ).
4. ⊢ ((ϕ ↔ (ψ ↔ χ)) ↔ ((ϕ ↔ ψ) ↔ χ)).
5. {(ϕ ↔ (ψ ↔ ψ))} ⊢ ϕ.
Exercise 14 : Let S be any set of statements, and let ∼ be the relation on S defined by : for all ϕ, ψ ∈ S,

ϕ ∼ ψ if and only if ⊢ (ϕ ↔ ψ).


Show that ∼ is an equivalence relation on S.
Exercise 15 : Show that if we have a derivation D of ψ with no undischarged assumptions, then we can use it to
construct, for any statement ϕ, a derivation of ((ϕ ↔ ψ) ↔ ϕ) with no undischarged assumptions.
Exercise 16 : Find natural deduction proofs for the following sequents :
1. ⊢ (¬(ϕ ∧ (¬ϕ))).
2. ⊢ ((ϕ ∧ ψ) → (¬(ϕ → (¬ψ)))).
3. {((¬(ϕ ∧ ψ)) ∧ ϕ)} ⊢ (¬ψ).
4. {(ϕ → ψ)} ⊢ (¬(ϕ ∧ (¬ψ))).
5. {((¬ψ) → (¬ϕ))} ⊢ (ϕ → ψ).
6. ⊢ ((¬(ϕ → ψ)) → ϕ).
7. ⊢ (ϕ → ((¬ϕ) → ψ)).
8. {(¬(ϕ ↔ ψ))} ⊢ ((¬ϕ) ↔ ψ). (Hard.)
Exercise 17 : Give natural deduction proofs of the following sequents :
1. ⊢ (ϕ → (ϕ ∨ ψ)).
2. {(¬(ϕ ∨ ψ))} ⊢ ((¬ϕ) ∧ (¬ψ)).
3. ⊢ ((ϕ → ψ) → ((¬ϕ) ∨ ψ)).
4. {(ϕ ∨ ψ)} ⊢ (ψ ∨ ϕ).
5. {(ϕ ∨ ψ), (ϕ → χ), (ψ → χ)} ⊢ χ.
6. {(ϕ ∨ ψ), (¬ϕ)} ⊢ ψ.
7. {((¬ϕ) ∧ (¬ψ))} ⊢ (¬(ϕ ∨ ψ)).
8. {(ϕ ∧ ψ)} ⊢ (¬((¬ϕ) ∨ (¬ψ))).
Exercise 18 : Give natural deduction proofs of the following sequents :
1. {(ϕ ∧ (ψ ∨ χ))} ⊢ ((ϕ ∧ ψ) ∨ (ϕ ∧ χ))
2. ⊢ ((ϕ → (ψ ∧ χ)) → ((ϕ → χ) ∧ (ϕ → ψ)))
3. ⊢ ((ψ → χ) → ((ϕ → ψ) → (ϕ → χ)))
4. {(ϕ → (ψ ∧ χ))} ⊢ ((ϕ → ψ) ∧ (ϕ → χ))
5. {(ϕ → ψ), (χ → θ), (ϕ ∨ χ)} ⊢ (ψ ∨ θ)
6. {(¬(ϕ ∧ ψ))} ⊢ ((ϕ → (¬ψ)) ∧ (ψ → (¬ϕ)))
7. ⊢ (((ϕ → ψ) ∧ ((¬χ) → (¬ψ))) → (ϕ → χ)).

You might also like