Fact-checked by Grok 2 weeks ago

Symmetric difference

In , the symmetric difference of two sets A and B, denoted A \Delta B, is the set consisting of all elements that belong to exactly one of A or B, but not to both; formally, A \Delta B = (A \setminus B) \cup (B \setminus A). This operation can also be expressed as A \Delta B = (A \cup B) \setminus (A \cap B), highlighting its relation to union and intersection by excluding shared elements. The symmetric difference possesses several key algebraic properties that make it a fundamental binary operation on sets. It is commutative, meaning A \Delta B = B \Delta A, and associative, so (A \Delta B) \Delta C = A \Delta (B \Delta C) for any sets A, B, and C. The empty set \emptyset serves as the identity element, since A \Delta \emptyset = A, and each set is its own inverse, as A \Delta A = \emptyset. These properties endow the power set of any universal set X (the collection of all subsets of X) with the structure of an abelian group under symmetric difference, where the operation corresponds to vector addition modulo 2 when viewing subsets as vectors in \{0,1\}^X. Furthermore, symmetric difference interacts meaningfully with other set operations and extends to broader mathematical contexts. When paired with intersection as multiplication, it forms a Boolean ring on the power set, satisfying distributive laws such as A \Delta (B \cap C) = (A \Delta B) \cap (A \Delta C). In measure theory, the symmetric difference defines a on the of measurable sets, d(A, B) = \mu(A \Delta B), where \mu is a measure, quantifying the "distance" between sets by their differing measure. Applications appear in , such as database queries and error-correcting codes, where it models exclusive-or (XOR) operations on bit vectors, and in topology, for studying symmetric difference topologies on families of sets.

Definition and Notation

Definition

In set theory, the symmetric difference of two sets A and B is the set consisting of elements that belong to exactly one of A or B, but not to both. This operation captures the elements unique to each set, excluding their shared elements. Formally, the symmetric difference, denoted A \Delta B, is defined as A \Delta B = \{ x \mid (x \in A \land x \notin B) \lor (x \notin A \land x \in B) \}. An equivalent set-theoretic expression is A \Delta B = (A \cup B) \setminus (A \cap B), where \cup denotes union and \cap denotes intersection. For example, if A = \{1, 2, 3\} and B = \{3, 4\}, then A \Delta B = \{1, 2, 4\}. This operation serves as the set analog of the (XOR) in logic.

Notation and Equivalent Expressions

The symmetric difference of two sets A and B is commonly denoted by A \Delta B. In logical and computer science contexts, the notation A \oplus B is also standard, reflecting its correspondence to the exclusive-or operation. Less frequently, it is written as \mathrm{Sym}(A, B). Equivalent expressions for the symmetric difference can be formulated using basic set operations. One standard form is the union of the set differences: A \Delta B = (A \setminus B) \cup (B \setminus A) This captures the elements unique to each set. Another equivalent expression employs complements relative to a universal set U: A \Delta B = (A \cap B^c) \cup (B \cap A^c) where ^c denotes the complement. These formulations are interderivable, as A \setminus B = A \cap B^c. The symmetric difference corresponds directly to the exclusive-or (XOR) operation in the two-element \{0,1\} with addition modulo 2. To derive this equivalence, consider the s \chi_A and \chi_B of sets A and B, which map elements of the to 1 if in the set and 0 otherwise. The characteristic function of A \Delta B satisfies \chi_{A \Delta B}(x) = \chi_A(x) + \chi_B(x) \pmod{2}, which is precisely the XOR : it yields 1 if exactly one of \chi_A(x) or \chi_B(x) is 1, and 0 otherwise. This connection underscores the symmetric difference's role as the addition in the structure on the power set.

Properties

Elementary Properties

The symmetric difference operation on sets is commutative: for any sets A and B, A \Delta B = B \Delta A. This holds because an element x belongs to A \Delta B if and only if it is in exactly one of A or B, a condition that remains unchanged when A and B are swapped. The operation is also associative: (A \Delta B) \Delta C = A \Delta (B \Delta C) for any sets A, B, and C. To verify this, consider an arbitrary element x. The element x lies in the left-hand side if it belongs to an odd number of the sets among A, B, and C, as each symmetric difference step toggles membership based on parity (exclusive or). The same parity condition applies to the right-hand side, independent of grouping, ensuring equality. The acts as the neutral (: A \Delta \emptyset = A for any set A. Elements in A appear in exactly one set (A itself), while elements outside A appear in none, matching A's membership. Relatedly, every set is self-inverse under symmetric difference: A \Delta A = \emptyset, so A serves as its own , returning to the identity when "added" to itself. To illustrate associativity, take A = \{1, 2\}, B = \{2, 3\}, and C = \{3, 4\}. Then A \Delta B = \{1, 3\} and (A \Delta B) \Delta C = \{1, 3\} \Delta \{3, 4\} = \{1, 4\}. Similarly, B \Delta C = \{2, 4\} and A \Delta (B \Delta C) = \{1, 2\} \Delta \{2, 4\} = \{1, 4\}, confirming both sides match.

Algebraic Structure

The power set \mathcal{P}(U) of a universe U, equipped with the symmetric difference operation \Delta and the empty set \emptyset as the identity element, forms an abelian group (\mathcal{P}(U), \Delta, \emptyset). Closure holds because for any A, B \subseteq U, the symmetric difference A \Delta B = (A \setminus B) \cup (B \setminus A) is a subset of U, hence an element of \mathcal{P}(U). Associativity follows from the set-theoretic identity (A \Delta B) \Delta C = A \Delta (B \Delta C), as established in elementary properties. The empty set serves as the identity since A \Delta \emptyset = A for any A \subseteq U. Each element is its own inverse because A \Delta A = \emptyset. Commutativity of \Delta ensures the group is abelian. Furthermore, \mathcal{P}(U) forms a Boolean ring when equipped with symmetric difference \Delta as addition and intersection \cap as multiplication. This structure satisfies the ring axioms, including distributivity: for any A, B, C \subseteq U, A \cap (B \Delta C) = (A \cap B) \Delta (A \cap C). The ring is commutative because both operations are commutative. It has unity U, since A \cap U = A for any A \subseteq U. In this ring, the union operation relates via the formula A \cup B = (A \Delta B) \Delta (A \cap B), or equivalently in ring notation, A + B + AB (where the characteristic 2 implies no coefficient adjustment). This Boolean ring structure on \mathcal{P}(U) is isomorphic to a vector space over the field \mathrm{GF}(2). Each subset A \subseteq U corresponds to its characteristic vector in \{0,1\}^U \cong (\mathrm{GF}(2))^U, where the i-th coordinate is 1 if i \in A and 0 otherwise; symmetric difference \Delta corresponds to componentwise addition modulo 2. Scalar multiplication is defined naturally: $0 \cdot A = \emptyset and $1 \cdot A = A. Intersection \cap then acts as componentwise multiplication in this vector space. For a concrete example, consider U = \{1,2\}. The power set \mathcal{P}(U) = \{\emptyset, \{1\}, \{2\}, \{1,2\}\} is isomorphic to (\mathrm{GF}(2))^2, with basis vectors corresponding to \{1\} and \{2\}. Addition via \Delta yields, for instance, \{1\} \Delta \{2\} = \{1,2\} and \{1\} \Delta \{1,2\} = \{2\}, mirroring vector addition in a 2-dimensional space over \mathrm{GF}(2). The ring multiplication table, represented as operations on these basis elements, forms a $2 \times 2 structure over \mathrm{GF}(2), where \{1\} \cap \{2\} = \emptyset (zero vector) and \{1\} \cap \{1\} = \{1\} (idempotence).

Generalizations

n-ary Symmetric Difference

The n-ary symmetric difference of a finite collection of sets A_1, A_2, \dots, A_n is defined as the set of all elements that belong to an number of the individual sets A_i. This generalizes the binary case by considering the of membership across all sets in the collection. The operation is commonly denoted as \Delta_{i=1}^n A_i or by chaining the binary notation as A_1 \Delta A_2 \Delta \dots \Delta A_n. Due to the associativity of the binary symmetric difference, the result is independent of parenthesization and the order of the sets for any n \geq 2. The of the n-ary symmetric difference admits an explicit formula derived from inclusion-exclusion principles applied to s: \left| \bigoplus_{i=1}^n A_i \right| = \sum_{k=1}^n (-1)^{k-1} 2^{k-1} \sum_{1 \leq i_1 < i_2 < \dots < i_k \leq n} \left| A_{i_1} \cap A_{i_2} \cap \dots \cap A_{i_k} \right|. This expands to \sum_i |A_i| - 2 \sum_{i<j} |A_i \cap A_j| + 4 \sum_{i<j<l} |A_i \cap A_j \cap A_l| - \dots + (-1)^{n-1} 2^{n-1} |A_1 \cap \dots \cap A_n|. The derivation proceeds by on n, leveraging the fact that the of the symmetric difference satisfies \chi_{A \oplus B} = (\chi_A - \chi_B)^2 = \chi_A + \chi_B - 2 \chi_A \chi_B, and extending this recursively while integrating over the to obtain the . For illustration, consider the sets A = \{1\}, B = \{1, 2\}, and C = \{2, 3\}. The element 1 appears in two sets (A and B), 2 in two sets (B and C), and 3 in one set (C); thus, the n-ary symmetric difference is \{3\}. In the case of a countably infinite collection of sets \{A_i\}_{i=1}^\infty, the symmetric difference is similarly defined as the set of elements belonging to an odd number of the A_i, but it is well-defined only if each element in the ambient space belongs to finitely many of the A_i.

Symmetric Difference in Measure Spaces

In a measurable space (X, \Sigma, \mu), where \mu is a measure, the symmetric difference of two measurable sets A, B \in \Sigma is defined as A \Delta B = (A \setminus B) \cup (B \setminus A), and its measure is \mu(A \Delta B). This quantity serves as a measure of dissimilarity between sets, particularly in spaces where the measure \mu may be infinite or continuous. The function d_\mu(A, B) = \mu(A \Delta B) induces a pseudometric on the \sigma-algebra \Sigma. It satisfies non-negativity, as \mu(A \Delta B) \geq 0 with equality \mu(A \Delta B) = 0, meaning A and B differ by a set of measure zero. Symmetry holds because A \Delta B = B \Delta A. The triangle inequality is given by \mu(A \Delta C) \leq \mu(A \Delta B) + \mu(B \Delta C), which follows from the inclusion A \Delta C \subset (A \Delta B) \cup (B \Delta C) and the subadditivity of \mu. This pseudometric identifies sets that are equivalent modulo null sets, where d_\mu(A, B) = 0; quotienting by this yields a genuine on the collection of measurable sets up to null sets. A fundamental relating the measures of the sets to their symmetric difference is |\mu(A) - \mu(B)| \leq \mu(A \Delta B) \leq \mu(A) + \mu(B). The upper bound follows from , as A \Delta B \subset A \cup B. For the lower bound, decompose \mu(A) = \mu(A \cap B) + \mu(A \setminus B) and \mu(B) = \mu(A \cap B) + \mu(B \setminus A), yielding |\mu(A) - \mu(B)| = |\mu(A \setminus B) - \mu(B \setminus A)| \leq \mu(A \setminus B) + \mu(B \setminus A) = \mu(A \Delta B). In the context of probability measures, where \mu is a , \mu(A \Delta B) relates to the distance between the subprobability measures \nu_A = 1_A \cdot \mu and \nu_B = 1_B \cdot \mu. Specifically, the distance is d_{\mathrm{TV}}(\nu_A, \nu_B) = \frac{1}{2} \int_X |1_A - 1_B| \, d\mu = \frac{1}{2} \mu(A \Delta B), so \mu(A \Delta B) = 2 d_{\mathrm{TV}}(\nu_A, \nu_B). This connection highlights the role of symmetric difference in quantifying distributional differences. For example, consider the \lambda on [0,1]. Let A = [0, 0.5] and B = [0.4, 0.9]. Then A \setminus B = [0, 0.4) and B \setminus A = (0.5, 0.9], so A \Delta B = [0, 0.4) \cup (0.5, 0.9] with \lambda(A \Delta B) = 0.4 + 0.4 = 0.8.

Comparisons and Applications

Comparison with Hausdorff Distance

The Hausdorff distance provides a for measuring the "closeness" of two compact subsets A and B in a (X, d), defined as d_H(A, B) = \max\left\{ \sup_{a \in A} \inf_{b \in B} d(a, b),\ \sup_{b \in B} \inf_{a \in A} d(a, b) \right\}. This quantifies the maximum deviation of points in one set from the other, capturing geometric and topological proximity in a manner. In contrast, the symmetric difference A \Delta B = (A \setminus B) \cup (B \setminus A) serves as a set-theoretic measure of dissimilarity, often quantified by its \mu(A \Delta B) in Euclidean spaces, which assesses the total "mismatched" volume without regard to the underlying structure. While the emphasizes spatial configuration and is sensitive to the positions of individual points or outliers, the symmetric difference focuses on the aggregate content overlap, rendering it more robust to isolated perturbations but blind to overall arrangement. This insensitivity to spatial layout makes \mu(A \Delta B) less suitable for applications requiring geometric fidelity, such as shape matching in computational geometry. The symmetric difference generally overlooks fine structural details, such as small holes or boundary irregularities in higher dimensions.

Applications in Logic and Other Fields

In Boolean logic, the symmetric difference operation corresponds directly to the exclusive or (XOR) gate, which outputs true only when the two inputs differ. This equivalence arises because symmetric difference selects elements unique to each set, mirroring XOR's behavior on binary values. The truth table for the two-input XOR, representing symmetric difference of singleton sets, is as follows:
Input AInput BA Δ B (XOR)
000
011
101
110
This operation extends to multi-bit checks, where the is computed as the symmetric difference (XOR) of all data bits to ensure even or odd , enabling error detection in binary strings. In , the space of a forms a over the finite field GF(2), where the elements are the edge sets of even-degree subgraphs (also known as Eulerian subgraphs), and the addition operation is the symmetric difference of edge sets. The collection of all such subgraphs is closed under symmetric difference, as the operation preserves even degrees at every vertex. For instance, the symmetric difference of the edge sets of two in the yields another even-degree subgraph, such as a of or a single if they share paths. In relational databases, the symmetric difference of two query result sets A and B identifies rows present in exactly one of the sets, which can be expressed in SQL as (A EXCEPT B) (B EXCEPT A). The EXCEPT operator computes the set difference (rows in A but not B), and combining it with its reverse via achieves the full symmetric difference, useful for comparing datasets like customer lists or records without duplicates. In , the symmetric difference of two events A and B defines a d(A, B) = P(A Δ B), quantifying the probability that an outcome belongs to exactly one of the events. This relates to the distance between probability measures, where for indicator functions, d_{TV}(1_A, 1_B) = \frac{1}{2} P(A Δ B), providing a bound on discrepancies between distributions. It plays a key role in concepts, such as a sequence of events {A_n} converging to A in probability if P(A_n Δ A) \to 0 as n \to \infty. In statistical testing, this helps measure set discrepancies, for example, in controlling errors between estimated and true support sets during goodness-of-fit tests or multiple testing procedures. In , symmetric difference underpins file differencing in tools like the Unix utility, which identifies lines unique to each file version—effectively the symmetric difference of line sets—to highlight changes, additions, or deletions for and . Similarly, in error-correcting codes, n-ary symmetric difference (iterated XOR over GF(2)) computes parity checks; for instance, a is the n-ary symmetric difference of data bits to detect single-bit errors by verifying if the total difference equals zero.

References

  1. [1]
    Symmetric Difference -- from Wolfram MathWorld
    The set of elements belonging to one but not both of two given sets. It is therefore the union of the complement of A with respect to B and B with respect to A.
  2. [2]
    [PDF] Sets and Set Operations - University at Buffalo
    Definition: The symmetric difference of set A and set B, denoted by A ⊕ B, is the set containing those elements in exactly one of A and B. Formally: A ⊕ B = (A ...
  3. [3]
    [PDF] Basic Set Theory
    Definition 2.11 The symmetric difference of two sets S and T is the set of objects that are in one and only one of the sets. The symmetric difference is.
  4. [4]
    [PDF] Introduction to Discrete Mathematics
    Sep 14, 2012 · The symmetric difference is the. set (A − B) ∪ (B − A). / The symmetric difference can be pictured as follows: 3.
  5. [5]
    [PDF] Lecture 7: Set Theory and Logic - Harvard Mathematics Department
    With this symmetric difference ∆ = + as addition and the intersection · = ∩ as multiplication, the subsets of a given set X become a ring. It is called a ...
  6. [6]
    [PDF] 1 Measurable Sets - TTU Math
    The symmetric difference of two sets E1 and E2 is defined as E1∆E2 = (E1 − E2) ∪ (E2 − E1). A set is called an Fσ set (F-sigma set) if it is a union of a ...
  7. [7]
    [PDF] Chapter 2 - City Tech OpenLab
    Symmetric Difference. Definition: The symmetric difference of A and B, denoted by is the set. Example: A = {1,2,3,4,5} B ={4,5,6,7,8}. What is ? Solution ...<|control11|><|separator|>
  8. [8]
    Set operations – Clayton Cafiero - University of Vermont
    Feb 24, 2025 · This is analogous to the exclusive or in logic: XOR. Unlike union and intersection, there is no standard symbol for symmetric difference. It is ...
  9. [9]
    CHARACTERISTIC FUNCTIONS AND THE ALGEBRA OF LOGIC.1
    By HASSLER WHITNEY. 2. Introduction. The algebra of logic differs from ... 7. J. Eells et al. (eds.), Hassler Whitney Collected Papers. © Birkhäuser ...
  10. [10]
    Symmetric Difference of Sets - GeeksforGeeks
    Aug 13, 2025 · Symmetric difference between two sets A and B is denoted as A Δ B and is defined as the set of elements that are in either of set but not in their intersection.
  11. [11]
    symmetric difference on a finite number of sets - PlanetMath.org
    Mar 22, 2013 · symmetric difference on a finite number of sets. Recall that ... In each of the four cases, x x belongs to an odd number of sets. For ...
  12. [12]
    [PDF] Groups - LSU Math
    Thus P(X) with the symmetric difference operation is a group with ∅ as identity and every element as its own inverse. Note that P(X) is an abelian group. (9) ...
  13. [13]
    symmetric difference - PlanetMath.org
    Mar 22, 2013 · Properties · A△B=(A∖B)∪(B∖A) A ⁢ △ ⁢ B = ( A ∖ B ) ∪ ( B ∖ A ) . · A△B=Ac△Bc A ⁢ △ ⁢ B = A c ⁢ △ ⁢ B c , where the superscript c c denotes taking ...
  14. [14]
    Math 120A HW 3
    ... abelian group, where P(U) denotes the power set of U (the set of all subsets of U) and △ denotes the operation of symmetric difference of sets, defined by ...
  15. [15]
    [PDF] arXiv:1707.07783v1 [math.AC] 25 Jul 2017
    Jul 25, 2017 · Theorem 1 Let X be a set, and let R = P(X) be the power set of X, which is a Boolean ring with addition in R being the symmetric difference of ...
  16. [16]
    [PDF] arXiv:1911.04217v1 [math.AC] 11 Nov 2019
    Nov 11, 2019 · If X is a set then its power set P(X) together with the symmetric difference A+B = (A∪B)\(A∩B) as the addition and the intersection. A.B ...
  17. [17]
    [PDF] arXiv:2201.07032v1 [cs.AI] 14 Jan 2022
    Jan 14, 2022 · the aid of two operations: intersection ⊙ and symmetrical set difference ⊕. In this regard (B, ⊕, ⊙) is a Boolean ring. The following ...
  18. [18]
    A PERFECT GROUP OF ORDER ... - PNAS
    The power set P(Q) becomes a vector space over GF(2) when we define A + B as the symmetric difference (A\B) U (B\A), and it is remarkable that the set Q and ...
  19. [19]
    [PDF] Isotropic systems and the interlace polynomial - arXiv
    Recall that the power set P(V ) is a vector space over GF(2) where addi- tion is the symmetric differences of subsets of V . Let U be the subspace of. P(V ) ...
  20. [20]
    Elaboration of a vector space over $GF(2)$ with symmetric ...
    Sep 4, 2019 · In general, for set E with cardinal |E|, the cardinal of the power set P(E) is 2|E|. As GF(2) has 2 ...
  21. [21]
    Symmetric Difference | Encyclopedia MDPI
    Oct 17, 2022 · The symmetric difference is equivalent to the union of both relative complements, that is: A △ B = ( A ∖ B ) ∪ ( B ∖ A ) , The symmetric ...
  22. [22]
    properties of symmetric difference - PlanetMath.org
    Mar 22, 2013 · Symmetric difference is commutative (A△B=B△A), associative (A△B)△C=A△(B△C), and has distributivity (A∩(B△C)=(A∩B)△(A∩C)). A△∅=A, A△A=∅.
  23. [23]
  24. [24]
    [PDF] Lecture 2 Measures
    Sep 19, 2013 · Let (S, S, µ) be a measure space. 1. For A1,..., An ∈ S with Ai ∩ Aj = ∅, for i 6= j, we have ... where Δ denotes the symmetric difference: A Δ B ...Missing: A_j
  25. [25]
    [PDF] Measure theory and probability
    |μ* (A) − μ* (B)| ≤ μ* (A Δ B) < 2ε, where in the last inequality we have used (1.20). In particular, we have μ* (A) ≥ μ* (B) − 2ε. (1.21). On the other hand, ...
  26. [26]
    [PDF] Total variation distance between measures
    Feb 15, 2005 · The Hellinger distance is closely related to the total variation distance—for example, both distances define the same topology of the space of ...
  27. [27]
    [PDF] Stability of multidimensional persistent homology with respect to ...
    Persistent topology, shape analysis, Cech homology, matching dis- tance, distance function, Hausdorff distance, symmetric difference distance. Research ...
  28. [28]
    Hausdorff Distance and Similarity Measures for Single-Valued ...
    Then the Hausdorff distance between these two intervals is H ( U ⌢ , V ⌢ ) = M a x { | u ⌢ 1 − v ⌢ 1 | , | u ⌢ 2 − v ⌢ 2 | } . It is obvious that the so-called ...<|control11|><|separator|>
  29. [29]
    Boolean Algebra - Iowa State University
    x' · y' = ( x + y ) ' and ( x · y ) ' = x' + y' . Symmetric difference/exclusive or (in Boolean algebra): x xor y = ( x · y' ) + ( x' · y ) . Boolean ring ...
  30. [30]
    [PDF] CSC2/452 Computer Organization Bitsets, Bitfields, Integer Arithmetic
    Sep 9, 2019 · ▷ XOR is symmetric difference on bitsets, hence also represented by ... ▷ Boolean: !0 = 1. ▷ Boolean: !5 = 0. Page 41. Boolean ...
  31. [31]
    [PDF] Chapter 12. The Cycle Space and Bond Space of J. A. Bondy and ...
    Dec 22, 2022 · graph G is defined as the vector space over scalar field GF(2). ∼. = Z2 with vectors as sets of edges. With E(G) as the power set of the edge ...
  32. [32]
    [PDF] Vectorial Space Structure of the Set of Cycles of a Graph
    We investigate the structure of the cycle space of a graph and show that it is possible to assign to it a vector space over 𝐺𝐹(2), with the symmetric difference ...
  33. [33]
    Set Operators - EXCEPT and INTERSECT (Transact-SQL)
    Nov 22, 2024 · Returns distinct rows by comparing the results of two queries. EXCEPT returns distinct rows from the left input query that aren't output by the right input ...
  34. [34]
    7.4. Combining Queries (UNION, INTERSECT, EXCEPT) - PostgreSQL
    EXCEPT returns all rows that are in the result of query1 but not in the result of query2 . (This is sometimes called the difference between two queries.) Again, ...
  35. [35]
    Total variation distance, $L^1$ norm - Mathematics Stack Exchange
    Oct 30, 2019 · Total variation distance is a measure for comparing two probability distributions (assuming that these are unit vectors in a finite space)frac 1 2$ in the definition of total variation distance between two ...Is it safe to say 'two distributions are 70% similar' if their total ...More results from math.stackexchange.com
  36. [36]
    [PDF] Probability: Theory and Examples Rick Durrett Version 5 January 11 ...
    Jan 11, 2019 · Probability is not a spectator sport, so the book contains almost 450 exercises to challenge the reader and to deepen their understanding.” The ...<|separator|>
  37. [37]
    [PDF] Verification-Based Decoding for Packet-Based Low-Density Parity ...
    Our work also demonstrates some interesting connections be- tween packet-level error-correcting codes and erasure codes. In this respect, the work has a ...Missing: n- | Show results with:n-<|control11|><|separator|>
  38. [38]
    [PDF] An Algorithm for Differential File Comparison
    The program diff reports differences between two files, expressed as a minimal list of line changes to bring either file into agreement with the other.
  39. [39]
    [PDF] Lecture 10: Error-correcting Codes 1 Overview 2 Basic definitions
    Oct 9, 2013 · Definition 2.1 (Error-Correcting Codes). Error-correcting codes is an injecting map from k symbols to n symbols: Enc: Σk → Σn where Σ is ...