Worksheet on Logic, Lecture notes of Logic

Definitions and truth tables for logical operators and propositions. It also includes problems that require translating assertions into propositional formulas and rewriting statements using logical operators. useful for students studying logic and related fields.

Typology: Lecture notes

2022/2023

Uploaded on 03/14/2023

thecoral
thecoral 🇺🇸

4.5

(30)

395 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Worksheet on Logic
Benjamin Cosman, Patrick Lin and Mahesh Viswanathan
Fall 2020
Definitions from the Lecture
A proposition is a statement that can either be true (de-
noted T) or false (denoted F).
Propositions can be combined using logical operators not
(¬), or (), and (), implies (), and if and only if (), to
create new propositions. Truth tables for these operations is
shown in Figures 1to 5.
Two formulas/propositions Pand Qare logically equivalent
(denoted PQ) if they have the same meaning. That is,
Pand Qevaluate to the same value in all rows of a truth
table, or the formula PQevaluated to Tin all rows of a
truth table.
The contrapositive of an implication PQis the formula
(¬Q)(¬P). The contrapositive (¬Q)(¬P)is logically
equivalent to PQ. The converse of an implication PQ
is the formula QP.
Predicates can either be universally quantified (x P(x)) or
existentially quantified (x P(x)) to create propositions from
predicates. Formulas can have multiple quantifiers and the
order in which they appear can influence their meaning.
A domain of discourse identifies the set over which predi-
cate variables take values and the meaning of predicates. It
plays an important role in determining the truth of proposi-
tions.
P¬P
F T
T F
Figure 1: Truth table for ¬P
Problem 1.In which time zones are other students in your breakout
room?
Problem 2.Your class has a textbook and a final exam. Let P,Q, and
pf3

Partial preview of the text

Download Worksheet on Logic and more Lecture notes Logic in PDF only on Docsity!

Benjamin Cosman, Patrick Lin and Mahesh Viswanathan

Fall 2020

Definitions from the Lecture

  • A proposition is a statement that can either be true (de- noted T) or false (denoted F).
  • Propositions can be combined using logical operators not (¬), or (∨), and (∧), implies (→), and if and only if (↔), to create new propositions. Truth tables for these operations is shown in Figures 1 to 5.
  • Two formulas/propositions P and Q are logically equivalent (denoted P ≡ Q) if they have the same meaning. That is, P and Q evaluate to the same value in all rows of a truth table, or the formula P ↔ Q evaluated to T in all rows of a truth table.
  • The contrapositive of an implication P → Q is the formula (¬Q) → (¬P). The contrapositive (¬Q) → (¬P) is logically equivalent to P → Q. The converse of an implication P → Q is the formula Q → P.
  • Predicates can either be universally quantified (∀x P(x)) or existentially quantified (∃x P(x)) to create propositions from predicates. Formulas can have multiple quantifiers and the order in which they appear can influence their meaning.
  • A domain of discourse identifies the set over which predi- cate variables take values and the meaning of predicates. It plays an important role in determining the truth of proposi- tions.

P ¬P

F T

T F

Figure 1 : Truth table for ¬P

Problem 1. In which time zones are other students in your breakout room?

Problem 2. Your class has a textbook and a final exam. Let P, Q, and

Figure 2 : Truth table for P ∨ Q P Q P ∨ Q F F F F T T T F T T T T

Figure 3 : Truth table for P ∧ Q P Q P ∧ Q F F F F T F T F F T T T

Figure 4 : Truth table for P → Q P Q P → Q F F T F T T T F F T T T

Figure 5 : Truth table for P ↔ Q P Q P ↔ Q F F T F T F T F F T T T

R be the following propositions.

P : You get an A on the final exam. Q : You do every exercise in the book. R : You get an A in the class.

Translate the following assertions into propositional formulas using P, Q, R and the logical operators ∧, ¬, →.

  1. You get an A in the class, but you do not do every exercise in the book.

  2. You get an A on the final, you do every exercise in the book, and you get an A in the class.

  3. To get an A in the class, it is necessary for you to get an A on the final.

  4. You get an A on the final, but you don’t do every exercise in the book; nevertheless, you get an A in this class.

Problem 3. Consider the following statement

If m + n is even then either m and n are both even, or m and n are both odd.

Define the following propositions: P to be “m + n is even”; Em to be “m is even”; En to be “n is even”; Om to be “m is odd”; and On to be “n is odd”.

  1. Rewrite the statement using logical operators, and the proposi- tions P, Em, En, Om, On.

  2. What is the negation of an implication R → S, where R and S are propositions?