Difference between revisions of "Symmetric difference of sets"
m (links) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{TEX|done}}{{MSC|03E}} | |
− | + | An operation on sets. Given two sets $A$ and $B$, their symmetric difference, denoted by $A \Delta B$, is given by | |
+ | $$ | ||
+ | A \Delta B = (A \setminus B) \cup (B \setminus A) = (A \cup B) \setminus (A \cap B) = (A \cap B') \cup (A' \cap B) | ||
+ | $$ | ||
+ | where the symbols $\cup$, $\cap$, $\setminus$, ${}'$ denote the operations of [[union of sets|union]], [[intersection of sets|intersection]], [[Difference of two sets|difference]], and [[complementation]] of sets, respectively. | ||
− | |||
+ | ====Comments==== | ||
+ | The symmetric difference operation is associative, i.e. $A \Delta (B \Delta C) = (A \Delta B) \Delta C$, and intersection is distributive over it, i.e. $A \cap (B \Delta C) = (A \cap B) \Delta (A \cap C)$. Thus, $\Delta$ and $\cap$ define a ring structure on the [[power set]] $\mathcal{P}(X)$ of a set $X$ (the set of subsets of $X$), in contrast to union and intersection. This ring is the same as the ring of $\mathbb{Z}/2\mathbb{Z}$-valued functions on $X$ (with [[pointwise multiplication]] and addition). Cf. also [[Boolean algebra]] and [[Boolean ring]] for the symmetric difference operation in an arbitrary Boolean algebra. | ||
− | + | The [[indicator function]] of the symmetric difference may be expressed as | |
− | The | + | $$ |
+ | I_{A \Delta B} = I_A + I_B \bmod 2 | ||
+ | $$ | ||
+ | or as | ||
+ | $$ | ||
+ | I_{A \Delta B} = \left|{ I_A - I_B }\right| \ . | ||
+ | $$ | ||
====References==== | ====References==== | ||
− | <table><TR><TD valign="top">[a1]</TD> <TD valign="top"> | + | <table> |
+ | <TR><TD valign="top">[a1]</TD> <TD valign="top"> C. Kuratowski, "Introduction to set theory and topology" , Pergamon (1961) pp. 34, 35 (Translated from French)</TD></TR> | ||
+ | <TR><TD valign="top">[a2]</TD> <TD valign="top"> P. R. Halmos, ''Naive Set Theory'', Undergraduate Texts in Mathematics, Springer (1960) {{ISBN|0-387-90092-6}}</TD></TR> | ||
+ | </table> |
Latest revision as of 08:47, 29 April 2023
2020 Mathematics Subject Classification: Primary: 03E [MSN][ZBL]
An operation on sets. Given two sets $A$ and $B$, their symmetric difference, denoted by $A \Delta B$, is given by $$ A \Delta B = (A \setminus B) \cup (B \setminus A) = (A \cup B) \setminus (A \cap B) = (A \cap B') \cup (A' \cap B) $$ where the symbols $\cup$, $\cap$, $\setminus$, ${}'$ denote the operations of union, intersection, difference, and complementation of sets, respectively.
Comments
The symmetric difference operation is associative, i.e. $A \Delta (B \Delta C) = (A \Delta B) \Delta C$, and intersection is distributive over it, i.e. $A \cap (B \Delta C) = (A \cap B) \Delta (A \cap C)$. Thus, $\Delta$ and $\cap$ define a ring structure on the power set $\mathcal{P}(X)$ of a set $X$ (the set of subsets of $X$), in contrast to union and intersection. This ring is the same as the ring of $\mathbb{Z}/2\mathbb{Z}$-valued functions on $X$ (with pointwise multiplication and addition). Cf. also Boolean algebra and Boolean ring for the symmetric difference operation in an arbitrary Boolean algebra.
The indicator function of the symmetric difference may be expressed as $$ I_{A \Delta B} = I_A + I_B \bmod 2 $$ or as $$ I_{A \Delta B} = \left|{ I_A - I_B }\right| \ . $$
References
[a1] | C. Kuratowski, "Introduction to set theory and topology" , Pergamon (1961) pp. 34, 35 (Translated from French) |
[a2] | P. R. Halmos, Naive Set Theory, Undergraduate Texts in Mathematics, Springer (1960) ISBN 0-387-90092-6 |
Symmetric difference of sets. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Symmetric_difference_of_sets&oldid=35255