🤔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 2A2 \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 xSx \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 4A4 \notin A states that 4 is not in the set
  • Essential for proofs by contradiction—showing xAx \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{xx>0}\{x \mid x > 0\} describes all positive numbers without enumeration
  • The vertical bar means "such that"—read {xP(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 {nnZ}\{n \mid n \in \mathbb{Z}\} captures them precisely

Compare: Roster notation {1,2,3}\{1, 2, 3\} vs. set-builder notation {xxZ,1x3}\{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 ABA \subseteq B, this allows for the possibility that A=BA = B
  • Every set is a subset of itselfAAA \subseteq A is always true, a reflexive property you'll use in proofs
  • The empty set is a subset of everythingA\emptyset \subseteq A for any set AA, a fact that often appears in exam questions

Proper Subset: ⊂

  • Subset but not equalABA \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 ABA \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 ABA \subset B requires demonstrating both ABA \subseteq B and ABA \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 setsABA \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 AB={1,2,3}A \cup B = \{1, 2, 3\}
  • Corresponds to logical ORxABx \in A \cup B means xAx \in A or xBx \in B (or both)

Intersection: ∩

  • Captures only shared elementsABA \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 AB={2}A \cap B = \{2\}
  • Corresponds to logical ANDxABx \in A \cap B means xAx \in A and xBx \in B

Set Difference: \

  • Elements in one set but not the otherABA \setminus B (or ABA - 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 AB={1}A \setminus B = \{1\}
  • Not commutativeABBAA \setminus B \neq B \setminus A in general, unlike union and intersection

Complement: AcA^c or AA'

  • Everything not in the setAcA^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 ABA \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 AB=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 setA\emptyset \subseteq A is vacuously true for any AA, a crucial fact for proofs
  • Identity element for unionA=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 meaningfulAc=UAA^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 setsA×B={(a,b)aA,bB}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×BB×AA \times B \neq B \times A unless A=BA = B

Power Set: P(A)

  • Set of all subsetsP(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 setA|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: AB=A+BAB|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{}\{ \}, {xP(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 ABA \cup B, ABA \cap B, and ABA \setminus B. Which operation corresponds to logical AND?

  2. Explain the difference between ABA \subseteq B and ABA \subset B. Give an example where ABA \subseteq B is true but ABA \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 (ABA \setminus B) and complement (AcA^c). Under what conditions would AB=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?

Key Set Theory Notation to Know for Mathematical Logic