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.
Define
Universal Quantification
The universal quantification of P(x)
is the statement:
P(x)
for all values of x
in the domain of x
- The notation
∀x P(x)
denotes the universal quantification ofP(x)
. - The symbol
∀
is called the universal quantifier.
Define
Existential Quantification
The existential quantification of P(x)
is the statement:
There exists an element x
in the domain such that P(x)
- The notation
∃x P(x)
denotes the existential quantification ofP(x)
. - The symbol
∃
is called the existential quantifier.
Define
Set
A set is an unordered collection of objects, called elements or members of the set.
A set is said to contain its elements.
x ∈ A
denotes that x
is an element of the set A
.x ∈/ A
denotes that x
is not an element of the set A
.
3 Fundamental Set Properties
- All elements in a set are distinct. (i.e. a value is either an element of a set, or it is not. It cannot occur multiple times in the set.)
- The elements of a set do not come with a fixed ordering.
- The same set can be described in different ways {1, 2, 3} = {1, 2, 2, 3} = {3, 1, 2} = {i | i integer, 0 < i ≤ 3}
6 Standard sets of numbers
N := {0,1,2,3,···} set of natural numbers
Z := {0,1,−1,2,−2,3,−3,···} set of integers
Z>0 := {1, 2, 3, · · · } set of positive natural numbers
Q := {ab | a,b ∈ Z,b ̸= 0} set of rational numbers
R := the set of real numbers
R>0 := the set of positive real numbers
Definition
Set equality
Two sets A and B are equal (A=B), if they contain the same elements, i.e.
- every x ∈ A satisfies x ∈ B and
- every x ∈ B satisfies x ∈ A.
Definition
Empty set
The empty set is the (uniquely determined) set that contains no element(s).
We denote it by ∅, or by {}.
Definition
Singleton set
A set with exactly one element.
Definition
Finite set
A set is called finite, if it contains only finitely many elements, i.e. if there is a number n ∈ N
, such that the set contains exactly n
elements.