Professional Documents
Culture Documents
FA22 BSE 064 Assignment 01
FA22 BSE 064 Assignment 01
CLASS: BSE-4A
COURSE: CSE356
Question 1: Can you switch the order of quantifiers? For example, consider the two statements:
∀x∃yP (x, y) and ∃y∀xP (x, y) Are these logically equivalent? Justify your point in
detail.
Answers:
∀x∃yP (x, y): The given statement is about that for every x there is y for which
value is true.
Justification: Let P (x, y) be the statement "x is the parent of y."
The statement: ∀x∃yP (x, y) could be interpreted as "For every person x, there
exists a person y who is their child."
∃y∀xP (x, y): The given statement is about there is y for which every x is true.
Justification: Let’s take an example that x=0 and y= N and p (x, y) = (x<=y)
than this statement is true for this case.
Conclusion: So, the conclusion is both statements are different by their logic, so they are
not equivalent.
Question 3: Consider the statement about a party, “If it's your birthday or there will be cake, then
there will be cake. “Use Preposition Logic to present the following statements.
Translate the above statement into symbols. Clearly state which statement is P and which
is Q.
p= It's your birthday. q=There will be cake.
(p ∨ q) →q
Make a truth table for the statement.
p q p∨q (p ∨ q) →q
T T T T
T F T F
F T T T
F F F T
Assuming the statement is true, what (if anything) can you conclude if there will be cake?
The given scenario is if there will be a cake means this statement is always true to
make whole statement true.
Assuming the statement is true, what (if anything) can you conclude if there will not be cake?
Then the given scenario cannot be true in any case because if q becomes false the
statement automatically becomes false.
Suppose you found out that the statement was a lie. What can you conclude?
So given scenario is negating one of the statements means either its not your birthday or there
will not be cake.
Question 4: We can simplify statements in predicate logic using our rules for passing negations over
quantifiers, and then applying propositional logical equivalence to the “inside” propositional part.
Simplify the statements below (so negation appears only directly next to predicates).
¬∃x∀y (¬O(x)∨E(y)).
∀x∃y¬(¬O(x)∨E(y))
∀x∃y(O(x)∧¬E(y))
¬∀x¬∀y¬(x<y∧∃z(x<z∨y<z)).
∃x¬¬∀y¬(x<y∧∃z(x<z∨y<z))
∃x∀y¬¬(x<y∧∃z(x<z∨y<z))
∃x∀y(x<y∧¬∃z(x<z∨y<z))
∃x∀y (x≥y∨∀z¬ (x≥z∧y≥z))
∃x∀y(x≥y∨∀z(x≥z∧y≥z))
There is a number n for which no other number is either less n than or equal to n.
Means there is a number n which is always smaller than for every number m.
∃n∀m(m>n)
It is false that for every number n there are two other numbers which n is between.
¬(∀n∃x∃y(x<n<y))
Question 5: Formulate the following English sentences as formulae in classical 1st-order logic.
All purple mushrooms are poisonous.
∀x (Purple(x) ∧ Mushroom(x) → Poisonous(x))