Skip to content

Definition

  • A set is an unordered collection of distinct objects, called elements or members of the set.
  • We write aA to denote that a is an element of the set A.
  • The notation aA denotes that a is not an element of the set A.

Representation

Enumerate

V={a,e,i,o,u}

Set builder

O={xx is an odd positive integer less than 10}

Venn Diagrams

image.png

Set Equality

  • Two sets are equal if and only if they have the same elements.
  • We write A=B if A and B are equal sets.
  • Therefore, if A and B are sets, then A and B are equal if and only if
A=Bx(xAxB)

TIP

To show that two sets A and B are equal, show that AB and BA

Empty set

  • Empty set (null set): a special set that has no elements
  • Notation: S={} OR 
  • Example: the set of all positive integers that are greater than their squares is the null set

Singleton set

  • Singleton set: A set with one element is called a singleton set
  • Example: {} has one more element than

Subsets

  • The set A is a subset of B, and B is a superset of A, if and only if every element of A is also an element of B.
  • We use the notation AB to indicate that A is a subset of the set B.
  • If, instead, we want to stress that B is a superset of A, we use the equivalent notation BA
  • We see that A ⊆ B if and only if the quantification:
x(xAxB) is true

Proper subset

  • That a set A is a subset of a set B but that AB
AB
  • That is, A is a proper subset of B if and only if
x(xAxB)x(xBxA) is true

Theorem 1

For every set S,  (i) S(ii) SS
  • Proof: We will prove (i )
    • Let S be a set.
    • To show that S, we must show that:
      • x(xxS) is true.
    • Because the empty set contains no elements, it follows that x is always false.
    • It follows that the conditional statement xxS is always true, because its hypothes is always false and a conditional statement with a false hypothesis is true.
    • Note that this is an example of a vacuous proof.

The Size of a Set

  • Let S be a set. If there are exactly n distinct elements in S where n is a non-negative integer,
  • we say that S is a finite set and that n is the cardinality of S.
  • The cardinality of S is denoted by
|S|

Power Sets

  • Given a set S, the power set of S is the set of all subsets of the set S.
  • The power set of S is denoted by
P{S}|P(S)|=2|S|
  • Example: The power set P({0,1,2}) is the set of all subsets of {0,1,2}. Hence, P({0,1,2})={,{0},{1},{2},{0,1},{0,2},{1,2},{0,1,2}}.

Cartesian Products

Ordered n-tuples

  • The ordered n-tuple (a1,a2,,an) is the ordered collection that has a1 as its first element, a2 as its second element, … , and an as its nth element.
  • Let A and B be sets. The Cartesian product of A and B, denoted by A×B, is the set of all ordered pairs (a, b), where a ∈ A and b ∈ B.
  • Hence,
A×B={(a,b)aAbB}

WARNING

Note that the Cartesian products A × B and B × A are not equal unless A= or B= or A=B

Generally for product of multiple sets

  • We denote A1×A2××An , is the set of ordered n-tuples (a1,a2,,an), where aibelongs to Ai for i = 1, 2, … , n.
  • In other words,
A1×A2××An={(a1,a2,,an)aiAi for i=1,2,,n}

Using Set Notation with Quantifiers

  • We restrict the domain of a quantified statement explicitly by making use of a particular notation
xS(P(x))
  • denotes the universal quantification of P(x) over all elements in the set S
  • Ex: xR(x20)

Truth Sets and Quantifiers

  • We will now tie together concepts from set theory and from predicate logic.
  • Given a predicate P, and a domain D, we define the truth set of P to be the set of elements x in D for which P(x) is true.
  • The truth set of P(x) is denoted by
{xDP(x)}
  • What are the truth sets of the predicates P(x) where the domain is the set of integers and P(x) is “|x| = 1,” . ⇒ The truth set of P, {xZ|x|=1}, we see that the truth set of P is the set

  • Note that xP(x) is true over the domain U if and only if the truth set of P is the set U.

  • Likewise, xP(x) is true over the domain U if and only if the truth set of P is nonempty.

Released under the MIT License.