Sets and Logic · Siblings

Mathematics has several kinds of “a bunch of things,” which differ in whether order and repetition matter. A set ignores order and repetition. A multiset keeps repetition. A sequence keeps order and repetition. “Collection” is informal, and “group” is a technical term for a set with an operation.

Definitions

collection

Elementary

A collection is a group of objects considered together.

Graduate (set theory)

Collection is an informal word, used as a synonym for “set,” to produced for variety (e.g., “a collection of subsets”) or for classes that are too large to be sets (“the collection of all sets”).

Examples

set

Elementary

A set is a collection of different objects, called its elements. Order and repetition do not matter: $\setdef{1, 2}$, $\setdef{2, 1}$, and $\setdef{1, 1, 2}$ are the same set.

Graduate (axiomatic set theory)

A set is an object of a set theory such as ZFC. By the axiom of extensionality, a set is determined entirely by its elements.

Examples
Non-examples
Things that may be mistaken for examples of this term.
Properties
  • Not every collection is a set: the collection of all sets is not a set (Russell’s paradox).

sequence

Elementary

A sequence is a list of things in a particular order.

High school

A sequence is an ordered list of terms $a_1, a_2, a_3, \dots$ Both order and repetition matter: $(1, 2)$, $(2, 1)$, and $(1, 1, 2)$ are different sequences.

Undergraduate

A sequence is a function from $\nats$ (an infinite sequence) or from $\setdef{1, \dots, n}$ (a finite sequence, or $n$-tuple) to a set.

Examples
Non-examples
Things that may be mistaken for examples of this term.
  • $\setdef{1, 2, 3}$ is not a sequence, because a set has no order, but a sequence lists its terms in order.

multiset

High school

Consider a set, in which each element appears only once. A multiset is like a set, except that an element can appear more than once.

Undergraduate

A multiset is a collection in which order does not matter but repetition does. Formally, a function from a set to the positive integers that gives the multiplicity of each element.

Examples
Non-examples
Things that may be mistaken for examples of this term.

group

Undergraduate (abstract algebra)

Consider a set $G$ with a binary operation $\ast$. The set $G$ is a group if

  1. $\ast$ is associative: $(a \ast b) \ast c = a \ast (b \ast c)$ for all $a, b, c \in G$,
  2. $G$ has an identity element $e$ such that $e \ast g = g \ast e = g$ for all $g \in G$, and
  3. every element $g \in G$ has an inverse $g^{-1}$ such that $g \ast g^{-1} = g^{-1} \ast g = e$.
Examples
Non-examples
Things that may be mistaken for examples of this term.
  • $\nats$ with addition is not a group, because no positive integer has an additive inverse in $\nats$.
Properties
  • The identity element of a group is unique, and so is the inverse of each element.

indexed family

Undergraduate

Consider an index set $I$ and a set of values. An indexed family is a function $i \mapsto x_i$ from $I$ to the set, written \((x_i)_{i \in I}\). Unlike a set, an indexed family can repeat elements. A sequence is an indexed family with $I = \nats$.

Examples
  • $(1, 2, 2)$ is an indexed family, because it assigns a term to each index $1$, $2$, and $3$.

Examples

Example collection set sequence multiset group indexed family Why
$\setdef{1, 2, 2}$ ✓✓–✓––
collection: $\setdef{1, 2, 2}$ is a collection, and as a set it equals $\setdef{1, 2}$, with two elements.
multiset: As a multiset, it differs from $\setdef{1, 2}$.
$(1, 2, 2)$ –✗✓✗–✓
sequence: $(1, 2, 2)$ is a sequence of length three, because it lists its terms in order: it is different from $(2, 1, 2)$ and from $(1, 2)$.
indexed family: $(1, 2, 2)$ is an indexed family, because it assigns a term to each index $1$, $2$, and $3$.
The roots of $(x - 1)^2$ counted with multiplicity –✗–✓––
set: The roots of $(x - 1)^2$ counted with multiplicity does not form a set, which cannot count an element twice.
multiset: The roots of $(x - 1)^2$ counted with multiplicity form a multiset, in which the root $1$ appears twice.
$\integers$ with addition ––––✓–
group: The integers with addition form a group, because the sum of two integers is an integer, addition is associative, adding $0$ changes no integer ($0$ is the identity element), and adding $-n$ undoes adding $n$ ($-n$ is the inverse of $n$). The group is also commutative, because $m + n = n + m$.
$\nats$ with addition ––––✗–
group: $\nats$ with addition is not a group, because no positive integer has an additive inverse in $\nats$.
The class of all sets ✓✗––––
collection: The class of all sets is a collection.
set: The class of all sets is not a set, because treating it as one leads to Russell’s paradox.

See also

All distinctions · All definitions · Notation