Sets and Membership
What does it mean for one object to belong to a collection of objects? This question is simple to ask. Yet it took mathematicians centuries to answer with full rigor. The answer they arrived at — the primitive relation of membership — now underlies nearly all of modern mathematics. Every number, every function, every geometric figure, every mathematical structure of any kind is, in the end, built out of sets. It is built from sets and the membership relation between them. The idea matters because it gives mathematics a single, uniform foundation. Instead of having separate primitive notions for numbers, points, functions, and relations, we can encode all of them as sets. All mathematical statements reduce, in principle, to statements about membership. This unification is not merely aesthetic. It lets us prove things about "arbitrary mathematical objects" by proving things about sets. It also lets us pin down exactly what counts as a legitimate mathematical argument. The big picture is this: we take "set" and "is a member of" () as undefined primitive notions. These are governed by axioms — informally here, formally in systems like Zermelo–Fraenkel set theory. They are not governed by definitions in terms of something more basic. From these primitives, together with a handful of basic principles, we build up the entire hierarchy of mathematical objects. Most important among these principles is that sets are determined entirely by their members. This hierarchy includes pairs, relations, functions, numbers, and beyond. This article delivers a careful statement of what a set is. It explains what means, and states the fundamental Axiom of Extensionality governing set equality. It also gives worked examples distinguishing sets from their elements. These examples distinguish elements from subsets, and the empty set from sets containing it. It closes by connecting membership to the notions of Set-Builder Notation and Specification and Subsets and Set Inclusion. These topics build directly on the ideas developed here.
- A set is a collection of objects, called its elements or members; membership is written .
- "Set" and "" are primitive, undefined notions — we describe how they behave via axioms, not via a reduction to simpler concepts.
- Two sets are equal exactly when they have the same elements — this is the Axiom of Extensionality, and it is what makes "set" a rigorous notion rather than a vague one.
- Sets can contain sets as elements; a set and its elements are conceptually different levels ( is not the same relation as , and in general).
- The empty set has no members at all, and is unique by extensionality.
- Key idea: everything mathematics needs — pairs, functions, numbers — is eventually built from nothing but sets and the single relation between them.
Where this lives today
Set theory built from the primitive notions of "set" and "" is the working foundation for essentially all of contemporary pure mathematics: real numbers, functions, groups, topological spaces, and measure spaces are all, in careful treatments, defined as particular sets satisfying particular membership-based conditions. In mathematical logic, the membership relation is the sole non-logical primitive of Zermelo–Fraenkel set theory (ZF/ZFC), the dominant formal foundation used to check the consistency and provability of mathematical statements. In computer science, membership underlies the semantics of data types such as finite sets, hash sets, and relational database tables, where "is this record in the table" is literally a membership query; type theory and formal verification systems (e.g., proof assistants like Coq, Lean, and Isabelle) encode analogous membership judgments to check the correctness of proofs and programs. In combinatorics and discrete probability, sample spaces and events are modeled directly as sets with membership determining outcomes, and counting problems reduce to counting elements of explicitly or implicitly described sets. In philosophy of mathematics and logic, the primitive, axiom-governed status of is the central case study for what it means for a mathematical notion to be "foundational" rather than reducible to something simpler.
Ask the tutor: Why doesn't Russell's Paradox arise if we only ever form sets by Specification from an existing set, rather than from any arbitrary property?
Set and membership () are taken as primitive (undefined) notions of set theory. Informally:
- A set is a well-determined collection of objects.
- If is a set and is an object, the notation
is read " is an element of ," " is a member of ," or " belongs to ." Its negation is written . These notions are governed, not defined, by axioms. The single most important governing principle is:
Axiom of Extensionality. For all sets and ,
That is, two sets are equal if and only if they have exactly the same elements. In particular, a set is completely determined by what is in it — not by any order, repetition, or manner in which its elements are listed or described.
Basic notation. A finite set with known elements is written
The unique set with no elements at all is the empty set, denoted or , characterized by:
Intuition
The word "set" is meant to evoke the ordinary idea of a collection — a bag of marbles, a list of names, a group of numbers — but stripped of all incidental features. A set does not care about the order in which we list its elements, nor whether an element is listed more than once, nor how we happen to describe it. All that matters is which objects belong to it. This is precisely what Extensionality says: , , and are the very same set, because they all have exactly the elements , , and , and nothing else. A crucial and initially confusing point is that membership () is a relation between two objects, not a property of a single object, and it is fundamentally different from the relation of equality between sets. The number can be a member of a set, as in , but itself is not a set of numbers in the same sense — or if we regard as built from sets (as one does formally), it is still a different kind of question whether versus whether . Likewise, a set containing one element, like , is a different object from the element itself: , and indeed but in the usual sense (a number does not contain itself as a member). This distinction between an object and the singleton set containing that object is a common early trap and is examined below. Sets can also contain other sets as elements, and this is where the picture becomes genuinely powerful: since sets can be elements of other sets, we can build layered structures — sets of sets of sets, and so on — entirely out of and the membership relation. This is exactly the mechanism used to construct the natural numbers, ordered pairs, and eventually all of standard mathematics from set theory alone.
There is at most one set with no elements. That is, if and are sets such that
then .
We use the proof technique of vacuous biconditional verification, combined with the Axiom of Extensionality. By the Axiom of Extensionality (stated in Sets and Membership's definition block above), to show it suffices to show
Fix an arbitrary object . We must show , i.e. both directions of the biconditional. () Suppose . But by hypothesis, , so in particular — contradicting . Hence the supposition is false for every , and so the implication "" is vacuously true (a conditional with a false antecedent is true, regardless of the consequent). () Symmetrically, suppose . By hypothesis , so , contradicting . Hence is false for every , and the implication "" is vacuously true. Since both directions hold vacuously for the arbitrary we fixed, we conclude
holds for every — the biconditional is true in each direction, hence true overall, because was arbitrary and the argument used no facts about beyond its being an arbitrary object. By Extensionality, .
∎Since the empty set is postulated to exist (this existence is itself a basic axiom, the Axiom of Empty Set, not proved here but taken as a foundational postulate alongside Extensionality), and by the theorem above any two sets with no elements are equal, we are entitled to speak of the empty set and give it the single name .
Worked examples
Example 1 — Distinguishing membership from equality and from subset-like intuition. Let
This is a perfectly legitimate finite set with four elements: the number , the number , the set (which is itself a two-element set, but here appears as one element of ), and the empty set (which also appears as one element of ). Let us determine the truth value of several membership statements. 1. ? Yes. The object is explicitly listed as an element of . 2. ? Yes. The set , taken as a single object, is explicitly listed as an element of . This is true even though itself has two elements — what matters for is only whether the object (as a whole) is among the four listed elements of , and it is. 3. ? Yes, for the same reason as (2): is explicitly listed. 4. ? No. The object (the set whose sole element is ) is not one of the four listed elements of . Note carefully: is true, but is a different, false statement — this is exactly the object-versus-singleton distinction flagged in the Intuition section. 5. ? No. The number does not appear among the four listed elements. 6. How many elements does have? Exactly 4: namely , , , and . It is a common error to think has elements by "unpacking" — but counts as a single element of , since it is one object, regardless of how many elements it itself contains. Membership does not recurse automatically; asks only about the immediate, one-level elements of . This example illustrates the essential discipline of set theory: at every stage, one must ask "is this exact object one of the immediate elements of this exact set?" — nothing more, nothing less.
Example 2 — Extensionality resolves apparently different descriptions of "the same" set. Consider the two descriptions:
We claim , using Extensionality, even though and are given by completely different-looking descriptions (one by a defining property, one by an explicit list — this style of description by a property is formalized later as Set-Builder Notation and Specification, but we can already verify the equality directly here using only the primitive notion of membership). Verification, by Extensionality. We must show . First, solve the equation: , so the integer solutions are exactly and (these are the only two roots of a degree-2 polynomial, and both are integers, so both qualify). () Suppose . Then is an integer with , so , so or (since a product of real numbers is zero only if a factor is zero). In either case . () Suppose , i.e. or . If : , and is an integer, so . If : , and is an integer, so . Either way . Both directions hold for arbitrary , so for all , and by Extensionality . This is the essential point of Extensionality in practice: two sets that look utterly different in how they are presented are nonetheless the same set the moment they have exactly the same members — no more, no less. Set identity is entirely about membership content, never about the description used to specify the set.
One might be tempted to think two sets are equal only when they arise from the "same" defining description or the "same" list of elements written in the same order — but this is false, and dropping Extensionality (replacing it with a naive "same syntactic description" criterion) breaks basic reasoning about sets. Consider the two sets
These have syntactically different definitions: is defined by a property (evenness and a numerical range), while is defined by an explicit finite list. If we (incorrectly) required sets to be equal only when given by identical descriptions, we would be forced to conclude , since no purely syntactic matching identifies these two descriptions. But this conclusion is wrong, and it is exactly Extensionality that shows why: the even integers between and inclusive are precisely — a direct check confirms for every (verify: are each even and in range, hence in ; and no other integer in the range is even, hence nothing extra is in ). So by Extensionality , full stop, regardless of the difference in how they were described. If one instead adopted a hypothetical "set theory" where equality depended on matching descriptions rather than matching elements, then and would count as different objects even though every mathematician's intuition — and every application, such as summing "'s elements" versus "'s elements" — treats them as identical. Substitution of for in any true statement would then silently fail, breaking basic algebraic manipulation (e.g., and would not be interchangeable even though both equal ). This is precisely why Extensionality — membership-content equality, not description equality — is taken as an axiom: it is the feature that makes "set" behave the way our intuition, and all downstream mathematics, requires.
Scope, edge cases & common traps
| Situation | Correct treatment | Common trap |
|---|---|---|
| vs. | Different objects in general: , but typically | Conflating an object with the singleton set containing it |
| vs. | has 0 elements; has exactly 1 element (namely ) | Treating as "still empty" |
| Repeated listing, e.g. | Equals by Extensionality — repetition doesn't create new elements | Thinking has "three elements" |
| Order of listing, e.g. vs. | Equal sets by Extensionality — sets are unordered | Thinking order matters (that's a property of sequences, not sets) |
| where has itself as an element () | Excluded in standard (ZF-based) set theory by a further axiom (Foundation/Regularity), not discussed in depth here | Assuming self-membership is a routine possibility |
| Nested sets, e.g. vs. | These are logically independent statements; neither implies the other | Assuming membership "distributes" over nested sets |
The mathematician behind it
Origins · 1 minGeorg Cantor and how this was discovered
Georg Cantor developed the theory of sets in the 1870s–1880s while investigating the convergence of trigonometric (Fourier) series, a problem that led him to consider infinite collections of "exceptional points" and to compare their sizes rigorously. His work forced him to treat infinite collections as completed, well-defined mathematical objects in their own right — the informal ancestor of the modern notion of "set" — and to introduce the comparison of sets by one-to-one correspondence, which in turn revealed that not all infinities are the same size. Cantor's ideas were controversial in his lifetime, resisted by prominent contemporaries such as Leopold Kronecker, but were later vindicated and form the bedrock of set theory as an independent branch of mathematics, eventually formalized rigorously by Ernst Zermelo, Abraham Fraenkel, and others into the axiomatic systems used today.
Is "set" ever formally defined in terms of something simpler?
No — in standard treatments (such as Zermelo–Fraenkel set theory), "set" and the membership relation are taken as primitive, undefined notions. Just as geometry once took "point" and "line" as undefined terms governed by axioms, set theory takes "set" and "" as undefined terms governed by axioms like Extensionality, Pairing, Union, Power Set, and others. We do not define what a set "really is" in some more basic vocabulary; instead we specify, via axioms, what properties the relation must satisfy, and everything else about sets is derived logically from those axioms. This is standard practice in axiomatic systems: some notion must be primitive, or the definitions would regress infinitely.
Can a set contain itself as a member?
In the informal picture given here, nothing yet rules this out, but standard set theory (ZF) includes a further axiom, the Axiom of Foundation (Regularity), which implies no set can satisfy , and more generally rules out any infinite descending chain . This axiom is not needed to state Extensionality or basic membership facts, and is typically introduced separately once the reader is comfortable with itself. Historically, allowing unrestricted self-membership and unrestricted set formation is exactly what led to Russell's Paradox, so modern axiomatic systems are deliberately designed to prevent it.
Is the same object as the ordered pair ?
No. by Extensionality, since these unordered sets have identical elements regardless of listing order. But the ordered pair is meant to be different from — order matters for pairs but not for sets. Ordered pairs are, in fact, typically defined using only sets and membership (for instance via the Kuratowski definition ), precisely so that order can be recovered from an otherwise order-blind foundation. This construction, however, is a topic in its own right and goes beyond the membership basics covered here.
Does the order or repetition in notation matter at all?
Not for the identity of the set itself: by Extensionality, and , since in each case the collections of elements coincide exactly. The listing notation is just a convenient way to describe a set; many different lists can describe the very same set. This is different from data structures like lists or sequences in computer science, where order and repetition are meaningful and distinguishing — sets are deliberately a coarser, order-and-multiplicity-blind notion.
How is the empty set different from "nothing" or "no set at all"?
is a set — a fully legitimate mathematical object — it simply happens to be the (unique, by the theorem proved above) set that has no elements. This is different from there being no set whatsoever; exists and can itself be an element of other sets, e.g. is a well-defined set with exactly one element. Confusing "the empty set" with "nothing exists" is a common but important error: is true, while is false, and both statements are meaningful because is a genuine object of the theory.
Why does membership need axioms at all — isn't "collection of objects" clear enough?
Naive, completely unrestricted set formation (allowing any description to define a set) leads to contradictions, most famously Russell's Paradox: consider . Asking whether leads to , an outright logical contradiction. This shows that "collection of objects satisfying any property" cannot be treated as automatically forming a legitimate set. Axiomatic set theory responds by carefully restricting how sets may be formed (e.g., via Specification, applied only to elements of an already-given set, as developed in Set-Builder Notation and Specification), while keeping Extensionality and other structural axioms to govern set identity and construction safely.
What is the relationship between this article and subsets?
Membership () is the relation between an object and a set that contains it as one of its immediate elements. Subset () is a derived relation between two sets, defined using membership: means every element of is also an element of , i.e. . So subset-hood is built entirely out of membership, quantified over all elements — the two notions are related but distinct, and the common trap of confusing "" with "" (e.g. thinking and are "the same fact") is addressed directly in Subsets and Set Inclusion.