upgrade
upgrade

๐Ÿค”Mathematical Logic

Key Set Theory Notation

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

Set theory notation is the foundation of mathematical logicโ€”it's the language you'll use to express everything from basic membership claims to complex proofs. When you encounter problems involving relations, functions, probability, or formal reasoning, you're working with sets whether you realize it or not. The notation covered here appears constantly in exam questions, and understanding it fluently means you can parse problem statements quickly and express your reasoning precisely.

But here's what really matters for your exam: you're being tested on your ability to use these symbols correctly in context, not just recognize them. Can you translate between set-builder notation and roster notation? Do you know when to use โІ\subseteq versus โŠ‚\subset? Can you compute a Cartesian product or power set without hesitation? Don't just memorize symbolsโ€”know what operation or relationship each one represents and when to apply it.


Membership and Basic Set Notation

These symbols establish the fundamental vocabulary of set theoryโ€”how we define sets and describe what's in them. Master these first, as every other concept builds on membership relationships.

Set Notation: { }

  • Curly braces define a setโ€”the most basic way to collect distinct objects into a single mathematical entity
  • Order is irrelevant and duplicates collapseโ€”{1,2,3}={3,1,2}={1,1,2,3}\{1, 2, 3\} = \{3, 1, 2\} = \{1, 1, 2, 3\}, a key distinction from sequences or lists
  • Roster notation lists elements explicitly, making it ideal for finite sets with enumerable members

Element Of: โˆˆ

  • Indicates membership in a setโ€”if A={1,2,3}A = \{1, 2, 3\}, then 2โˆˆA2 \in A reads "2 is an element of A"
  • Connects individual objects to collectionsโ€”this is the fundamental relationship in all of set theory
  • Appears in quantified statementsโ€”you'll see xโˆˆSx \in S constantly in definitions, theorems, and proof structures

Not an Element Of: โˆ‰

  • Negates membershipโ€”if A={1,2,3}A = \{1, 2, 3\}, then 4โˆ‰A4 \notin A states that 4 is not in the set
  • Essential for proofs by contradictionโ€”showing xโˆ‰Ax \notin A often requires demonstrating that xx fails some defining property
  • Clarifies set boundariesโ€”explicitly stating non-membership prevents ambiguity in formal arguments

Set-Builder Notation: {x | P(x)}

  • Defines sets by properties rather than listingโ€”{xโˆฃx>0}\{x \mid x > 0\} describes all positive numbers without enumeration
  • The vertical bar means "such that"โ€”read {xโˆฃP(x)}\{x \mid P(x)\} as "the set of all xx such that P(x)P(x) is true"
  • Critical for infinite setsโ€”you can't list all integers, but {nโˆฃnโˆˆZ}\{n \mid n \in \mathbb{Z}\} captures them precisely

Compare: Roster notation {1,2,3}\{1, 2, 3\} vs. set-builder notation {xโˆฃxโˆˆZ,1โ‰คxโ‰ค3}\{x \mid x \in \mathbb{Z}, 1 \leq x \leq 3\}โ€”both describe the same set, but set-builder scales to infinite collections. If an FRQ asks you to "describe the set of all even integers," set-builder is your only option.


Subset Relationships

Understanding containment between sets is crucial for proofs and logical arguments. These symbols describe when one set "fits inside" anotherโ€”a hierarchical relationship that forms the backbone of mathematical structure.

Subset: โІ

  • Every element of AA is also in BBโ€”written AโІBA \subseteq B, this allows for the possibility that A=BA = B
  • Every set is a subset of itselfโ€”AโІAA \subseteq A is always true, a reflexive property you'll use in proofs
  • The empty set is a subset of everythingโ€”โˆ…โІA\emptyset \subseteq A for any set AA, a fact that often appears in exam questions

Proper Subset: โŠ‚

  • Subset but not equalโ€”AโŠ‚BA \subset B means all elements of AA are in BB, but BB contains at least one element not in AA
  • Implies strict containmentโ€”if A={1,2}A = \{1, 2\} and B={1,2,3}B = \{1, 2, 3\}, then AโŠ‚BA \subset B but AโŠ‚ฬธAA \not\subset A
  • Watch notation variationsโ€”some texts use โŠ‚\subset for any subset and โŠŠ\subsetneq for proper subsets; know your course's convention

Compare: โІ\subseteq vs. โŠ‚\subsetโ€”the difference is whether equality is allowed. Think of it like โ‰ค\leq vs. << for numbers. This distinction matters in proofs: showing AโŠ‚BA \subset B requires demonstrating both AโІBA \subseteq B and Aโ‰ BA \neq B.


Set Operations

These operations let you build new sets from existing ones. Mastering union, intersection, difference, and complement gives you the tools to manipulate sets algebraicallyโ€”essential for solving problems and constructing proofs.

Union: โˆช

  • Combines all elements from both setsโ€”AโˆชBA \cup B contains everything in AA, everything in BB, with duplicates removed automatically
  • Example: If A={1,2}A = \{1, 2\} and B={2,3}B = \{2, 3\}, then AโˆชB={1,2,3}A \cup B = \{1, 2, 3\}
  • Corresponds to logical ORโ€”xโˆˆAโˆชBx \in A \cup B means xโˆˆAx \in A or xโˆˆBx \in B (or both)

Intersection: โˆฉ

  • Captures only shared elementsโ€”AโˆฉBA \cap B contains elements that appear in both AA and BB
  • Example: If A={1,2}A = \{1, 2\} and B={2,3}B = \{2, 3\}, then AโˆฉB={2}A \cap B = \{2\}
  • Corresponds to logical ANDโ€”xโˆˆAโˆฉBx \in A \cap B means xโˆˆAx \in A and xโˆˆBx \in B

Set Difference: \

  • Elements in one set but not the otherโ€”Aโˆ–BA \setminus B (or Aโˆ’BA - B) contains elements of AA that aren't in BB
  • Example: If A={1,2,3}A = \{1, 2, 3\} and B={2,3}B = \{2, 3\}, then Aโˆ–B={1}A \setminus B = \{1\}
  • Not commutativeโ€”Aโˆ–Bโ‰ Bโˆ–AA \setminus B \neq B \setminus A in general, unlike union and intersection

Complement: AcA^c or Aโ€ฒA'

  • Everything not in the setโ€”AcA^c contains all elements of the universal set UU that aren't in AA
  • Example: If U={1,2,3,4}U = \{1, 2, 3, 4\} and A={1,2}A = \{1, 2\}, then Ac={3,4}A^c = \{3, 4\}
  • Requires a universal setโ€”complement is meaningless without specifying what "everything" means in context

Compare: Set difference Aโˆ–BA \setminus B vs. complement AcA^cโ€”difference is relative to another specific set, while complement is relative to the universal set. If B=UB = U, then Aโˆ–B=โˆ…A \setminus B = \emptyset but AcA^c depends only on AA and UU.


Special Sets

These sets have unique properties that make them foundational to set theory. Recognizing them and understanding their roles will help you avoid common errors and handle edge cases in proofs.

Empty Set: โˆ… or { }

  • Contains no elementsโ€”the unique set with cardinality zero, written โˆ…\emptyset or {}\{\}
  • Subset of every setโ€”โˆ…โІA\emptyset \subseteq A is vacuously true for any AA, a crucial fact for proofs
  • Identity element for unionโ€”Aโˆชโˆ…=AA \cup \emptyset = A; also Aโˆฉโˆ…=โˆ…A \cap \emptyset = \emptyset for any set AA

Universal Set: U

  • Contains all elements under considerationโ€”defines the "universe of discourse" for a given problem
  • Context-dependentโ€”in number theory UU might be Z\mathbb{Z}; in probability, it's the sample space
  • Makes complements meaningfulโ€”Ac=Uโˆ–AA^c = U \setminus A, so always identify UU before computing complements

Compare: โˆ…\emptyset vs. UUโ€”these are opposites in a sense. The empty set is a subset of everything; the universal set contains everything. Both are unique in their contexts, and confusing them is a common exam mistake.


Advanced Constructions

These notations let you build more complex mathematical objects from setsโ€”ordered pairs, all possible subsets, and size comparisons. They're essential for understanding relations, functions, and combinatorics.

Cartesian Product: ร—

  • Creates ordered pairs from two setsโ€”Aร—B={(a,b)โˆฃaโˆˆA,bโˆˆB}A \times B = \{(a, b) \mid a \in A, b \in B\}
  • Example: If A={1,2}A = \{1, 2\} and B={x,y}B = \{x, y\}, then Aร—B={(1,x),(1,y),(2,x),(2,y)}A \times B = \{(1, x), (1, y), (2, x), (2, y)\}
  • Order matters hereโ€”(1,x)โ‰ (x,1)(1, x) \neq (x, 1), and Aร—Bโ‰ Bร—AA \times B \neq B \times A unless A=BA = B

Power Set: P(A)

  • Set of all subsetsโ€”P(A)\mathcal{P}(A) includes โˆ…\emptyset, AA itself, and every subset in between
  • Cardinality formula: If โˆฃAโˆฃ=n|A| = n, then โˆฃP(A)โˆฃ=2n|\mathcal{P}(A)| = 2^nโ€”memorize this for quick calculations
  • Example: If A={1,2}A = \{1, 2\}, then P(A)={โˆ…,{1},{2},{1,2}}\mathcal{P}(A) = \{\emptyset, \{1\}, \{2\}, \{1, 2\}\}

Cardinality: |A|

  • Counts elements in a setโ€”โˆฃAโˆฃ|A| gives the "size" of set AA
  • Example: If A={1,2,3}A = \{1, 2, 3\}, then โˆฃAโˆฃ=3|A| = 3; also โˆฃโˆ…โˆฃ=0|\emptyset| = 0
  • Useful formulas: โˆฃAโˆชBโˆฃ=โˆฃAโˆฃ+โˆฃBโˆฃโˆ’โˆฃAโˆฉBโˆฃ|A \cup B| = |A| + |B| - |A \cap B| (inclusion-exclusion principle)

Compare: Cartesian product vs. power setโ€”both generate new sets, but Aร—BA \times B creates pairs from two sets while P(A)\mathcal{P}(A) creates subsets from one set. For โˆฃAโˆฃ=2|A| = 2 and โˆฃBโˆฃ=2|B| = 2: โˆฃAร—Bโˆฃ=4|A \times B| = 4 but โˆฃP(A)โˆฃ=4|\mathcal{P}(A)| = 4 as wellโ€”same number, completely different structures.


Quick Reference Table

ConceptKey Symbols
Membershipโˆˆ\in, โˆ‰\notin
Set definition{}\{ \}, {xโˆฃP(x)}\{x \mid P(x)\}
Subset relationshipsโІ\subseteq, โŠ‚\subset
Combining setsโˆช\cup (union), โˆฉ\cap (intersection)
Removing elementsโˆ–\setminus (difference), AcA^c (complement)
Special setsโˆ…\emptyset (empty), UU (universal)
Building structuresร—\times (Cartesian product), P(A)\mathcal{P}(A) (power set)
Measuring sets$$

Self-Check Questions

  1. If A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, compute AโˆชBA \cup B, AโˆฉBA \cap B, and Aโˆ–BA \setminus B. Which operation corresponds to logical AND?

  2. Explain the difference between AโІBA \subseteq B and AโŠ‚BA \subset B. Give an example where AโІBA \subseteq B is true but AโŠ‚BA \subset B is false.

  3. If โˆฃAโˆฃ=3|A| = 3, how many elements are in P(A)\mathcal{P}(A)? List all subsets of A={a,b,c}A = \{a, b, c\} to verify your answer.

  4. Compare and contrast set difference (Aโˆ–BA \setminus B) and complement (AcA^c). Under what conditions would Aโˆ–B=AcA \setminus B = A^c?

  5. Write the set of all even positive integers less than 10 using both roster notation and set-builder notation. Which notation would you use for "all even positive integers"? Why?