Laws of Logic Flashcards
A ___ is a named commonly used equivalent statement.
Law of Logic
Two “nots” cancel out
¬¬p ≡ p
Double Negation Law
☐
Q.E.D
For “or” and “and” the order of the two parts does not matter.
p∨q ≡ q∨p
p∧q ≡ q∧p
Commutative Law
p ∨ (¬q ∧ r) ≡ (r ∧ ¬q) ∨ p
p ∨ (¬q ∧ r) ≡ p ∨ (r ∧ ¬q)
≡ (r ∧ ¬q) ∨ p
Which law was used in this proof?
Commutative Law
For the “or” of 3 statements or the “and” of 3 statements the order in which the “or”s or the “and”s does not matter.
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r
p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r
Associative Law
Associative cannot be used on a mixed symbols. ___ does that.
p ∧ (q ∨ r) ̸≡ (p ∧ q) ∨ r
Distributive Law
Associative cannot be used if a negation exists on the inner connective. ___ needs to be used first.
p ∨ ¬(q ∨ r) ̸≡ ¬(p ∨ q) ∨ r
DeMorgan’s
p ∨ (¬q ∨ r) ≡ (p ∨ ¬q) ∨ r
By which law is this statement true?
Associative Law
If we have an “and” on the outside of an “or”, then the “and” can be distributed into the “or”, and vice versa.
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
Distributive Law
Distributive cannot be used if a negation exists on the inner connective. ___ needs to be used first.
p ∨ ¬(q ∧ r) ̸≡ (p ∨ ¬q) ∧ (p ∨ ¬r)
DeMorgan’s
A distribution rule for negations.
If we know that I did not “eat and swim”, then either “I did not eat” or “I did not swim”.
Negations, when distributed into a connective, invert the sign.
¬(p ∧ q) ≡ ¬p ∨ ¬q
¬(p ∨ q) ≡ ¬p ∧ ¬q
DeMorgan’s Law
When using DeMorgan’s, do not remove the parenthesis if…
combined with other connectives
p ∧ ¬(q ∧ r) ̸≡ p ∧ ¬q ∨ ¬r
instead
p ∧ ¬(q ∧ r) ≡ p ∧ (¬q ∨ ¬r)
Proof “¬(p ∧ (q ∨ r))” ≡ “¬p ∨ (¬q ∧ ¬r)”
¬(p ∧ (q ∨ r)) ≡ ¬p ∨ ¬(q ∨ r)
≡ ¬p ∨ (¬q ∧ ¬r)
Which law was used in this proof?
DeMorgan’s
If a statement is “or” with itself and something else, we can ignore the something else.
p ∨ (p ∧ q) ≡ p
p ∧ (p ∨ q) ≡ p
Absorption Law
p ∧ (p ∨ (p ∧ q)) ≡ p
By which law is this statement true?
Absorption Law
If a statement or/and with itself is just the statement.
p ∨ p ≡ p
p ∧ p ≡ p
Idempotent Law
(p ∧ q) ∨ (p ∧ q) ≡ p ∧ q
By which law is this statement true?
Idempotent Law
The ___ law is like multiplying by 1 or adding 0. Applying the ___ means that the statement does not change. The ___ for True and False is not 1 or 0, but T and F.
p ∨ F ≡ p
p ∧ T ≡ p
Identity
(p ∧ q) ∧ T ≡ p ∧ q
By which law is this statement true?
Identity Law
Simple examples of Tautology or Contradiction.
p ∨ ¬p ≡ T
p ∧ ¬p ≡ F
Inverse Law
p ∨ F ≡ p ∨ (¬q ∧ ¬¬q)
By which law is this statement true?
Inverse Law
Occurs when a statement is removed by Tautologies or Contradictions.
p ∨ T ≡ T
p ∧ F ≡ F
Domination Law
T ∨ F ≡ T
By which law is this statement true?
Domination Law
Used to convert Implications into standard and/or/negation symbols. Since implication is True in 3 of 4 possible outcomes, it is similar to the “or” logic.
p → q ≡ ¬p ∨ q
Implication Identity
Niether commutative or associative
Implication
Proof “p → (q → r)” ≡ “¬p ∨ (¬q ∨ r)”
p → (q → r) ≡ ¬p ∨ (q → r)
≡ ¬p ∨ (¬q ∨ r)
Which law was used in this proof?
Implication Identity