{
  "id": "equivalence-class",
  "title": "Equivalence Class",
  "lang": "en",
  "source_lang": "en",
  "summary": "An equivalence class is the set of all elements equivalent to a given element under a specified equivalence relation.",
  "category": "mathematics",
  "subcategory": "discrete-logic",
  "type": "concept",
  "aliases": [
    "Equivalency class"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/equivalence-class/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/equivalence-class/",
      "json": "https://aiwiki.page/zh/equivalence-class.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "An equivalence class is a collection of elements of a set that are equivalent to one another under a specified equivalence relation. It treats objects that may differ individually as instances of the same object for a particular purpose. Equivalence classes provide a precise way to organize a set into nonoverlapping groups and to construct new mathematical objects from existing ones. They occur throughout set theory, algebra, analysis, and computer science. (cs.cornell.edu)"
    },
    {
      "heading": "Definition and notation",
      "text": "Let \\(X\\) be a set and let \\(\\sim\\) be an equivalence relation on \\(X\\). This is a binary relation satisfying three conditions: reflexivity, \\(x\\sim x\\); symmetry, \\(x\\sim y\\Rightarrow y\\sim x\\); and transitivity, \\(x\\sim y\\) and \\(y\\sim z\\Rightarrow x\\sim z\\). For \\(a\\in X\\), its equivalence class is the subset\n\n\\[[a]_{\\sim}=\\{x\\in X:x\\sim a\\}.\\]\n\nThe subscript is usually omitted when the relation is understood. Any member of a class is called a representative of that class. (pi.math.cornell.edu)\n\nA representative is not the class itself: \\(a\\) is an element of \\(X\\), whereas \\([a]\\) is a subset of \\(X\\). Different representatives can name the same class. Consequently, equivalence of elements and equality of classes are related by\n\n\\[a\\sim b\\quad\\Longleftrightarrow\\quad[a]=[b].\\]\n\nThe underlying set and relation are essential: changing either can change the class denoted by the same symbol. (jirka.org)"
    },
    {
      "heading": "Relationship with partitions",
      "text": "The equivalence classes of a relation form a partition of \\(X\\). Each class is nonempty because \\(a\\in[a]\\), every element belongs to a class, and two classes are either identical or disjoint. Thus every element belongs to exactly one distinct class. Conversely, any partition determines an equivalence relation by declaring two elements equivalent precisely when they belong to the same block. (pi.math.cornell.edu)\n\nThe disjointness assertion has a short proof. Suppose \\(c\\in[a]\\cap[b]\\). Then \\(c\\sim a\\) and \\(c\\sim b\\), so symmetry and transitivity imply \\(a\\sim b\\). If \\(x\\in[a]\\), transitivity gives \\(x\\sim b\\), hence \\([a]\\subseteq[b]\\). Reversing the argument gives the opposite inclusion. Therefore classes cannot partially overlap. Their sizes, however, need not be equal. (pi.math.cornell.edu)"
    },
    {
      "heading": "Quotient sets and induced functions",
      "text": "The quotient set is the set whose elements are the distinct equivalence classes:\n\n\\[X/{\\sim}=\\{[x]:x\\in X\\}.\\]\n\nThe canonical projection\n\n\\[\\pi:X\\longrightarrow X/{\\sim},\\qquad \\pi(x)=[x],\\]\n\nis a surjective function. Its fibers are exactly the equivalence classes: \\(\\pi(x)=\\pi(y)\\) precisely when \\(x\\sim y\\). Passing to the quotient therefore identifies equivalent elements without choosing a preferred representative. (pi.math.cornell.edu)\n\nA rule defined using representatives must be independent of their choice. Given a function \\(f:X\\to Y\\), the formula\n\n\\[\\bar f([x])=f(x)\\]\n\ndefines a well-defined function exactly when \\(x\\sim y\\) implies \\(f(x)=f(y)\\). When this condition holds, \\(\\bar f\\) is unique and \\(f=\\bar f\\circ\\pi\\). This factorization expresses a universal property of the quotient set. It is also the basic test used when defining operations on classes. (pi.math.cornell.edu)"
    },
    {
      "heading": "Numerical examples",
      "text": "In modular arithmetic, two integers are equivalent modulo a positive integer \\(n\\) when their difference is divisible by \\(n\\). The class of \\(a\\) is\n\n\\[[a]=a+n\\mathbb Z=\\{a+kn:k\\in\\mathbb Z\\}.\\]\n\nModulo \\(3\\), for example, \\([1]\\) contains \\(\\ldots,-5,-2,1,4,7,\\ldots\\). There are exactly three classes, represented by \\(0,1,2\\). More generally, \\(0,\\ldots,n-1\\) provide one representative per class. Addition and multiplication of representatives induce operations on these classes. (pi.math.cornell.edu)\n\nRational numbers can be constructed from ordered pairs of integers \\((a,b)\\), with \\(b\\ne0\\), by defining\n\n\\[(a,b)\\sim(c,d)\\quad\\Longleftrightarrow\\quad ad=bc.\\]\n\nThus \\((1,2)\\), \\((2,4)\\), and \\((-3,-6)\\) belong to one class. The rational number is the class, while the different fractions are representations of it. This construction separates a numerical value from the notation used to express it. (pi.math.cornell.edu)\n\nOne construction of the real numbers uses classes of rational Cauchy sequences. Two such sequences \\((a_k)\\) and \\((b_k)\\) are equivalent when their difference has limit zero:\n\n\\[a_k-b_k\\longrightarrow0.\\]\n\nEach class becomes a real number. Termwise addition and multiplication define operations on classes because replacing either sequence by an equivalent one leaves the resulting class unchanged. (pi.math.cornell.edu)"
    },
    {
      "heading": "Vector spaces and counting",
      "text": "For a vector space \\(V\\) and a linear subspace \\(W\\), define \\(v\\sim u\\) when \\(v-u\\in W\\). The class of \\(v\\) is the coset\n\n\\[v+W=\\{v+w:w\\in W\\}.\\]\n\nThese classes form the quotient vector space \\(V/W\\), with addition \\((v+W)+(u+W)=(v+u)+W\\). Its zero element is the entire class \\(W\\). For finite-dimensional \\(V\\), its dimension is \\(\\dim V-\\dim W\\). (math.stanford.edu)\n\nIn combinatorics, equivalence classes prevent multiple representations from being counted as different objects. Ordered lists of \\(k\\) distinct elements can be declared equivalent when they contain the same elements, regardless of order. Every class then has \\(k!\\) members, and the classes correspond to \\(k\\)-element subsets. For a finite set \\(X\\) partitioned into classes of a common size \\(m\\), the number of classes is \\(|X|/m\\). This division rule does not apply unchanged when class sizes differ. (discrete.openmathbooks.org)"
    }
  ],
  "links": [
    "equivalence-relation",
    "set-theory",
    "binary-relation",
    "subset",
    "set-partition",
    "mathematical-proof",
    "quotient-set",
    "surjective-function",
    "mathematical-function",
    "universal-property",
    "modular-arithmetic",
    "integer",
    "rational-number",
    "fraction",
    "real-number",
    "cauchy-sequence",
    "limit",
    "vector-space",
    "linear-subspace",
    "coset",
    "quotient-vector-space",
    "dimension-vector-space",
    "combinatorics"
  ],
  "sources": [
    {
      "title": "cs.cornell.edu/courses/cs2800/2017fa/lectures/lec19-equivalence.html",
      "url": "https://www.cs.cornell.edu/courses/cs2800/2017fa/lectures/lec19-equivalence.html"
    },
    {
      "title": "pi.math.cornell.edu/~kassabov/math4330.fall19/cornell-only/EquivRel.pdf",
      "url": "https://pi.math.cornell.edu/~kassabov/math4330.fall19/cornell-only/EquivRel.pdf"
    },
    {
      "title": "jirka.org/ra/realanal.pdf",
      "url": "https://jirka.org/ra/realanal.pdf"
    },
    {
      "title": "pi.math.cornell.edu/~web304/reals.pdf",
      "url": "https://pi.math.cornell.edu/~web304/reals.pdf"
    },
    {
      "title": "math.stanford.edu/~conrad/diffgeomPage/handouts/qtvector.pdf",
      "url": "https://math.stanford.edu/~conrad/diffgeomPage/handouts/qtvector.pdf"
    },
    {
      "title": "discrete.openmathbooks.org/more/mdm/sec_basic-quotient.html",
      "url": "https://discrete.openmathbooks.org/more/mdm/sec_basic-quotient.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}