Docsity

Propositional Equivalences, Cheat Sheet of Computer science

Partial preview of the text

Download Propositional Equivalences and more Cheat Sheet Computer science in PDF only on Docsity!

Propositional Equivalences

Discrete Mathematics — CSE 131

Definitions: Tautology, Contradiction and Contingency

Definition A compound proposition that is always true, no matter what the truth values of the propositions that occur in it, is called a tautology.

Definition A compound proposition that is always false, no matter what the truth values of the propositions that occur in it, is called a contradiction.

Definition A compound proposition that is neither a tautology nor a contradiction is called a contingency.

Example of a Contradiction

The compound proposition p ∧ ¬p is a contradiction because it is always false.

p ¬p p ∧ ¬p T F F F T F

Definition: Logical Equivalence

Definition The compound propositions p and q are called logically equivalent if p ↔ q is a tautology. The notation p ≡ q denotes that p and q are logically equivalent.

Note: The notation p ⇔ q is also commonly used.

Augustus De Morgan

Born on June 27, 1806 in Madras, India. Died on Mars 18, 1871 in London, England. www-groups.dcs.st-and.ac.uk/ ~history/Mathematicians/ De Morgan.html

De Morgan’s Law 1

The compound propositions ¬(p ∨ q) and ¬p ∧ ¬q are logically equivalent.

p q p ∨ q ¬(p ∨ q) ¬p ¬q ¬p ∧ ¬q ¬(p ∨ q) ↔ (¬p ∧ ¬q) T T T F F F F T T F T F F T F T F T T F T F F T F F F T T T T T

Therefore ¬(p ∨ q) ≡ (¬p ∧ ¬q).

Logical Equivalences

Equivalence Name p ∧ T ≡ p Identity laws p ∨ F ≡ p p ∨ T ≡ T Domination laws p ∧ F ≡ F p ∨ p ≡ p Idempotent laws p ∧ p ≡ p ¬(¬p) ≡ p Double negation law p ∨ ¬p ≡ T Negation laws p ∧ ¬p ≡ F

Logical Equivalences (continued)

Equivalence Name p ∨ q ≡ q ∨ p Commutative laws p ∧ q ≡ q ∧ p (p ∨ q) ∨ r ≡ p ∨ (q ∨ r ) Associative laws (p ∧ q) ∧ r ≡ p ∧ (q ∧ r ) p ∨ (q ∧ r ) ≡ (p ∨ q) ∧ (p ∨ r ) Distributive laws p ∧ (q ∨ r ) ≡ (p ∧ q) ∨ (p ∧ r ) ¬(p ∧ q) ≡ (¬p ∨ ¬q) De Morgan’s laws ¬(p ∨ q) ≡ (¬p ∧ ¬q) p ∨ (p ∧ q) ≡ p Absorption laws p ∧ (p ∨ q) ≡ p

Logical Equivalences Involving Biconditionals

p ↔ q ≡ (p → q) ∧ (q → p) p ↔ q ≡ ¬p ↔ ¬q p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q) ¬(p ↔ q) ≡ p ↔ ¬q

Disjunctive Normal Form

Definition A compound proposition is said to be in disjunctive normal form if it is a disjunction of conjunctions of the variables or their negations.

For example: (p ∧ q ∧ r ) ∨ (¬p ∧ q ∧ ¬r ) ∨ (¬p ∧ ¬q ∧ r ). Let a compound proposition that uses n propositional variables. This compound proposition is logically equivalent to a disjunctive normal form. Indeed, it is sufficient to write a conjunction for each combination of truth values for which the compound proposition is true.

Functionally Completeness

Definition A collection of logical operators is called functionally complete if every compound proposition is logically equivalent to a compound proposition involving only these logical operators.

For example, because any compound proposition is equivalent to a disjunctive normal form, then the collection of logical operators {∨, ∧, ¬} is functionally complete.