Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

this is a study notes of math 122, Study notes of Mathematical logic

this document is about The Laws of Logic and some basic logical equivalences.

Typology: Study notes

2023/2024

Uploaded on 04/08/2024

lisa-yu-1
lisa-yu-1 🇨🇦

6 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
The Laws of Logic
Two statements s1and s2are logically equivalent if s1s2is a tautology, that is, s1and
s2have the same truth table (up to the order of the rows)
If s1and s2are logically equivalent, we write s1s2. Note that s1s2is a statement
and can in general be true or false, and s1s2indicates the (higher level) fact that it is a
tautology.
Logically equivalent statements are “the same” in the sense that logically equivalent
statements can be freely substituted for each other without changing the meaning of a
compound statement.
Here are some basic logical equivalences. Each of the following can be verified (proved)
with a truth table. It is a good idea to memorize them, so that they are at your fingertips
when needed. In what follows, 1denotes a statement that is always true (i.e. a tautology),
and 0denotes a statement that is always false (i.e. a contradiction).
Idempotence: ppp, p pp
Commutative: pqqp, p qqp
Associative: (pq)rp(qr),(pq)rp(qr)
Distributative: p(qr)(pq)(pr), p (qr)(pq)(pr)
Double Negation: ¬(¬p)p
DeMorgan’s Laws: ¬(pq) ¬p ¬q , ¬(pq) ¬p ¬q
Identity: p1p, p 0p
Dominance: p00, p 11
The following are some other useful logical equivalences.
pq ¬pq
pq(pq)(qp)(¬pq)(p ¬q)
It is apparent that the Laws of Logic come in pairs. The dual of a statement is obtained
by replacing by ;by ;0by 1; and 1by 0, wherever they occur. It is a theorem of
logic that if s1is logically equivalent to s2, then the dual of s1is logically equivalent to the
dual of s2.

Partial preview of the text

Download this is a study notes of math 122 and more Study notes Mathematical logic in PDF only on Docsity!

The Laws of Logic

Two statements s 1 and s 2 are logically equivalent if s 1 ↔ s 2 is a tautology, that is, s 1 and s 2 have the same truth table (up to the order of the rows)

If s 1 and s 2 are logically equivalent, we write s 1 ⇔ s 2. Note that s 1 ↔ s 2 is a statement and can in general be true or false, and s 1 ⇔ s 2 indicates the (higher level) fact that it is a tautology.

Logically equivalent statements are “the same” in the sense that logically equivalent statements can be freely substituted for each other without changing the meaning of a compound statement.

Here are some basic logical equivalences. Each of the following can be verified (proved) with a truth table. It is a good idea to memorize them, so that they are at your fingertips when needed. In what follows, 1 denotes a statement that is always true (i.e. a tautology), and 0 denotes a statement that is always false (i.e. a contradiction).

  • Idempotence: p ∨ p ⇔ p, p ∧ p ⇔ p
  • Commutative: p ∧ q ⇔ q ∧ p, p ∨ q ⇔ q ∨ p
  • Associative: (p ∧ q) ∧ r ⇔ p ∧ (q ∧ r), (p ∨ q) ∨ r ⇔ p ∨ (q ∨ r)
  • Distributative: p ∨ (q ∧ r) ⇔ (p ∨ q) ∧ (p ∨ r), p ∧ (q ∨ r) ⇔ (p ∧ q) ∨ (p ∧ r)
  • Double Negation: ¬(¬p) ⇔ p
  • DeMorgan’s Laws: ¬(p ∨ q) ⇔ ¬p ∧ ¬q, ¬(p ∧ q) ⇔ ¬p ∨ ¬q
  • Identity: p ∧ 1 ⇔ p, p ∨ 0 ⇔ p
  • Dominance: p ∧ 0 ⇔ 0 , p ∨ 1 ⇔ 1

The following are some other useful logical equivalences.

  • p → q ⇔ ¬p ∨ q
  • p ↔ q ⇔ (p → q) ∧ (q → p) ⇔ (¬p ∨ q) ∧ (p ∨ ¬q)

It is apparent that the Laws of Logic come in pairs. The dual of a statement is obtained by replacing ∨ by ∧; ∧ by ∨; 0 by 1 ; and 1 by 0 , wherever they occur. It is a theorem of logic that if s 1 is logically equivalent to s 2 , then the dual of s 1 is logically equivalent to the dual of s 2.