ProblemSession Logic
ProblemSession Logic
(j) There is a barber who shaves all men in the town who do not shave themselves
∃x [Barber(x) ∧ ∀y [man(y) ∧ ¬shaves(y, y)] → shaves(x, y)]
(k) There is no business like show business
∀x [(business(x) ∧ (x 6= show business)) → ¬like(x, show business)]
2. Rewrite each proposition symbolically, when universe of discourse is a set of real numbers
∀x (stud(x) → mathcount(x) = 2)
(b) Someone has visited every country in the world except Libya
∃x ∀y [notvisited(x, y) ↔ (y = Libya)]
∃x ∃!y [notvisited(x, y) ↔ (y = Libya)]
∃x [person(x) ∧ ∀y (country(y) → (visited(x, y) ↔ (y 6= Libya)))]
4. Check the validity: Every computer science student takes discrete mathematics. Neetha is
taking discrete mathematics. Therefore, Neetha is a computer science student.
The given conclusion is false. The following Venn diagram is a counter example for the given
conclusion.
DM
Comp.
Sci Neetha
5. Check the validity: If it does not rain or it is not foggy then the sailing race will be held
and life saving demonstrations will go on. If the sailing race is held, then the trophy will be
2
awarded. The trophy was not awarded. Therefore, it rained.
The conclusion is TRUE by the following argument.
premise ¬R ∨ ¬F → S ∧ D . . . (1)
premise S → T . . . (2)
premise ¬T . . . (3)
1 ¬R ∨ ¬F → S . . . (4)
4, 2 ¬R ∨ ¬F → T . . . (5)
5 ¬T → ¬(¬R ∨ ¬F ) . . . (6)
6, 3 ¬(¬R ∧ ¬F ) . . . (7)
7 R∧F . . . (8)
8 R
6. Prove or Disprove: All doctors are college graduates. Some doctors are not golfers. Hence,
some golfers are not college graduates.
The given conclusion is false. The following Venn diagram is a counter example for the given
conclusion.
Graduates
Doctor Golfers
(b) In the array A with 100 integer elements, the first fifty numbers are in increasing order
and the last fifty are in decreasing order.
(c) It is not the case that all blueline buses are bad. Some persons who drive blueline buses
are not certified drivers.
¬∀x (Bluelinebus(x)).
∃x (Person(x)∧ Drives(x, bluelinebus) ∧¬ Certified(x))
8. The attack will succeed only if the enemy is taken by surprise or the position is weakly de-
fended. The enemy will not be taken by surprise unless he is overconfident. The enemy will
not be overconfident if the position is weakly defended. Therefore, the attack will not succeed.
3
E represents enemy is taken by surprise.
W represents the position is weakly defeded.
O represents he is overconfident.
The given statement can be written as follows:
premise : A→E∨W
premise : ¬O → ¬E
premise : W → ¬O
Conclusion : ¬A
Using Truth Table, we can check whether the given conclusion follows from the premises.
a b c
A E W ¬A E ∨ W W ∧ E ¬(W ∧ E) A → (E ∨ W ) a ∧ b c → ¬A
T T T F T T F T F T
T T F F T F T T T F
T F T F T F T T T F
T F F F F F T F F T
F T T T T T F T F T
F T F T T F T T T T
F F T T T F T T T T
F F F T F F T T T T
The last column says that the given argument is contigency. i.e., the given argument is
invalid. Thus, the conclusion does not follows from the premises.
P Q R Q → R (P → Q) (P → R) (P → Q) → (P → R) P → (Q → R)
T T T T T T T T
T T F F T F F F
T F T T F T T T
T F F T F F T T
F T T T T T T T
F T F F T T T T
F F T T T T T T
F F F T T T T T
4
(P → Q) (P ∨ R) [(P → Q) ∨ (R → S)]
P Q R S P → Q R → S (P ∨ R) (Q ∨ S) ∨ → →
(R → S) (Q ∨ S) [(P ∨ R) → (Q ∨ S)]
T T T T T T T T T T T
T T T F T F T T T T T
T T F T T T T T T T T
T F T T F T T T T T T
T T F F T T T T T T T
T F T F F F T F F F T
T F F T F T T T T T T
T F F F F T T F T F F
F T T T T T T T T T T
F T T F T F T T T T T
F T F T T T F T T T T
F F T T T T T T T T T
F T F F T T F T T T T
F F T F T F T F T F F
F F F T T T F T T T T
F F F F T T F F T T T
10. Show that the following propositions are valid
(a) [∀xP (x) → Q] equivalent to [∃xP (x) → Q]
∀xP (x) and ∃xP (x) are atomic predicates. Therefore, we can check the validity of the
given proposition using truth table.
From the last two columns we can conclude that given propositions are not equivalent.
∀xP (x) Q ∃xP (x) ∀xP (x) → Q ∃xP (x) → Q
0 0 0 1 1
0 0 1 1 0
0 1 0 1 1
0 1 1 1 1
1 0 0(NA) NA NA
1 0 1 0 0
1 1 0(NA) NA NA
1 1 1 1 1
∀x[P → Q(x)]
↔ ∀x[¬P ∨ Q(x)]
↔ [¬P ∨ Q(0)] ∧ [¬P ∨ Q(1)] ∧ [¬P ∨ Q(0)] ∧ . . .
↔ [¬P ∨ (Q(0) ∧ Q(1) ∧ Q(2) ∧ . . .)]
↔ [¬P ∨ (∀xQ(x))]
Hence, the given propositions are equivalent.
11. Everyone who gets admitted into an IIT gets a job. Therefore, if there are no jobs, then
nobody gets admitted into any IIT.
5
12. All horses are animals. Therefore, heads (leader) of horses are heads of animals.