Back to noteBack to top

Pomodoro

Pomodoro timer is idle

Logic Practice

GitHub Changelog -

Contributors

  • 3

Showing all 27 problems

0 of 27 completed

Direct Practice

1.1Identify Propositions

Exam I | Problem 1.1 | Propositions · Truth Values

Which of the following are propositions?

  1. $x > 3$

  2. $7$ is prime

  3. Close the door.

  4. Every even integer is divisible by $2$.

1.2Evaluate a Compound Statement

Exam I | Problem 1.2 | Logical Connectives · Truth Tables

Let $P$ be true and $Q$ be false. Find the truth value of

$$ (P \land \neg Q) \lor (\neg P \to Q). $$

1.3Read an Implication Correctly

Exam I | Problem 1.3 | Implication · Biconditional

If $P$ is false and $Q$ is false, determine the truth values of $P \to Q$ and $P \leftrightarrow Q$.

1.4Find the Contrapositive

Exam I | Problem 1.4 | Implication · Contrapositive

Write the contrapositive of the statement:

If a number is divisible by $6$, then it is divisible by $3$.

1.5Negate a Conjunction with a Disjunction

Exam I | Problem 1.5 | De Morgan's Laws, Negation

Find a logically equivalent formula for

$$ \neg(P \land (Q \lor R)). $$

1.6Expand a Biconditional

Exam I | Problem 1.6 | Biconditional · Logical Equivalence

Rewrite $P \leftrightarrow Q$ using only implications.

1.7Negate a Universal Statement

Exam I | Problem 1.7 | Quantifiers · Negating Quantifiers

Negate the statement

$$ \forall x\, P(x). $$

1.8Negate an Existential Statement

Exam I | Problem 1.8 | Quantifiers · Negating Quantifiers

Negate the statement

$$ \exists x\, (P(x) \land Q(x)). $$

1.9Compare Quantifier Order

Exam I | Problem 1.9 | Quantifiers · Order Matters

Are the statements

$$ \forall x\, \exists y\, P(x,y) $$

and

$$ \exists y\, \forall x\, P(x,y) $$

logically equivalent?

1.10Tautology or Contradiction

Exam I | Problem 1.10 | Tautology · Contradiction

Classify each formula:

  1. $P \lor \neg P$

  2. $P \land \neg P$

Integrated Practice

2.1Simplify an Expression with an Implication

Exam II | Problem 2.1 | Implication · De Morgan's Laws, Logical Equivalence

Simplify the formula

$$ \neg(P \land Q) \land P. $$

2.2Negate a Universal Conditional

Exam II | Problem 2.2 | Quantifiers · Implication · Negating Quantifiers

Negate the statement

$$ \forall x\, (P(x) \to Q(x)). $$

2.3Chain Two Implications

Exam II | Problem 2.3 | Rules of Inference · Hypothetical Syllogism

From the premises

$$ P \to Q,\qquad Q \to R,\qquad P, $$

what conclusion follows?

2.4Use Disjunctive Syllogism

Exam II | Problem 2.4 | Rules of Inference · Disjunctive Syllogism

From the premises

$$ P \lor Q,\qquad \neg P,\qquad Q \to R, $$

what conclusion follows?

2.5Prove by Cases

Exam II | Problem 2.5 | Proof Methods · Proof by Cases

Show that $R$ follows from the premises

$$ P \lor Q,\qquad P \to R,\qquad Q \to R. $$

2.6Put a Formula into CNF

Exam II | Problem 2.6 | Normal Forms · Distributive Laws

Convert

$$ P \lor (Q \land R) $$

to an equivalent formula in conjunctive normal form.

2.7Prove a Simple Subset Relation

Exam II | Problem 2.7 | Logic and Sets · Subset Proof

Prove that

$$ A \cap B \subseteq A. $$

2.8Apply Resolution

Exam II | Problem 2.8 | Rules of Inference · Resolution

From the premises

$$ P \lor Q,\qquad \neg P \lor R,\qquad \neg R, $$

what conclusion follows?

Applied Problems

3.1Find a Counterexample

Final | Problem 3.1 | Counterexample · Proof Methods

Disprove the claim that every integer is even.

3.2Spot a Common Invalid Argument

Final | Problem 3.2 | Pitfalls · Rules of Inference

Consider the argument:

If a shape is a square, then it is a rectangle. This shape is a rectangle. Therefore, it is a square.

Is the argument valid?

3.3Translate Necessary and Sufficient

Final | Problem 3.3 | Implication · Common Pitfalls

Let $L$ mean "the person is licensed" and $D$ mean "the person is driving."

Translate these statements into symbols:

  1. Being licensed is necessary for driving.

  2. Being licensed is sufficient for driving.

3.4Find a Satisfying Assignment

Final | Problem 3.4 | Satisfiability · Truth Tables

Find truth values for $P$ and $Q$ that make

$$ (P \lor Q) \land \neg P $$

true.

3.5Classify a Formula

Final | Problem 3.5 | Tautology · Contradiction · Contingency

Is

$$ (P \to Q) \land P \land \neg Q $$

a tautology, a contradiction, or a contingency?

Challenge / Synthesis

4.1Simplify a Nested Formula

Final | Problem 4.1 | Logical Equivalence · De Morgan's Laws, Implication

Simplify

$$ \neg\bigl((P \to Q) \land (Q \to R)\bigr) $$

into an equivalent formula using only $\neg$, $\land$, and $\lor$.

4.2Compare Nested Quantifiers on a Finite Domain

Final | Problem 4.2 | Quantifiers · Order Matters · Domain of Discourse

Let the domain be $\{1,2\}$, and let $P(x,y)$ mean $x=y$.

Determine the truth values of

$$ \forall x\, \exists y\, P(x,y) $$

and

$$ \exists y\, \forall x\, P(x,y). $$

4.3Prove a Set Identity

Final | Problem 4.3 | Logic and Sets · De Morgan's Laws

Prove that

$$ (A \cap B)^c = A^c \cup B^c. $$

4.4Check a Mixed Consistency Claim

Final | Problem 4.4 | Satisfiability · Quantifiers · Rules of Inference

Is the set of statements

$$ \{\forall x(P(x) \to Q(x)),\ \exists x\, P(x),\ \forall x\, \neg Q(x)\} $$

consistent?