Seminar-Logic (FINAL)
Seminar-Logic (FINAL)
SEMINAR 1: LOGIC
1. Prove
a. ( p →¬ q ) ≡¬ ( p ∧ q )
b. ( p → q)∨ ( p → r ) ≡(¬ p ∨q ∨ r) .
a. p ∧q ∨ ¬r
Fundamentals of computer science
Answer :
b. ∀ x P(x )∨ ¬ ( P( x )→ Q(x ))
Answer :
3. There is an island with two kinds of people, liars, who always tell lies, and
knights who always tell the truth. On an excursion you visit this island and
encounter two people, person A and person B. A says ”We both are
knights”, and person B says “A is a liar”. What conclusion can you draw?
Answer:
Fundamentals of computer science