algebra1 week1 logic propositions
Table of contents
- Logic, sets, Functions
- Sets and Set Operations
- Binary Relations
- Functions
- Images and Preimages
- Composition of Functions
- Chapter Summary
- Equivalence Relations
- Order Relations
1. Logic, sets, Functions
1.1 Propositions and truth values
A proposition is a declarative sentence that has exactly one truth value: it is either true or false. An open sentence or predicate, such as P(x):x2>4, is not a proposition until a value is assigned to the variable or a quantifier is added.
For example, P(3) is true, while P(1) is false 1 2.
1.2 Quantifiers
Quantifiers are symbols used to turn open sentences into propositions.
- Universal quantifier (∀): Means "for all" or "for every." For example, ∀x∈R,x2≥0 states that for every real number x, x2 is non-negative.
- Existential quantifier (∃): Means "there exists." For example, ∃x∈R such that x2=4 is true because x=2 and x=−2 satisfy the equation 2.
The order of quantifiers matters, especially when they are mixed. ∀x∃yP(x,y) is not generally equivalent to ∃y∀xP(x,y). However, quantifiers of the same type can be interchanged: ∀x∀yP(x,y)≡∀y∀xP(x,y) and ∃x∃yP(x,y)≡∃y∃xP(x,y) 2 3.
1.3 Negation
The negation of a proposition P, denoted by ¬P, means "not P." It reverses the truth value of P 3.
| P | ¬P |
|---|---|
| True | False |
| False | True |
Negating quantified statements follows specific rules:
- ¬(∀x,P(x))≡∃x¬P(x): The negation of "every" is "there exists at least one... not.".
- ¬(∃x,P(x))≡∀x¬P(x): The negation of "there exists" is "for every... not." 3.
For example, the negation of ∀x∈R,x2+1>0 is ∃x∈R such that x2+1≤0 4.
1.4 Logical connectives
Logical connectives combine propositions.
- Conjunction (P∧Q): Means "P and Q." It is true only when both P and Q are true.
- Disjunction (P∨Q): Means "P or Q." In mathematics, "or" is inclusive, meaning P∨Q is true if at least one of P or Q is true 4.
- Implication (P⇒Q): Means "if P, then Q." It is equivalent to (¬P)∨Q and is false only when P is true and Q is false 5.
- Biconditional (P⇔Q): Means "P if and only if Q." It is true when P and Q have the same truth value, equivalent to (P⇒Q)∧(Q⇒P) 6.
Two propositions are logically equivalent (P≡Q) if they have the same truth value in all cases 6.
1.5 Related statements to implication
An implication P⇒Q has related statements:
| Name | Statement |
|---|---|
| Original implication | P ⇒ Q |
| Converse | Q ⇒ P |
| Inverse | ¬P ⇒ ¬Q |
| Contrapositive | ¬Q ⇒ ¬P |
An implication is logically equivalent to its contrapositive (P⇒Q≡¬Q⇒¬P), but not generally to its converse 6.
- P is a sufficient condition for Q.
- Q is a necessary condition for P 7.
1.6 Introduction to proof methods
A proof is a logically valid argument that establishes the truth of a conclusion from accepted hypotheses.
1.7 Logical laws
A logical law, or tautology, is a proposition that is always true, regardless of the truth values of its propositional variables. For example, P∨¬P is a logical law.
De Morgan's laws are important logical laws 7:
- ¬(P∧Q)≡¬P∨¬Q
- ¬(P∨Q)≡¬P∧¬Q 8.
1.8 Direct proof
To prove P⇒Q directly:
- Assume P is true.
- Use definitions and known results.
- Derive Q 8.
Example: Prove that if n is even, then n2 is even. Proof: Assume n is even.
Then n=2k for some integer k. Thus, n2=(2k)2=4k2=2(2k2).
Since 2k2 is an integer, n2 is even 9.
1.9 Proof by contrapositive
To prove P⇒Q, prove the equivalent statement ¬Q⇒¬P. This is often useful when ¬Q provides a more convenient starting point 9.
Example: Prove that if n2 is odd, then n is odd. Proof: We prove the contrapositive: If n is even, then n2 is even.
As shown above, this is true. Therefore, the original statement is true 9.
1.10 Proof by contradiction
To prove a proposition P by contradiction:
- Assume ¬P.
- Derive an impossibility or contradiction.
- Conclude that P must be true 9.
Example: Let a,b≥0. Prove by contradiction that if 1+ba=1+ab, then a=b.
Proof: Assume 1+ba=1+ab and a=b. This leads to a(1+a)=b(1+b), so a+a2=b+b2, which means a2−b2+a−b=0.
Factoring gives (a−b)(a+b)+(a−b)=0, so (a−b)(a+b+1)=0. Since a,b≥0, a+b+1>0.
If a=b, then a−b=0. This implies (a−b)(a+b+1)=0, which contradicts our derivation.
Therefore, the assumption a=b must be false, so a=b 10.
📝 The statement ∀x∈R,x2>x is false. A counterexample is x=1, because 12=1, which is not greater than 1 10.
1.11 Disproof by counterexample
To disprove a universal statement ∀x,P(x), find one value x0 for which P(x0) is false 10.
Example: The statement ∀x∈R,x2>x is false. A counterexample is x=1, because 12=1, which is not greater than 1 10.
1.12 Proof by cases
If the possible values of a variable can be divided into mutually exclusive and exhaustive cases, prove the proposition in each case separately 10.
Example: Prove that ∀x∈R,∣x−1∣≤x2−x+1. Proof:
- Case 1: x≥1. Then ∣x−1∣=x−1. We need to show x−1≤x2−x+1, which simplifies to 0≤x2−2x+2. This is (x−1)2+1>0, which is true.
- Case 2: x<1. Then ∣x−1∣=1−x. We need to show 1−x≤x2−x+1, which simplifies to 0≤x2. This is true for all x∈R. Since the inequality holds in both cases, it is true for all x∈R 11.
📝 Negate the statement ∀x∈R,x+1>0. Negation: ∃x∈R such that x+1≤0 12.
1.13 Guided classroom exercises
Exercise 1: propositions or not?
- (a) 9 is divisible by 3. (Proposition; true).
- (b) x + 5 = 12. (Not a proposition; truth depends on x).
- (c) Find all solutions of x^2 = 1. (Not a proposition; it's an instruction).
- (d) Every prime number is odd. (Proposition; false, as 2 is prime and even).
- (e) 2 < 5 and 7 > 3. (Proposition; true) 12.
Exercise 3: translate into symbols (Domain: R)
Exercise 4: negation
- (a) ∀x∈R,x+1>0. Negation: ∃x∈R such that x+1≤0.
- (b) ∃n∈N,n2=25. Negation: ∀n∈N,n2=25.
- (c) ∀x∈R,∃y∈R,y>x. Negation: ∃x∈R such that ∀y∈R,y≤x 12 13.
Exercise 6: proof Prove that if a and b are even integers, then a+b is even. Proof: Let a=2m and b=2n for some integers m,n.
Then a+b=2m+2n=2(m+n). Since m+n is an integer, a+b is even 12 13.
Exercise 7: counterexample Give a counterexample to ∀a,b∈R,a+b=a+b. Counterexample: Let a=1,b=1.
Then 1+1=2, while 1+1=1+1=2. Since 2=2, the statement is false 12 13.
1.14 Summary sheet 14
| Concept | Key fact |
|---|---|
| Negation | ¬P reverses the truth value of P. |
| Conjunction | P ∧Q is true only when both are true. |
| Disjunction | P ∨Q is true when at least one is true. |
| Implication | P ⇒Q is false only for P = True and Q = False. |
| Biconditional | P ⇔Q means both directions hold. |
| Contrapositive | P ⇒Q ≡¬Q ⇒¬P. |
| Universal quantifier | ∀ means “for every”. |
| Existential quantifier | ∃ means “there exists”. |
| Negating ∀ | ¬(∀x P(x)) ≡∃x ¬P(x). |
| Negating ∃ | ¬(∃x P(x)) ≡∀x ¬P(x). |
| Counterexample | One counterexample disproves a universal statement. |
2. Sets and Set Operations
2.1 Sets and membership
A set is a collection of distinct objects, known as its elements. Membership in a set is denoted by the symbol ∈.
If an object x is an element of set A, we write x ∈ A. Conversely, if x is not an element of A, we write x ∉ A.
Sets can be described using two primary notations: roster notation, where elements are listed explicitly, and set-builder notation, where elements are defined by a specific property.
- Roster notation: Elements are listed within curly braces. For example,
A = {1, 2, 3, 4}. - Set-builder notation: Elements are described by a property. For example, A=x∈Z:−2≤x≤2 defines the set of integers between -2 and 2, inclusive. This set would be
A = {-2, -1, 0, 1, 2}15.
2.2 Equality and inclusion 15 16
Two sets, A and B, are considered equal if they contain precisely the same elements. This is formally expressed as A = B if and only if for every element x, x is in A if and only if x is in B (∀x, (x ∈ A ⇔ x ∈ B)).
A set A is a subset of a set B, denoted A ⊆ B, if every element in A is also an element in B. This means that for all x, if x is in A, then x must also be in B (∀x, x ∈ A ⇒ x ∈ B).
The equality of two sets can be proven by demonstrating that each set is a subset of the other. This method is called double inclusion.
- Equality condition:
A = Bif and only ifA ⊆ BandB ⊆ A. - Proof strategy: To prove
A = B, proveA ⊆ Band then proveB ⊆ A.
| Set A | Set B | Condition |
|---|---|---|
| {x ∈ R: | x | ≤ 2} |
📝 To prove that the set of real numbers x such that ∣x∣≤2 is equal to the closed interval [−2,2], we show that if x∈{x∈R:∣x∣≤2}, then ∣x∣≤2, which implies −2≤x≤2, so x∈[−2,2]. Conversely, if x∈[−2,2], then −2≤x≤2, which implies ∣x∣≤2, so x∈{x∈R:∣x∣≤2}. 16
2.3 Union, intersection, difference, and complement 17 18
Let E be a universal set and A and B be subsets of E. These operations define new sets based on the elements of A and B.
- Union (
A ∪ B): The set of all elements that belong toAorB(or both).A ∪ B = {x ∈ E: x ∈ A or x ∈ B}. - Intersection (
A ∩ B): The set of all elements that belong to bothAandB.A ∩ B = {x ∈ E: x ∈ A and x ∈ B}. - Difference (
A \ B): The set of all elements that belong toAbut not toB.A \ B = {x ∈ E: x ∈ A and x ∉ B}. - Complement (
Aᶜ): The set of all elements in the universal setEthat do not belong toA.Aᶜ = E \ A = {x ∈ E: x ∉ A}.
These set operations correspond directly to logical connectives: union with disjunction (∨), intersection with conjunction (∧), and complement with negation (¬).
| Set Operation | Logical Connective | Definition |
|---|---|---|
| Union (A ∪ B) | OR (∨) | {x ∈ E: x ∈ A or x ∈ B} |
| Intersection (A ∩ B) | AND (∧) | {x ∈ E: x ∈ A and x ∈ B} |
| Complement (Aᶜ) | NOT (¬) | {x ∈ E: x ∉ A} |
2.4 Set identities 18 19
Set identities are fundamental laws that govern set operations, analogous to logical laws. These identities are crucial for simplifying set expressions and proving set equalities.
- Commutative laws:
A ∪ B = B ∪ AandA ∩ B = B ∩ A. - Associative laws:
(A ∪ B) ∪ C = A ∪ (B ∪ C)and(A ∩ B) ∩ C = A ∩ (B ∩ C). - Distributive laws:
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)andA ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C). - De Morgan's laws:
(A ∪ B)ᶜ = Aᶜ ∩ Bᶜand(A ∩ B)ᶜ = Aᶜ ∪ Bᶜ.
These identities can be proven using logical equivalences, similar to how set definitions relate to logical connectives. For example, proving A \ (B ∪ C) = (A \ B) ∩ (A \ C) involves showing that an element x is in A \ (B ∪ C) if and only if it is in (A \ B) ∩ (A \ C).
| Identity | Description |
|---|---|
| A \ (B ∪ C) = (A \ B) ∩ (A \ C) | Difference and Union/Intersection |
| A \ (B ∩ C) = (A \ B) ∪ (A \ C) | Difference and Intersection/Union |
2.5 Cartesian product
An ordered pair (a, b) consists of two objects where the order matters. Two ordered pairs (a, b) and (c, d) are equal if and only if a = c and b = d.
The Cartesian product of two sets A and B, denoted A × B, is the set of all possible ordered pairs where the first element comes from A and the second element comes from B. Formally, A × B = {(a, b): a ∈ A, b ∈ B}.
- The order of sets in a Cartesian product matters:
A × Bis generally not equal toB × A. - For finite sets, the number of elements in the Cartesian product is the product of the number of elements in each set:
|A × B| = |A| |B|. ℝ²(R-squared) represents the Cartesian product of the set of real numbers with itself (ℝ × ℝ), which is the set of all ordered pairs of real numbers.
Let A = {0, 1} and B = {1, 2, 3}.
A × B = {(0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3)}.B × A = {(1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2), (3, 0), (3, 1), (3, 2)}. These two sets are not equal 19 20.
📝 Let A={0,1} and B={1,2,3}. Then A×B={(0,1),(0,2),(0,3),(1,1),(1,2),(1,3)}. 20
2.6 Power set
The power set of a set A, denoted P(A), is the set containing all possible subsets of A. Formally, P(A) = {X: X ⊆ A}.
- The empty set (
∅) is always a subset of any set, and thus is an element of its power set. - A set is always a subset of itself, so a set is also an element of its own power set.
If A = {a, b}, then P(A) = {∅, {a}, {b}, {a, b}}.
For a finite set A with n elements, the number of elements in its power set is 2ⁿ. This is because for each element in A, there are two choices when forming a subset: either include the element or exclude it.
Common mistake: Do not confuse an element x ∈ A with a singleton set {x} ⊆ A. The former refers to membership, while the latter refers to a subset 20.
3. Binary Relations
3.1 Definition of a binary relation
A binary relation from set E to set F is defined as a subset of their Cartesian product, R⊆E×F. When an ordered pair (x,y) is an element of this subset, denoted as (x,y)∈R, it is written as xRy, signifying that x is related to y.
A relation on a set E is specifically a subset of E×E 21.
For example, consider the relation R on the set of integers Z where xRy if and only if x−y is an even number. In this case, 2R6 because 2−6=−4, which is even.
However, 2R5 because 2−5=−3, which is odd 21.
3.2 Basic properties of relations
A relation R on a set E can possess several fundamental properties:
- Reflexive: For every element x in E, xRx holds true.
- Symmetric: If for any elements x and y in E, xRy is true, then yRx must also be true.
- Antisymmetric: If for any elements x and y in E, both xRy and yRx are true, then it must be that x=y.
- Transitive: If for any elements x,y,z in E, xRy and yRz are both true, then xRz must also be true 22.
It is important to note that symmetric and antisymmetric are not opposite properties; a relation can be both symmetric and antisymmetric. Equality on any set serves as an example of such a relation 22.
| Property | Condition |
|---|---|
| Reflexive | ∀x ∈E, xRx |
| Symmetric | ∀x, y ∈E, xRy ⇒ yRx |
| Antisymmetric | ∀x, y ∈E, (xRy and yRx) ⇒ x = y |
| Transitive | ∀x, y, z ∈E, (xRy and yRz) ⇒ xRz |
3.3 Equivalence relations
A relation R on a set E is classified as an equivalence relation if it satisfies three specific properties: reflexivity, symmetry, and transitivity 22.
3.4 Congruence modulo n
A common example of an equivalence relation is congruence modulo n, defined for integers a,b∈Z as a≡b(modn) if and only if n divides (a−b). This relation is reflexive because a−a=0 is divisible by any n.
It is symmetric because if n divides (a−b), it also divides (b−a). It is transitive because if n divides (a−b) and (b−c), then n also divides their sum, (a−b)+(b−c)=a−c 23.
3.5 Equivalence classes
For an equivalence relation R on a set E, the equivalence class of an element x∈E, denoted as [x], is the set of all elements y∈E such that yRx 23.
For congruence modulo 3:
- [0]={...,−6,−3,0,3,6,...}
- [1]={...,−5,−2,1,4,7,...}
- [2]={...,−4,−1,2,5,8,...} 23.
A key property of equivalence relations is that any two equivalence classes are either identical or completely disjoint. This means an equivalence relation partitions a set into non-overlapping subsets 23.
A partition of a set E is a collection of non-empty subsets of E where distinct subsets are disjoint, and their union equals E. Equivalence relations and partitions represent the same fundamental concept: grouping elements based on a shared equivalence criterion 23.
3.6 Order relations
A relation ≼ on a set E is termed a partial order if it is reflexive, antisymmetric, and transitive. The pair (E,≼) is then referred to as a partially ordered set, or poset 24.
The standard relation ≤ on the set of real numbers R is an order relation. Similarly, the inclusion relation ⊆ is an order relation on the power set P(E) 24.
An order relation ≼ on E is considered a total order if every pair of elements in E is comparable, meaning for any x,y∈E, either x≼y or y≼x. While ≤ on R is a total order, ⊆ on P(E) is typically only a partial order.
For instance, in P({1,2,3}), the sets A={1} and B={2} are not comparable because neither A⊆B nor B⊆A is true 24.
| Type | Properties |
|---|---|
| Partial Order | Reflexive, Antisymmetric, Transitive |
| Total Order | Reflexive, Antisymmetric, Transitive, and Comparable elements (∀x, y ∈E, x ⪯y or y ⪯x) |
📝 Consider the set of natural numbers N∗={1,2,3,...} with the relation a≼b if and only if a divides b (a∣b).
- Reflexive: For any a∈N∗, a∣a is true since a=1⋅a.
- Antisymmetric: If a∣b and b∣a, then b=ka and a=lb for some integers k,l. Substituting, a=l(ka)=(lk)a. Since a=0, lk=1. As a,b are positive, k and l must be positive integers, so k=1 and l=1. This implies a=b.
- Transitive: If a∣b and b∣c, then b=ka and c=lb for integers k,l. Substituting, c=l(ka)=(lk)a, so a∣c.
Thus, ≼ is a partial order. It is not a total order because, for example, 2∤3 and 3∤2 24.
4. Functions
4.1 Definition of a function
A function f from a set E to a set F, denoted f:E→F, assigns exactly one element f(x) in F to every element x in E. The set E is known as the domain, and F is the codomain.
The notation x↦f(x) indicates that element x from the domain is mapped to element f(x) in the codomain. It is crucial to remember that a function's definition includes both its formula and its specified domain and codomain 25.
4.2 Graph of a function
The graph of a function f:E→F is the set of ordered pairs (x,f(x)) for all x in the domain E. This set is formally defined as Γf={(x,f(x)):x∈E}.
While every function defines a binary relation, not all binary relations represent functions 25.
📝 The function f:R→[0,+∞) defined by f(x)=x2 is surjective. For any y≥0 in the codomain, we can choose x=y from the domain, and f(x)=(y)2=y 27.
4.3 Injective functions
A function f:E→F is injective, or one-to-one, if distinct elements in the domain E are mapped to distinct elements in the codomain F. This property can be stated as: for any x1,x2∈E, if f(x1)=f(x2), then it must be that x1=x2.
The contrapositive statement is also true: if x1=x2, then f(x1)=f(x2) 26.
- Example: The function f:R→R defined by f(x)=2x+1 is injective. If f(x1)=f(x2), then 2x1+1=2x2+1, which simplifies to x1=x2 26.
4.4 Surjective functions
A function f:E→F is surjective, or onto, if every element in the codomain F has at least one corresponding element in the domain E that maps to it. Formally, for every y∈F, there exists at least one x∈E such that f(x)=y 26.
- Example: The function f:R→[0,+∞) defined by f(x)=x2 is surjective. For any y≥0 in the codomain, we can choose x=y from the domain, and f(x)=(y)2=y 27.
4.5 Bijective functions
A function is bijective if it possesses both injective and surjective properties. In a bijective function, every element in the codomain has exactly one preimage from the domain 27.
-
Proposition: A function f:E→F is bijective if and only if there exists an inverse function f−1:F→E such that the composition of f−1 with f is the identity function on E (f−1∘f=idE), and the composition of f with f−1 is the identity function on F (f∘f−1=idF) 27.
-
Example: For the function f:R→R defined by f(x)=3x−2, we can solve y=3x−2 for x to find the inverse. Rearranging gives x=3y+2. Thus, the inverse function is f−1(y)=3y+2 28.
4.6 Image and preimage of a subset
If f:E→F is a function and A is a subset of the domain E (A⊆E), the image of A under f is the set of all elements in F that are mapped to by elements in A. This is denoted as f(A)={f(x):x∈A}.
Equivalently, f(A)={y∈F:∃x∈A,y=f(x)}. The image of the entire domain, f(E), is also referred to as the range or image of the function 28.
5. Images and Preimages
5.1 Image of a subset
The image of a subset A of the domain E under a function f:E→F, denoted f(A), is the set of all values in F that are outputs of f for inputs in A. It represents how the function f maps the subset A to a subset within the codomain F 29.
- Image notation: f(A)={f(x)∣x∈A}.
- The image f(A) is a subset of the codomain F 29.
📝 For the function f(x)=x2 where f:R→R, if A=[−2,1], then the image f(A) is [0,4] 29.
5.2 Preimage of a subset
The preimage (or inverse image) of a subset B of the codomain F under a function f:E→F, denoted f−1(B), is the set of all elements in the domain E that map to elements within B under f. This notation is valid for any function, regardless of whether it is bijective 29.
- Preimage notation: f−1(B)={x∈E∣f(x)∈B}.
- It is crucial not to confuse the preimage of a set with the inverse function. The inverse function f−1:F→E exists only if f is bijective, whereas the preimage f−1(B) is defined for any function f and any subset B⊆F 29.
📝 For the function f(x)=x2 where f:R→R, if B=[1,4], then the preimage f−1(B) is [−2,−1]∪[1,2] 30.
5.3 Useful identities for images and preimages
Certain identities govern how images and preimages behave with respect to set operations like union and intersection. These identities are fundamental for manipulating sets under function mappings 30.
| Operation | Image Identity | Preimage Identity |
|---|---|---|
| Union | f(A1 ∪ A2) = f(A1) ∪ f(A2) | f−1(B1 ∪ B2) = f−1(B1) ∪ f−1(B2) |
| Intersection | f(A1 ∩ A2) ⊆ f(A1) ∩ f(A2) | f−1(B1 ∩ B2) = f−1(B1) ∩ f−1(B2) |
| Complement | — | f−1(F \ B1) = E \ f−1(B1) |
- The inclusion f(A1∩A2)⊆f(A1)∩f(A2) may be strict. Equality holds for all subsets A1,A2 if f is injective 30.
📝 For f(x)=x2, determine f([−3,−1]), f−1([0,9]), and f−1((4,∞)) 30.
6. Composition of Functions
6.1 Definition of function composition
The composition of two functions, g with f, denoted as g∘f, creates a new function where the output of f becomes the input of g. If f maps from set E to set F (f:E→F) and g maps from set F to set G (g:F→G), then their composition g∘f maps from E to G (g∘f:E→G).
The operation is defined as (g∘f)(x)=g(f(x)), meaning f is applied first, and then g is applied to the result 31.
📝 Let f(x)=x+1 and g(x)=x2. The composition (g∘f)(x) is found by substituting f(x) into g(x), resulting in (x+1)2. In contrast, (f∘g)(x) involves substituting g(x) into f(x), yielding x2+1. This demonstrates that the order of composition matters, as (g∘f)(x)=(f∘g)(x) in this case 31.
6.2 Properties of function composition 31 32
Function composition exhibits several key properties related to associativity and the nature of the component functions (injective, surjective, bijective).
| Property | Description |
|---|---|
| Associativity | Composition is associative: h∘(g∘f)=(h∘g)∘f. |
| Injectivity | If both f and g are injective, then their composition g∘f is also injective. |
| Surjectivity | If both f and g are surjective, then their composition g∘f is also surjective. |
| Bijectivity | If both f and g are bijective, then g∘f is bijective, and its inverse is (g∘f)−1=f−1∘g−1. |
7. Chapter Summary
7.1 Cardinality and Infinite Sets
An infinite set can have the same size as a proper subset of itself. This is demonstrated by the bijection f(n)=2n between the set of natural numbers N and the set of even natural numbers 2N.
This function shows that ∣N∣=∣2N∣, even though 2N is a proper subset of N 33.
A set A is countably infinite if there exists a bijection f:N→A. A set is countable if it is either finite or countably infinite.
Informally, a set is countable if its elements can be arranged in a list a0,a1,a2,… without missing any element 33.
The sets of natural numbers (N), integers (Z), and rational numbers (Q) are all countable. The integers can be listed as 0,1,−1,2,−2,3,−3,…, demonstrating their countability.
A finite Cartesian product of countable sets is also countable, meaning N×N is countable. This fact is used to show that Q is countable, as any rational number can be represented by a pair of integers (p,q) where q=0 33.
Not every infinite set is countable. Cantor's theorem states that for any set E, there is no surjective function f:E→P(E), where P(E) is the power set of E.
This implies that ∣E∣<∣P(E)∣. The proof proceeds by contradiction, defining a set A={x∈E:x∈/f(x)}.
If such a surjective function f existed, we would reach a contradiction by considering whether a∈A for a specific element a∈E such that f(a)=A. The interval (0,1) is an example of an uncountable set, and it has the same cardinality as the set of real numbers R 34.
7.2 Exercises on Countability
- Show that the set of odd natural numbers is countably infinite.
- Construct a bijection between N and {3,6,9,12,…} 35.
- Give an explicit bijection between N and the set A={5,10,15,20,…} 36.
8. Equivalence Relations
8.1 Definition of an equivalence relation
An equivalence relation on a set E is a relation R that satisfies three properties: reflexivity, symmetry, and transitivity. These properties ensure that the relation behaves consistently and partitions the set into distinct, non-overlapping subsets 37.
- Reflexivity: For every element x in set E, x is related to itself (xRx).
- Symmetry: If element x is related to element y (xRy), then element y is also related to element x (yRx).
- Transitivity: If element x is related to element y (xRy) and element y is related to element z (yRz), then element x is also related to element z (xRz) 37.
8.2 Parallel lines as an equivalence relation
Consider the set E of all lines in a plane. The relation R defined by d1Rd2 ⇐⇒ d1 ∥ d2 (d1 is parallel to d2) is an equivalence relation.
- Reflexivity: A line is parallel to itself.
- Symmetry: If line d1 is parallel to line d2, then d2 is parallel to d1.
- Transitivity: If d1 is parallel to d2, and d2 is parallel to d3, then d1 is parallel to d3 37.
8.3 Congruence modulo n as an equivalence relation
For an integer n ≥ 2, the relation aRb ⇐⇒ a ≡ b (mod n) on the set of integers Z is an equivalence relation. This means n divides the difference (a - b).
- Reflexivity:
a - a = 0, and n divides 0. - Symmetry: If n divides
(a - b), then n also divides(b - a). - Transitivity: If n divides
(a - b)and n divides(b - c), then n divides(a - c)37.
8.4 Equivalence classes
For an equivalence relation R on a set E, the equivalence class of an element x, denoted by [x], is the set of all elements y in E such that y is related to x (yRx) 38.
- Modulo n equivalence class: For congruence modulo n, the equivalence class of an integer
ais[a] = {b ∈ Z: b ≡ a (mod n)}. - For example, modulo 3:
[0] = {..., −6, −3, 0, 3, 6,...}.[1] = {..., −5, −2, 1, 4, 7,...}.[2] = {..., −4, −1, 2, 5, 8,...}38.
8.5 Equivalence classes and partitions
The collection of all equivalence classes of an equivalence relation on a set E forms a partition of E. This means two conditions are met 38:
- Every element of E belongs to exactly one equivalence class.
- Any two distinct equivalence classes are either identical or completely disjoint (they have no elements in common).
- The union of all equivalence classes is equal to the entire set E:
E = ⋃_{x∈E} [x]38.
📝 Consider the relation
xRy ⇐⇒ 2x + yis divisible by 3 on the set of natural numbers N. This relation is an equivalence relation. The equivalence classes are[0],[1], and[2], where[0] = {y ∈ N: y ≡ 0 (mod 3)},[1] = {y ∈ N: y ≡ 1 (mod 3)}, and[2] = {y ∈ N: y ≡ 2 (mod 3)}. These three classes partition the set of natural numbers 39.
9. Order Relations
9.1 Partial order relation
A relation R on a set E is a partial order relation if it satisfies three properties: reflexivity, antisymmetry, and transitivity. When a set E and a partial order relation R are paired as (E, R), they form a partially ordered set, often denoted as a poset.
The symbol ⪯ is commonly used to represent an order relation 40.
- Reflexive: For every element x in E, x is related to itself (xRx).
- Antisymmetric: If x is related to y and y is related to x, then x must be equal to y (∀x, y ∈ E, (xRy and yRx) ⇒ x = y).
- Transitive: If x is related to y and y is related to z, then x is also related to z (∀x, y, z ∈ E, (xRy and yRz) ⇒ xRz) 40.
9.2 Examples of partially ordered sets 40 41
Several common mathematical structures serve as examples of partially ordered sets. These examples illustrate the abstract properties of order relations in concrete contexts.
| Set (E) | Relation (R) | Description |
|---|---|---|
| Real numbers (R) | ≤ | The usual order on real numbers |
| Positive integers (N*) | — | — |
| Power set of X (P(X)) | ⊆ | The inclusion relation on subsets of X |
© 2026 Maeve. All rights reserved. This content is protected by copyright.