• Home
  • Textbooks
  • Discrete Mathematics and its Applications
  • The Foundations: Logic and Proofs

Discrete Mathematics and its Applications

Kenneth Rosen

Chapter 1

The Foundations: Logic and Proofs - all with Video Answers

Educators

+ 8 more educators

Section 4

Predicates and Quantifiers

01:01

Problem 1

Let $P(x)$ denote the statement " $x \leq 4 .$ "What are these truth values?
$\begin{array}{llll}{\text { a) } P(0)} & {\text { b) } P(4)} & {\text { c) } P(6)}\end{array}$

Christopher Stanley
Christopher Stanley
Numerade Educator
00:59

Problem 2

Let $P(x)$ be the statement "The word $x$ contains the letter $a$ ." What are these truth values?
$\begin{array}{ll}{\text { a) } P(\text { orange })} & {\text { b) } P(\text { lemon })} \\ {\text { c) } P(\text { true })} & {\text { d) } P(\text { false })}\end{array}$

Christopher Stanley
Christopher Stanley
Numerade Educator
00:52

Problem 3

Let $Q(x, y)$ denote the statement " $x$ is the capital of $y . "$ What are these truth values?
$$
\begin{array}{l}{\text { a) } Q(\text { Denver, Colorado) }} \\ {\text { b) } Q(\text { Detroit, Michigan })} \\ {\text { c) } Q(\text { Massachusetts, Boston })} \\ {\text { d) } Q(\text { New York, New York) }}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:33

Problem 4

State the value of $x$ after the statement if $P(x)$ then $x :=1$ is executed, where $P(x)$ is the statement "x $x>1,$ " if the value of $x$ when this statement is reached is
$$
\begin{array}{ll}{\text { a) } x=0 .} & {\text { b) } x=1} \\ {\text { c) } x=2}\end{array}
$$

Amy Jiang
Amy Jiang
Numerade Educator
01:59

Problem 5

Let $P(x)$ be the statement "x spends more than five hours every weekday in class," where the domain for $x$ consists of all students. Express each of these quantifications in English.
$$
\begin{array}{ll}{\text { a) } \quad \exists x P(x)} & {\text { b) } \forall x P(x)} \\ {\text { c) } \quad \exists x \neg P(x)} & {\text { d) } \forall x \neg P(x)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
02:57

Problem 6

Let $N(x)$ be the statement "x has visited North Dakota," where the domain consists of the students in your school. Express each of these quantifications in English.
$$
\begin{array}{llll}{\text { a) }} & {\exists x N(x)} & {\text { b) } \forall x N(x)} & {\text { c) } \neg \exists x N(x)} \\ {\text { d) }} & {\exists x \neg N(x)} & {\text { e) } \neg \forall x N(x)} & {\text { f) } \forall x \neg N(x)}\end{array}
$$

Dylan Bates
Dylan Bates
Numerade Educator
01:26

Problem 7

Translate these statements into English, where $C(x)$ is " $x$ is a comedian" and $F(x)$ is " $x$ is funny" and the domain consists of all people.
$$
\begin{array}{ll}{\text { a) } \forall x(C(x) \rightarrow F(x))} & {\text { b) } \forall x(C(x) \wedge F(x))} \\ {\text { c) } \quad \exists x(C(x) \rightarrow F(x))} & {\text { d) } \exists x(C(x) \wedge F(x))}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:46

Problem 8

Translate these statements into English, where $R(x)$ is "x is a rabbit" and $H(x)$ is " $x$ hops" and the domain consists of all animals.
$$
\begin{array}{ll}{\text { a) } \forall x(R(x) \rightarrow H(x))} & {\text { b) } \forall x(R(x) \wedge H(x))} \\ {\text { c) } \quad \exists x(R(x) \rightarrow H(x))} & {\text { d) } \exists x(R(x) \wedge H(x))}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:35

Problem 9

Let $P(x)$ be the statement "x can speak Russian" and let $Q(x)$ be the statement "x knows the computer language $\mathrm{C}++. "$ Express each of these sentences in terms of $P(x),$ $Q(x),$ quantifiers, and logical connectives. The domain for quantifiers consists of all students at your school.
a) There is a student at your school who can speak Russian and who knows $C++.$
b) There is a student at your school who can speak Russian but who doesn't know $C++.$
c) Every student at your school either can speak Russian or knows $\mathrm{C}++$
d) No student at your school can speak Russian or knows C++.

Christopher Stanley
Christopher Stanley
Numerade Educator
01:56

Problem 10

Let $C(x)$ be the statement " $x$ has a cat," let $D(x)$ be the statement " $x$ has a dog," and let $F(x)$ be the statement "x has a ferret." Express each of these statements in terms of $C(x), D(x), F(x),$ quantifiers, and logical connectives. Let the domain consist of all students in your class.
a) A student in your class has a cat, a dog, and a ferret.
b) All students in your class have a cat, a dog, or a ferret.
c) Some student in your class has a cat and a ferret, but not a dog.
d) No student in your class has a cat, a dog, and a ferret.
e) For each of the three animals, cats, dogs, and ferrets, there is a student in your class who has this animal as a pet.

Christopher Stanley
Christopher Stanley
Numerade Educator
01:45

Problem 11

Let $P(x)$ be the statement " $x=x^{2} .$ "If the domain consists of the integers, what are these truth values?
$$
\begin{array}{llll}{\text { a) } P(0)} & {\text { b) } P(1)} & {\text { c) } P(2)} \\ {\text { d) } P(-1)} & {\text { e) } \exists x P(x)} & {\text { f) } \forall x P(x)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
02:08

Problem 12

Let $Q(x)$ be the statement " $x+1>2 x$ . If the domain consists of all integers, what are these truth values?
$$
\begin{array}{llll}{\text { a) }} & {Q(0)} & {\text { b) } Q(-1)} & {\text { c) }} \quad {Q(1)} \\ {\text { d) }} & {\exists x Q(x)} & {\text { e) } \quad \forall x Q(x)} & {\text { f) } \quad \exists x \neg Q(x)}\end{array}
$$
g) $\quad \forall x \neg Q(x)$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:17

Problem 13

Determine the truth value of each of these statements if the domain consists of all integers.
$$
\begin{array}{ll}{\text { a) } \forall n(n+1>n)} & {\text { b) } \exists n(2 n=3 n)} \\ {\text { c) } \exists n(n=-n)} & {\text { d) } \forall n(3 n \leq 4 n)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
02:42

Problem 14

Determine the truth value of each of these statements if the domain consists of all real numbers.
$$
\begin{array}{ll}{\text { a) } \quad \exists x\left(x^{3}=-1\right)} & {\text { b) } \exists x\left(x^{4}<x^{2}\right)} \\ {\text { c) } \quad \forall x\left((-x)^{2}=x^{2}\right)} & {\text { d) } \forall x(2 x>x)}\end{array}
$$

Linda Hand
Linda Hand
Numerade Educator
01:07

Problem 15

Determine the truth value of each of these statements if the domain for all variables consists of all integers.
$$
\begin{array}{ll}{\text { a) } \forall n\left(n^{2} \geq 0\right)} & {\text { b) } \exists n\left(n^{2}=2\right)} \\ {\text { c) } \forall n\left(n^{2} \geq n\right)} & {\text { d) } \exists n\left(n^{2}<0\right)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:17

Problem 16

Determine the truth value of each of these statements if the domain of each variable consists of all real numbers.
$$
\begin{array}{ll}{\text { a) } \quad \exists x\left(x^{2}=2\right)} & {\text { b) } \exists x\left(x^{2}=-1\right)} \\ {\text { c) } \quad \forall x\left(x^{2}+2 \geq 1\right)} & {\text { d) } \forall x\left(x^{2} \neq x\right)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
03:03

Problem 17

Suppose that the domain of the propositional function $P(x)$ consists of the integers $0,1,2,3,$ and $4 .$ Write out each of these propositions using disjunctions, conjunctions, and negations.
$$
\begin{array}{llll}{\text { a) }} & {\exists x P(x)} & {\text { b) } \forall x P(x)} & {\text { c) }} \quad {\exists x \neg P(x)} \\ {\text { d) }} & {\forall x \neg P(x)} & {\text { e) } \neg \exists x P(x)} & {\text { f) } \neg \forall x P(x)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
02:44

Problem 18

Suppose that the domain of the propositional function $P(x)$ consists of the integers $-2,-1,0,1,$ and $2 .$ Write out each of these propositions using disjunctions, conjunctions, and negations.
$$
\begin{array}{llll}{\text { a) }} {\exists x P(x)} & {\text { b) } \forall x P(x)} & {\text { c) }} {\exists x \neg P(x)} \\ {\text { d) } \forall x \neg P(x)} & {\text { e) }} {\neg \exists x P(x)} & {\text { f) } \neg \forall x P(x)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
03:24

Problem 19

Suppose that the domain of the propositional function $P(x)$ consists of the integers $1,2,3,4,$ and $5 .$ Express these statements without using quantifiers, instead using only negations, disjunctions, and conjunctions.
$$
\begin{array}{ll}{\text { a) } \quad \exists x P(x)} & {\text { b) } \forall x P(x)} \\ {\text { c) } \quad \neg \exists x P(x)} & {\text { d) } \neg \forall x P(x)}\end{array}
$$
e) $\quad \forall x((x \neq 3) \rightarrow P(x)) \vee \exists x \neg P(x)$

Clarissa Noh
Clarissa Noh
Numerade Educator
09:06

Problem 20

Suppose that the domain of the propositional function $P(x)$ consists of $-5,-3,-1,1,3,$ and $5 .$ Express these statements without using quantifiers, instead using only negations, disjunctions, and conjunctions.
a) $\exists x P(x)$
b) $\quad \forall x P(x)$
c) $\forall x((x \neq 1) \rightarrow P(x))$
d) $\exists x((x \geq 0) \wedge P(x))$
e) $\exists x(\neg P(x)) \wedge \forall x((x<0) \rightarrow P(x))$

Rosina Dapaah
Rosina Dapaah
Numerade Educator
02:24

Problem 21

For each of these statements find a domain for which the statement is true and a domain for which the statement is false.
a) Everyone is studying discrete mathematics.
b) Everyone is older than 21 years.
c) Every two people have the same mother.
d) No two different people have the same grandmother.

Christopher Stanley
Christopher Stanley
Numerade Educator
01:54

Problem 22

For each of these statements find a domain for which the statement is true and a domain for which the statement is false.
a) Everyone speaks Hindi.
b) There is someone older than 21 years.
c) Every two people have the same first name.
d) Someone knows more than two other people.

Christopher Stanley
Christopher Stanley
Numerade Educator
06:40

Problem 23

Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people.
a) Someone in your class can speak Hindi.
b) Everyone in your class is friendly.
c) There is a person in your class who was not born in California.
d) A student in your class has been in a movie.
e) No student in your class has taken a course in logic programming.

Rosina Dapaah
Rosina Dapaah
Numerade Educator
04:43

Problem 24

Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people.
a) Everyone in your class has a cellular phone.
b) Somebody in your class has seen a foreign movie.
c) There is a person in your class who cannot swim.
d) All students in your class can solve quadratic equations.
e) Some student in your class does not want to be rich.

Rosina Dapaah
Rosina Dapaah
Numerade Educator
02:18

Problem 25

Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives.
a) No one is perfect.
b) Not everyone is perfect.
c) All your friends are perfect.
d) At least one of your friends is perfect.
e) Everyone is your friend and is perfect.
f) Not everybody is your friend or someone is not perfect.

Christopher Stanley
Christopher Stanley
Numerade Educator
05:36

Problem 26

Translate each of these statements into logical expressions in three different ways by varying the domain and by using predicates with one and with two variables.
a) Someone in your school has visited Uzbekistan.
b) Everyone in your class has studied calculus and $\mathrm{C}++.$
c) No one in your school owns both a bicycle and a motorcycle.
d) There is a person in your school who is not happy.
e) Everyone in your school was born in the twentieth century.

Madi Sousa
Madi Sousa
Numerade Educator
06:15

Problem 27

Translate each of these statements into logical expressions in three different ways by varying the domain and by using predicates with one and with two variables.
a) A student in your school has lived in Vietnam.
b) There is a student in your school who cannot speak Hindi.
c) A student in your school knows Java, Prolog, and C++.
d) Everyone in your class enjoys Thai food.
e) Someone in your class does not play hockey.

Clarissa Noh
Clarissa Noh
Numerade Educator
02:43

Problem 28

Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives.
a) Something is not in the correct place.
b) All tools are in the correct place and are in excellent condition.
c) Everything is in the correct place and in excellent condition.
d) Nothing is in the correct place and is in excellent condition.
e) One of your tools is not in the correct place, but it is in excellent condition.

Christopher Stanley
Christopher Stanley
Numerade Educator
05:33

Problem 29

Express each of these statements using logical operators, predicates, and quantifiers.
a) Some propositions are tautologies.
b) The negation of a contradiction is a tautology.
c) The disjunction of two contingencies can be a tautology.
d) The conjunction of two tautologies is a tautology.

Rosina Dapaah
Rosina Dapaah
Numerade Educator
02:06

Problem 30

Suppose the domain of the propositional function $P(x, y)$ consists of pairs $x$ and $y,$ where $x$ is $1,2,$ or 3 and $y$ is $1,2,$ or $3 .$ Write out these propositions using disjunctions and conjunctions.
$$
\begin{array}{ll}{\text { a) } \exists x P(x, 3)} & {\text { b) } \forall y P(1, y)} \\ {\text { c) } \exists y \neg P(2, y)} & {\text { d) } \forall x \neg P(x, 2)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
03:57

Problem 31

Suppose that the domain of $Q(x, y, z)$ consists of triples $x, y, z,$ where $x=0,1,$ or $2, y=0$ or $1,$ and $z=0$ or $1 .$ Write out these propositions using disjunctions and conjunctions.
$$
\begin{array}{ll}{\text { a) } \forall y Q(0, y, 0)} & {\text { b) } \exists x Q(x, 1,1)} \\ {\text { c) } \exists z \neg Q(0,0, z)} & {\text { d) } \exists x \neg Q(x, 0,1)}\end{array}
$$

Rosina Dapaah
Rosina Dapaah
Numerade Educator
04:16

Problem 32

Express each of these statements using quantifiers. Then form the negation of the statement so that no negation is to the left of a quantifier. Next, express the negation in simple English. (Do not simply use the phrase "It is not the case that.")
a) All dogs have fleas.
b) There is a horse that can add.
c) Every koala can climb.
d) No monkey can speak French.
e) There exists a pig that can swim and catch fish.

Amy Jiang
Amy Jiang
Numerade Educator
04:40

Problem 33

Express each of these statements using quantifiers. Then form the negation of the statement, so that no negation is to the left of a quantifier. Next, express the negation in simple English. (Do not simply use the phrase "It is not the case that.")
a) Some old dogs can learn new tricks.
b) No rabbit knows calculus.
c) Every bird can fly.
d) There is no dog that can talk.
e) There is no one in this class who knows French and Russian.

Clarissa Noh
Clarissa Noh
Numerade Educator
12:22

Problem 34

Express the negation of these propositions using quantifiers, and then express the negation in English.
a) Some drivers do not obey the speed limit.
b) All Swedish movies are serious.
c) No one can keep a secret.
d) There is someone in this class who does not have a good attitude.

AO
Akuye-Shika Odametey
Numerade Educator
04:32

Problem 35

Express the negation of each of these statements in terms of quantifiers without using the negation symbol.
a) $\forall x(x>1)$
b) $\forall x(x \leq 2)$
$\begin{array}{ll}\text { c) } & \exists x(x \geq 4)\end{array}$
d) $\exists x(x<0)$
e) $\forall x((x<-1) \vee(x>2))$
f) $\exists x((x<4) \vee(x>7))$

WM
William Mead
Numerade Educator
01:46

Problem 36

Express the negation of each of these statements in terms of quantifiers without using the negation symbol.
a) $\forall x(-2<x<3)$
b) $\forall x(0 \leq x<5)$
c) $\exists x(-4 \leq x \leq 1)$
d) $\exists x(-5<x<-1)$

Christopher Stanley
Christopher Stanley
Numerade Educator
00:50

Problem 37

Find a counterexample, if possible, to these universally quantified statements, where the domain for all variables consists of all integers.
$$
\begin{array}{l}{\text { a) } \forall x\left(x^{2} \geq x\right)} \\ {\text { b) } \forall x(x>0 \vee x<0)} \\ {\text { c) } \forall x(x=1)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
00:55

Problem 38

Find a counterexample, if possible, to these universally quantified statements, where the domain for all variables consists of all real numbers.
$$
\begin{array}{ll}{\text { a) } \forall x\left(x^{2} \neq x\right)} & {\text { b) } \forall x\left(x^{2} \neq 2\right)} \\ {\text { c) } \forall x(|x|>0)} \end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
03:53

Problem 39

Express each of these statements using predicates and quantifiers.
a) A passenger on an airline qualifies as an elite flyer if the passenger flies more than 25,000 miles in a year or takes more than 25 flights during that year.
b) A man qualifies for the marathon if his best previous time is less than 3 hours and a woman qualifies for the marathon if her best previous time is less than 3.5 hours.
c) A student must take at least 60 course hours, or at least 45 course hours and write a master’s thesis, and receive a grade no lower than a B in all required courses, to receive a master’s degree.
d) There is a student who has taken more than 21 credit hours in a semester and received all A’s.

Clarissa Noh
Clarissa Noh
Numerade Educator
05:15

Problem 40

Exercises $40-44$ deal with the translation between system specification and logical expressions involving quantifiers.
Translate these system specifications into English, where the predicate $S(x, y)$ is $^{\prime} x$ is in state $y$ " and where the domain for $x$ and $y$ consists of all systems and all possible states, respectively.
$$
\begin{array}{l}{\text { a) } \exists x S(x, \text { open })} \\ {\text { b) } \forall x(S(x, \text { malfunctioning }) \vee S(x, \text { diagnostic) }} \\ {\text { c) } \exists x S(x, \text { open }) \vee \exists x S(x, \text { diagnostic) }}\end{array}
$$
$$
\begin{array}{l}{\text { d) } \exists x \rightarrow S(x, \text { available })} \\ {\text { e) } \forall x \neg S(x, \text { working })}\end{array}
$$

Rosina Dapaah
Rosina Dapaah
Numerade Educator
01:45

Problem 41

Exercises $40-44$ deal with the translation between system specification and logical expressions involving quantifiers.
Translate these specifications into English, where $F(p)$ is "printer $p$ is out of service," $B(p)$ is "Printer $p$ is busy," $L(j)$ is "Print job $j$ is lost, " and $Q(j)$ is "Print job $j$ is queued."
$$
\begin{array}{l}{\text { a) } \exists p(F(p) \wedge B(p)) \rightarrow \exists j L(j)} \\ {\text { b) } \forall p B(p) \rightarrow \exists j Q(j)} \\ {\text { c) } \exists j(Q(j) \wedge L(j)) \rightarrow \exists p F(p)} \\ {\text { d) }(\forall p B(p) \wedge \forall j Q(j)) \rightarrow \exists j L(j)}\end{array}
$$

Clarissa Noh
Clarissa Noh
Numerade Educator
04:41

Problem 42

Exercises $40-44$ deal with the translation between system specification and logical expressions involving quantifiers.
Express each of these system specifications using predicates, quantifiers, and logical connectives.
a) When there is less than 30 megabytes free on the hard disk, a warning message is sent to all users.
b) No directories in the file system can be opened and no files can be closed when system errors have been detected.
c) The file system cannot be backed up if there is a user currently logged on.
d) Video on demand can be delivered when there are at least 8 megabytes of memory available and the connection speed is at least 56 kilobits per second.

Amy Jiang
Amy Jiang
Numerade Educator
02:34

Problem 43

Exercises $40-44$ deal with the translation between system specification and logical expressions involving quantifiers.
Express each of these system specifications using predicates, quantifiers, and logical connectives.
a) At least one mail message, among the nonempty set of messages, can be saved if there is a disk with more than 10 kilobytes of free space.
b) Whenever there is an active alert, all queued messages are transmitted.
c) The diagnostic monitor tracks the status of all systems except the main console.
d) Each participant on the conference call whom the host of the call did not put on a special list was billed.

Clarissa Noh
Clarissa Noh
Numerade Educator
03:39

Problem 44

Exercises $40-44$ deal with the translation between system specification and logical expressions involving quantifiers.
Express each of these system specifications using predicates, quantifiers, and logical connectives.
a) Every user has access to an electronic mailbox.
b) The system mailbox can be accessed by everyone in the group if the file system is locked.
c) The firewall is in a diagnostic state only if the proxy server is in a diagnostic state.
d) At least one router is functioning normally if the throughput is between 100 kbps and 500 kbps and the proxy server is not in diagnostic mode.

Amy Jiang
Amy Jiang
Numerade Educator
01:04

Problem 45

Determine whether $\forall x(P(x) \rightarrow Q(x))$ and $\forall x P(x) \rightarrow$ $\forall x Q(x)$ are logically equivalent. Justify your answer.

Clarissa Noh
Clarissa Noh
Numerade Educator
01:57

Problem 46

Determine whether $\forall x(P(x) \leftrightarrow Q(x))$ and $\forall x P(x) \leftrightarrow$ $\forall x Q(x)$ are logically equivalent. Justify your answer.

Amy Jiang
Amy Jiang
Numerade Educator
01:04

Problem 47

Show that $\exists x(P(x) \vee Q(x))$ and $\exists x P(x) \vee \exists x Q(x)$ are logically equivalent.

Christopher Stanley
Christopher Stanley
Numerade Educator
06:27

Problem 48

Exercises $48-51$ establish rules for null quantification that we can use when a quantified variable does not appear in part of a statement.
Establish these logical equivalences, where $x$ does not occur as a free variable in $A$ . Assume that the domain is nonempty.
$$
\begin{array}{l}{\text { a) }(\forall x P(x)) \vee A \equiv \forall x(P(x) \vee A)} \\ {\text { b) }(\exists x P(x)) \vee A \equiv \exists x(P(x) \vee A)}\end{array}
$$

Rosina Dapaah
Rosina Dapaah
Numerade Educator
02:07

Problem 49

Exercises $48-51$ establish rules for null quantification that we can use when a quantified variable does not appear in part of a statement.
Establish these logical equivalences, where $x$ does not occur as a free variable in $A$ . Assume that the domain is nonempty.
$$
\begin{array}{l}{\text { a) }(\forall x P(x)) \wedge A \equiv \forall x(P(x) \wedge A)} \\ {\text { b) }(\exists x P(x)) \wedge A \equiv \exists x(P(x) \wedge A)}\end{array}
$$

Clarissa Noh
Clarissa Noh
Numerade Educator
02:07

Problem 50

Exercises $48-51$ establish rules for null quantification that we can use when a quantified variable does not appear in part of a statement.
Establish these logical equivalences, where $x$ does not occur as a free variable in $A$ . Assume that the domain is nonempty.
$$
\begin{array}{l}{\text { a) } \forall x(A \rightarrow P(x)) \equiv A \rightarrow \forall x P(x)} \\ {\text { b) } \exists x(A \rightarrow P(x)) \equiv A \rightarrow \exists x P(x)}\end{array}
$$

Amy Jiang
Amy Jiang
Numerade Educator
02:32

Problem 51

Exercises $48-51$ establish rules for null quantification that we can use when a quantified variable does not appear in part of a statement.
Establish these logical equivalences, where $x$ does not occur as a free variable in $A$ . Assume that the domain is nonempty.
$$
\begin{array}{l}{\text { a) } \forall x(P(x) \rightarrow A) \equiv \exists x P(x) \rightarrow A} \\ {\text { b) } \exists x(P(x) \rightarrow A) \equiv \forall x P(x) \rightarrow A}\end{array}
$$

Clarissa Noh
Clarissa Noh
Numerade Educator
05:32

Problem 52

Show that $\forall x P(x) \vee \forall x Q(x)$ and $\forall x(P(x) \vee Q(x))$ are not logically equivalent.

Rosina Dapaah
Rosina Dapaah
Numerade Educator
01:10

Problem 53

Show that $\exists x P(x) \wedge \exists x Q(x)$ and $\exists x(P(x) \wedge Q(x))$ are not logically equivalent.

Clarissa Noh
Clarissa Noh
Numerade Educator
01:36

Problem 54

As mentioned in the text, the notation $\exists ! x P(x)$ denotes
"There exists a unique $x$ such that $P(x)$ is true."
If the domain consists of all integers, what are the truth values of these statements?
$$
\begin{array}{ll}{\text { a) } \exists ! x(x>1)} & {\text { b) } \exists ! x\left(x^{2}=1\right)} \\ {\text { c) } \quad \exists ! x(x+3=2 x)} & {\text { d) } \exists ! x(x=x+1)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:13

Problem 55

What are the truth values of these statements?
$$
\begin{array}{l}{\text { a) } \exists ! x P(x) \rightarrow \exists x P(x)} \\ {\text { b) } \forall x P(x) \rightarrow \exists ! x P(x)} \\ {\text { c) } \exists ! x \neg P(x) \rightarrow \neg \forall x P(x)}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:02

Problem 56

Write out $\exists ! x P(x),$ where the domain consists of the integers $1,2,$ and $3,$ in terms of negations, conjunctions, and disjunctions.

Christopher Stanley
Christopher Stanley
Numerade Educator
01:14

Problem 57

Given the Prolog facts in Example $28,$ what would Prolog return given these queries?
a) ?instructor(chan,math273)
b) ?instructor(patel,cs301)
c) ?enrolled(X,cs301)
d) ?enrolled(kiko,Y)
e) ?teaches(grossman,Y)

Clarissa Noh
Clarissa Noh
Numerade Educator
04:52

Problem 58

Given the Prolog facts in Example 28, what would Prolog return when given these queries?
a) ?enrolled(kevin,ee222)
b) ?enrolled(kiko,math273)
c) ?instructor(grossman,X)
d) ?instructor(X,cs301)
e) ?teaches(X,kevin)

Amy Jiang
Amy Jiang
Numerade Educator
01:18

Problem 59

Suppose that Prolog facts are used to define the predicates mother $(M, Y)$ and father $(F, X),$ which represent that $M$ is the mother of $Y$ and $F$ is the father of $X$ , respectively. Give a Prolog rule to define the predicate $\operatorname{sibling}(X, Y)$ which represents that $X$ and $Y$ are siblings (that is, have the same mother and the same father).

Clarissa Noh
Clarissa Noh
Numerade Educator
01:32

Problem 60

Suppose that Prolog facts are used to define the predicates mother$(M, Y)$ and father $(F, X),$ which represent that $M$ is the mother of $Y$ and $F$ is the father of $X,$ respectively. Give a Prolog rule to define the predicate grandfather $(X, Y),$ which represents that $X$ is the grandfather of $Y .[\text { Hint: You can write a disjunction in Prolog }$ either by using a semicolon to separate predicates or by putting these predicates on separate lines. $]$

Amy Jiang
Amy Jiang
Numerade Educator
02:16

Problem 61

Exercises $61-64$ are based on questions found in the book Symbolic Logic by Lewis Carroll.
Let P(x), Q(x), and R(x) be the statements “x is a professor,” “x is ignorant,” and “x is vain,” respectively. Express each of these statements using quantifiers; logical connectives; and P(x), Q(x), and R(x), where the domain consists of all people.
$$
\begin{array}{l}{\text { a) No professors are ignorant. }} \\ {\text { b) All ignorant people are vain. }} \\ {\text { c) No professors are vain. }} \\ {\text { d) Does (c) follow from (a) and (b)? }}\end{array}
$$

Christopher Stanley
Christopher Stanley
Numerade Educator
01:36

Problem 62

Exercises $61-64$ are based on questions found in the book Symbolic Logic by Lewis Carroll.
Let P(x), Q(x), and R(x) be the statements “x is a clear explanation,” “x is satisfactory,” and “x is an excuse,”
respectively. Suppose that the domain for x consists of all English text. Express each of these statements using quantifiers, logical connectives, and P(x), Q(x), and R(x).
a) All clear explanations are satisfactory.
b) Some excuses are unsatisfactory.
c) Some excuses are not clear explanations.
d) Does (c) follow from (a) and (b)?

Amy Jiang
Amy Jiang
Numerade Educator
02:27

Problem 63

Exercises $61-64$ are based on questions found in the book Symbolic Logic by Lewis Carroll.
Let P(x), Q(x), R(x), and S(x) be the statements “x is a baby,” “x is logical,” “x is able to manage a crocodile,”
and “x is despised,” respectively. Suppose that the domain consists of all people. Express each of these statements using quantifiers; logical connectives; and P(x), Q(x), R(x), and S(x).
a) Babies are illogical.
b) Nobody is despised who can manage a crocodile.
c) Illogical persons are despised.
d) Babies cannot manage crocodiles.
e) Does (d) follow from (a), (b), and (c)? If not, is there a correct conclusion?

Clarissa Noh
Clarissa Noh
Numerade Educator
02:28

Problem 64

Exercises $61-64$ are based on questions found in the book Symbolic Logic by Lewis Carroll.
Let P(x), Q(x), R(x), and S(x) be the statements “x is a duck,” “x is one of my poultry,” “x is an officer,” and “x
is willing to waltz,” respectively. Express each of these statements using quantifiers; logical connectives; and P(x), Q(x), R(x), and S(x).
a) No ducks are willing to waltz.
b) No officers ever decline to waltz.
c) All my poultry are ducks.
d) My poultry are not officers.
e) Does (d) follow from (a), (b), and (c)? If not, is there a correct conclusion?

Christopher Stanley
Christopher Stanley
Numerade Educator