Logic and Proofs
Logic and Proofs
Logic and Proofs
Solution
p→ (q→ p)≡p→¬(q∨p)
≡¬p∨(¬q ∨p)
≡¬p∨(p∨¬q)
≡ (¬p∨p)∨¬q
≡ T∨¬q
≡ T.
Solution:
p q → ¬ ˅∨
T T T T
T F F F
F T T T
F F T T
P: 3n+2 is odd
n is odd
Hypothesis: Assume that → q is false. Assume that q is false.
i.e, n is not odd ⇒ n is even.
= 2(3k+1)
Solution:
p: you will be work hard.
q: you will be rewarded.
¬p: You will not be work hard.
¬ q: You will no tbe rewarded.
Converse: q→ p, If you will be rewarded then you will be work hard
Contrapositive: ¬ q→ p,if You will not be rewarded then You will not
be work hard.
Inverse: ¬ p→ ¬ q, if You will not be work hard then You will no tbe
rewarded.
9. let E={ -1, 0,1,2 denote a universe of discourse . If P(x ,y) : x +y =1
find the truth value of
12.Write an equivalent formula for p∧(q ↔ r) which contains neither
the bionditional nor conditional.
Solution :
p∧(q ↔ r) ⇔ ( ∧(q →r) ∧(r → )
⇔ ( ∧(¬q ∨r) ∧(¬r ∨ ).
15. Symbolise: For every x, these exixts a y such that x2+y2 ≥ 100
Solution :
( ∀x ) ( ∃ ) (x2+y2 ≥ 100)
PART – B
1. a) Prove that 𝑷 → 𝑸 ˄ 𝑸 → 𝑹 → 𝑷 → 𝑹
Proof:
Let S: 𝑃 → 𝑄 ˄ 𝑄 → 𝑅 → 𝑃 → 𝑅
To prove: S is a tautology
Solution :
¬(p↔q)≡(p∨q) ∧¬(p∧q)
¬(p↔q)≡¬(p→q) ∧ (q→p)
≡¬(¬p∨q) ∧ (¬q∨p)
≡¬(¬p∨q) ∨F∨F∨(q∧p)
≡¬(¬p∨q) ∨(q∧p)
≡(p∨q) ∧ (q∧p).
Solution:
PCNF:
S⇔ ¬p → r ∧ q ↔ p .
⇔ (¬p→ ∧r)((q→p). ∧ p →q
⇔ (p∨r) ∧((¬q∨p). ∧ ¬p ∨q
⇔ ( p ∨ r ∨ q ∧p ∨ r ∨¬ q) ∧((¬q∨p∨ r) ∧.(¬q ∨ p ∨¬ r) ∧( ¬p ∨q
∨r ∨(¬p ∨ q ∨¬r)
⇔ ( p ∨ r ∨ q ∧((¬q∨p∨ r) ∧.(¬q ∨ p ∨¬ r) ∧( ¬p ∨q ∨r ∨(¬p ∨q
∨¬r)
PCNF of S: ( p ∨ r ∨ q ∧(( ¬ q∨ p∨ r) ∧.( ¬ q ∨ p ∨ ¬ r) ∧( ¬
p ∨q ∨r ∨(¬p ∨q ∨¬r)
PCNF of ¬S: (p∨q∨r) ∧ ¬p ∨¬q ∨r ∧ ¬p ∨¬q ∨¬r
PDNF of S: (p∧q∧r) ∨ ¬p ∧¬q ∧r ∨ ¬p ∨∧¬q ∧¬r .
∴ q= 2k f or some integer k.
Thus p & q are even . Hence they have a common factor 2. Which is a
contradiction to our assumption.
Rt(2) is irrational.
Solution:
a: Ram
b: Siva
2) ¬H(a,b)
3) Conslution is ¬S(a,b).