Docsity

Logical Statements in CSE 260, Spring 2012 - Prof. Laura Dillon, Quizzes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CSE 260, Spring 2012 Name/PID: 1
1. For this problem, assume pranges over the set of all people and nranges over the set of all positions in a
race, where 1 denotes first position, 2 denotes second, etc.
Define:
c(p): “Person pwas a contestant.”
f(p, n): “Person pfinished in position n.”
b(n, m): “Position nis not after position m.” (in other words, “n≤m”)
Express the following statements using these predicates, quantifiers and logical connectives.
Statement 1: “A p erson who was not a contestant finished in 3rd position.”
∃p(¬c(p)∧f(p, 3))
Statement 2: “Every person who was a contestant finished in one of the first 20 positions.”
∀p(c(p)→ ∃n(f(p, n)∧b(n, 20)))
pf2

Partial preview of the text

Download Logical Statements in CSE 260, Spring 2012 - Prof. Laura Dillon and more Quizzes Discrete Structures and Graph Theory in PDF only on Docsity!

CSE 260, Spring 2012 Name/PID: 1

  1. For this problem, assume p ranges over the set of all people and n ranges over the set of all positions in a race, where 1 denotes first position, 2 denotes second, etc. Define: c(p): “Person p was a contestant.” f (p, n): “Person p finished in position n.” b(n, m): “Position n is not after position m.” (in other words, “n ≤ m”) Express the following statements using these predicates, quantifiers and logical connectives. Statement 1: “A person who was not a contestant finished in 3rd^ position.”

∃p(¬c(p) ∧ f (p, 3))

Statement 2: “Every person who was a contestant finished in one of the first 20 positions.”

∀p(c(p) → ∃n(f (p, n) ∧ b(n, 20)))

CSE 260, Spring 2012 Name/PID: 2

  1. Prove that the hypotheses h 1 and h 2 logically imply conclusion c, where h 1 , h 2 , and c are defined as follows and the domains of all quantifiers are the same: h 1 : ∀x(¬P (x) ∨ Q(x)) h 2 : ∀y(¬Q(y)) c: ∀z(¬P (z)) In other words, prove that if h 1 and h 2 are true, then c is true. Give your answer by filling in the steps and their justifications in the table below. Fill as many lines as you need, adding more lines, if needed; leaving lines blank, if not needed. Justifications may come from any of the tables provided with the exam.

Step Reason

  1. ∀x(¬P (x) ∨ Q(x)) Premise
  2. ¬P (a) ∨ Q(a) U.I. with 1, for any a in the universe
  3. ∀y(¬Q(y)) Premise
  4. ¬Q(a) U.I. with 3
  5. ¬P (a) Disjunctive syllogism with 2 & 4
  6. ∀z(¬P (z)) U.G. with 5