Differences between revisions 5 and 6
Revision 5 as of 2026-02-09 16:18:18
Size: 3193
Comment: Notes
Revision 6 as of 2026-02-09 17:24:38
Size: 3590
Comment: Clarifications
Deletions are marked like this. Additions are marked like this.
Line 105: Line 105:
The finite case is intuitive. Consider the finite set ''A'' which contains natural numbers up to ''n'' (i.e., ''{1,2,...,n}''. The cardinality of ''A'' is ''n'': ''|A| = n''. The '''countable''' case is intuitive. Consider the finite set ''A'' which contains natural numbers up to ''n'' (i.e., ''{1,2,...,n}''. The cardinality of ''A'' is ''n'': ''|A| = n''.
Line 108: Line 108:
 * If an [[Analysis/Injectivity|injective]] function exists such that ''f : A -> B'', then ''AB''.
 * If a [[Analysis/Surjectivity|bijective]] function exists such that ''f : A -> B'', then ''A = B''.
 * If ''AB'' but ''A != B'', then clearly ''A < B''.
 * If an [[Analysis/Injectivity|injective]] function exists such that ''f : A -> B'', then ''|A||B|''.
 * If a [[Analysis/Surjectivity|bijective]] function exists such that ''f : A -> B'', then ''|A| = |B|''.
   * More formally: if injective functions ''f : A -> B'' and ''g : B -> A'' exist, then ''|A| ≤ |B|'' and ''|B| ≤ |A|'', and finally ''|A| = |B|''. This is the '''Cantor-Schröder-Bernstein theorem'''.
 *
If ''|A||B|'' but ''|A| != |B|'', then clearly ''|A| < |B|''.

If ''|A| = |N|'' (i.e., ''A'' can be mapped to the natural numbers), then ''A'' is '''countably infinite'''. Otherwise an infinite set is '''uncountable'''.

Sets

Sets are a collection of members.


Description

A set is a collection of members. Generally, sets are defined and notated like {a,b,c}.

A set can also be defined by a condition. For example, {x ∈ R | x > 0} should be read as the set of all real values greater than 0.

The empty set is notated Ø.

Commonly Used Sets

The commonly re-used notations for basic sets of numbers are:

  • Natural numbers (N)

  • Integers (Z)

  • Rational numbers (Q)

  • Real numbers (R)


Logic

Membership

a ∈ A means a is a member of A. Conversely, a ∉ A means a is not a member of A.

Subsets

A ⊆ B means that A is a subset of B. ∀ a ((a ∈ A) -> (a ∈ B)).

This leads to a test for set equality: if A ⊆ B and B ⊆ A.

If A ⊆ B and A != B, then A is a proper subset of B. This is notated as either A ⊂ B or A ⊊ B.

The reverse relation could be notated as B ⊇ A, B ⊃ A, and so on.

Complements

The complement of A contains all elements that are not members of A. This is usually notated as Ac.

Taking the complement is an involution: (Ac)c = A.


Operations

The union of two sets contains all members of both. A ⋃ B = {x | x ∈ A or x ∈ B}.

The union of all subsets Ai can be expressed as:

union.svg

The intersection of two sets contains all members that are common between the two. A ⋂ B = {x | x ∈ A and x ∈ B}.

The intersection of all subsets Ai can be expressed as:

intersection.svg

A pair of sets are disjoint if there is no intersection, i.e., A ⋂ B = ∅.

The set difference of A with respect to B contains all members in A that are not in B. A \ B = {x ∈ A | x ∉ B}.

Properties

Let U be the universe of set A. It is always true that A ⋂ Ac = ∅ and A ⋃ Ac = U. Furthermore, c = U and Uc = ∅.

De Morgan's laws prove that:

  • (A ⋂ B)c = Ac ⋃ Bc

  • (A ⋃ B)c = Ac ⋂ Bc

For set differences, ∅ has an identity property. A \ ∅ = A.

Lastly, note that Ac \ Bc = B \ A.


Cardinality

Cardinality is an extension of the concept of size, such that it is applicable to infinite sets.

The countable case is intuitive. Consider the finite set A which contains natural numbers up to n (i.e., {1,2,...,n}. The cardinality of A is n: |A| = n.

This is generalized to infinite sets by functions. Given two sets A and B:

  • If an injective function exists such that f : A -> B, then |A| ≤ |B|.

  • If a bijective function exists such that f : A -> B, then |A| = |B|.

    • More formally: if injective functions f : A -> B and g : B -> A exist, then |A| ≤ |B| and |B| ≤ |A|, and finally |A| = |B|. This is the Cantor-Schröder-Bernstein theorem.

  • If |A| ≤ |B| but |A| != |B|, then clearly |A| < |B|.

If |A| = |N| (i.e., A can be mapped to the natural numbers), then A is countably infinite. Otherwise an infinite set is uncountable.


CategoryRicottone

Analysis/Sets (last edited 2026-02-23 17:30:13 by DominicRicottone)