Unit 1: Logic Flashcards
Define
Proposition
A proposition is:
a declarative sentence
(a sentence that declares a fact),
that is either true or false, but not both.
Define
Negation
The negation of p, denoted by ¬
p, is the statement:
it is not the case that p
Define
Conjunction
The conjunction of p and q, denoted by ** p ∧
q**, is the proposition:
p and q
The conjuction p ∧
q is true when both p and q are true, and false otherwise.
Define
Disjunction
The disjunction of p and q, denoted by p ∨
q, is the proposition:
p or q
The disjunction p ∨
q is false when both p and q are false and true otherwise.
Define
Implication
The implication p → q, is the proposition:
if p then q
p → q is false when p is true and q is false, and true otherwise.
The implication, p is callsed the hypothesis.
And q is called the conclusion
Define
Converse
The proposition q → p is called the converse of p → q
Define
Contrapositive
The contrapositive of p → q is:
¬q → ¬p
Define
Biconditional statement
The biconditional statement p ↔
q, is the proposition:
p if and only if q
The biconditional statement p ↔
q is true when p and q have the same truth values, and is false otherwise.
Precedence of logical operators
¬
-
∧
and∨
-
→
and↔
Define
(propositional) formula
A proposition or a compound proposition.
Define
Truth assignment
A truth assignment to a propositional formula is an assignment of truth values to each of the propositions that occur in the formula.
Define
Tautology
A formula that is true under every truth assignment.
Define
Logical equivalence
Formulats that have the same truth values under all possible truth assignments are called logically equivalent.
Defined:
Formulas p
and q
are logically equivalent, if p ↔ q
is a tautology.
The notation p ≡ q
denotes that p
and q
are logically equivalent.
The symbol ⇐⇒
is sometimes used instead of ≡
to denote logical equivalence.
Idempotent laws
(p ∧ p) ≡ p
(p ∨ p) ≡ p
Commutative laws
(p ∧ q) ≡ (q ∧ p)
(p ∨ q) ≡ (q ∨ p)
Associative laws
(logic)
(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
Absorption laws
(logic)
p ∧ (p ∨ q) ≡ p
p ∨ (p ∧ q) ≡ p
Distributive laws
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
Double negation
¬¬p ≡ p
De Morgan’s laws
¬(p ∧ q) ≡ (¬p ∨ ¬q)
¬(p ∨ q) ≡ (¬p ∧ ¬q)
Tertium non datur
(p ∧ ¬p) ≡ F
(p ∨ ¬p) ≡ T
Identity laws
(p ∧ T) ≡ p
(p ∨ F) ≡ p
Domination laws
(p ∨ T) ≡ T
(p ∧ F) ≡ F
Subject & Predicate
“x is greater than 3” has 2 parts:
- The first part, x, is the subject of the statement.
- The second part, the predicate, is greater than 3 refers to a property that the subject of the statement may or may not have.