<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Power_set</id>
	<title>Power set - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Power_set"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Power_set&amp;action=history"/>
	<updated>2026-06-12T21:57:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Power_set&amp;diff=15497&amp;oldid=prev</id>
		<title>imported&gt;CiaPan: Undid revision 1320359659 by Apersoma (talk) – unnecessary exclusion, both the claim and its proof hold for the empty set</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Power_set&amp;diff=15497&amp;oldid=prev"/>
		<updated>2025-11-04T10:25:00Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/index.php/Special:Diff/1320359659&quot; title=&quot;Special:Diff/1320359659&quot;&gt;1320359659&lt;/a&gt; by &lt;a href=&quot;/index.php/Special:Contributions/Apersoma&quot; title=&quot;Special:Contributions/Apersoma&quot;&gt;Apersoma&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Apersoma&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Apersoma (page does not exist)&quot;&gt;talk&lt;/a&gt;) – unnecessary exclusion, both the claim and its proof hold for the empty set&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Mathematical set of all subsets of a set}}&lt;br /&gt;
{{For|the search engine developer|Powerset (company)}}&lt;br /&gt;
{{Dark mode invert|image=y|{{Infobox mathematical statement&lt;br /&gt;
| name = Power set&lt;br /&gt;
| image = Hasse diagram of powerset of 3.svg&lt;br /&gt;
| caption = The elements of the power set of {&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}  [[order theory|ordered]] with respect to [[Inclusion (set theory)|inclusion]].&lt;br /&gt;
| type = [[Set (mathematics)#Basic operations|Set operation]]&lt;br /&gt;
| field = [[Set (mathematics)|Set theory]]&lt;br /&gt;
| statement = The power set is the set that contains all subsets of a given set.&lt;br /&gt;
| symbolic statement = &amp;lt;math&amp;gt;x\in P(S) \iff x\subseteq S&amp;lt;/math&amp;gt;&lt;br /&gt;
}}}}&lt;br /&gt;
&lt;br /&gt;
In [[mathematics]], the &amp;#039;&amp;#039;&amp;#039;power set&amp;#039;&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;&amp;#039;powerset&amp;#039;&amp;#039;&amp;#039;) of a [[Set (mathematics)|set]] {{mvar|S}} is the set of all [[subset]]s of {{mvar|S}}, including the [[empty set]] and {{mvar|S}} itself.{{sfn|ps=|Weisstein}} In [[axiomatic set theory]] (as developed, for example, in the [[ZFC]] axioms), the existence of the power set of any set is [[postulated]] by the [[axiom of power set]].{{sfn|ps=|Devlin|1979|page=50}} &lt;br /&gt;
The powerset of {{mvar|S}} is variously denoted as {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}, {{math|{{itco|𝒫}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}, {{math|&amp;#039;&amp;#039;P&amp;#039;&amp;#039;(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}, &amp;lt;math&amp;gt;\mathbb{P}(S)&amp;lt;/math&amp;gt;, or {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}.{{efn|The notation {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, meaning the set of all functions from {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} to a given set of two elements (e.g., {{math|{{mset|0, 1}}}}), is used because the powerset of {{mvar|S}} can be identified with, is equivalent to, or bijective to the set of all the functions from {{mvar|S}} to the given two-element set.{{sfn|ps=|Weisstein}}}}&lt;br /&gt;
Any subset of {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} is called a &amp;#039;&amp;#039;[[family of sets]]&amp;#039;&amp;#039; over {{mvar|S}}.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
If {{mvar|S}} is the set {{math|{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}, then all the subsets of {{mvar|S}} are&lt;br /&gt;
&lt;br /&gt;
* {{math|{{mset}}}} (the [[empty set]], also denoted &amp;lt;math&amp;gt;\varnothing&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;\empty&amp;lt;/math&amp;gt;)&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}&lt;br /&gt;
* {{math|{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}&lt;br /&gt;
and hence the power set of {{mvar|S}} is {{math|{{mset|{{mset}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;z&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}},&lt;br /&gt;
{{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}}}.{{sfn|ps=|Puntambekar|2007|pages=1–2}}&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
If {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is a finite set with the [[cardinality]] {{math|1={{abs|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} (i.e., the number of all elements in the set {{math|1=&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is {{math|1=&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}), then the number of all the subsets of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is {{math|1={{abs|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} = 2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}. This fact as well as the reason of the notation {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} denoting the power set {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} are demonstrated in the below.&lt;br /&gt;
: An [[indicator function]] or a characteristic function of a subset {{math|&amp;#039;&amp;#039;A&amp;#039;&amp;#039;}} of a set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} with the cardinality {{math|1={{abs|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} is a function from {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} to the two-element set {{math|{{mset|0, 1}}}}, denoted as {{math|&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; : &amp;#039;&amp;#039;S&amp;#039;&amp;#039; → {{mset|0, 1}}}}, and it indicates whether an element of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} belongs to {{math|&amp;#039;&amp;#039;A&amp;#039;&amp;#039;}} or not; If {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}} in {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} belongs to {{math|&amp;#039;&amp;#039;A&amp;#039;&amp;#039;}}, then {{math|1=&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = 1}}, and {{math|0}} otherwise. Each subset {{math|&amp;#039;&amp;#039;A&amp;#039;&amp;#039;}} of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is identified by or equivalent to the indicator function {{math|&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;}}, and {{math|{{mset|0,1}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} as the set of all the functions from {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} to {{math|{{mset|0, 1}}}} consists of all the indicator functions of all the subsets of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}. In other words, {{math|{{mset|0, 1}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} is equivalent or [[Bijection|bijective]] to the power set {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}. Since each element in {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} corresponds to either {{math|0}} or {{math|1}} under any function in {{math|{{mset|0, 1}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, the number of all the functions in {{math|{{mset|0, 1}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} is {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}. Since the number {{math|2}} can be defined as {{math|{{mset|0, 1}}}} (see, for example, [[von Neumann ordinals]]), the {{math|{{itco|{{mathcal|P}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}}} is also denoted as {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}. Obviously {{math|1={{abs|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} = 2&amp;lt;sup&amp;gt;{{abs|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}&amp;lt;/sup&amp;gt;}} holds. Generally speaking, {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} is the set of all functions from {{math|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}} to {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} and {{math|1={{abs|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} = {{abs|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}}&amp;lt;sup&amp;gt;{{abs|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}}&amp;lt;/sup&amp;gt;}}.&lt;br /&gt;
[[Cantor&amp;#039;s diagonal argument#General sets|Cantor&amp;#039;s diagonal argument]] shows that the power set of a set (whether infinite or not) always has strictly higher [[cardinality]] than the set itself (or informally, the power set must be larger than the original set). In particular, [[Cantor&amp;#039;s theorem]] shows that the power set of a [[countable set|countably infinite]] set is [[uncountable|uncountably]] infinite. The power set of the set of [[natural number]]s can be put in a [[bijection|one-to-one correspondence]] with the set of [[real number]]s (see [[Cardinality of the continuum]]).&lt;br /&gt;
&lt;br /&gt;
The power set of a set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}, together with the operations of [[union (set theory)|union]], [[intersection (set theory)|intersection]] and [[complement (set theory)|complement]], is a [[σ-algebra]] over {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} and can be viewed as the prototypical example of a [[Boolean algebra (structure)|Boolean algebra]]. In fact, one can show that any &amp;#039;&amp;#039;finite&amp;#039;&amp;#039; Boolean algebra is [[isomorphic]] to the Boolean algebra of the power set of a finite set. For &amp;#039;&amp;#039;infinite&amp;#039;&amp;#039; Boolean algebras, this is no longer true, but every infinite Boolean algebra can be represented as a [[subalgebra]] of a power set Boolean algebra (see [[Stone&amp;#039;s representation theorem]]).&lt;br /&gt;
&lt;br /&gt;
The power set of a set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} forms an [[abelian group]] when it is considered with the operation of [[symmetric difference]] (with the empty set as the identity element and each set being its own inverse), and a [[commutative]] [[monoid]] when considered with the operation of intersection (with the entire set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} as the identity element). It can hence be shown, by proving the [[Distributive property|distributive laws]], that the power set considered together with both of these operations forms a [[Boolean ring]].&lt;br /&gt;
&lt;br /&gt;
== Representing subsets as functions ==&lt;br /&gt;
In [[set theory]], {{math|[[Function (mathematics)#Function space|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;]]}} is the notation representing the set of all [[function (mathematics)|function]]s from {{mvar|Y}} to {{mvar|X}}.  As &amp;quot;{{math|2}}&amp;quot; can be defined as {{math|{{mset|0, 1}}}} (see, for example, [[von Neumann ordinals]]), {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} (i.e., {{math|{{mset|0, 1}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}) is the set of all [[function (mathematics)|function]]s from {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} to {{math|{{mset|0, 1}}}}. As [[power set#Properties|shown above]], {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} and the power set of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}, {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}, are considered identical set-theoretically.&lt;br /&gt;
&lt;br /&gt;
This equivalence can be applied to the example [[Power set#Example|above]], in which {{math|1=&amp;#039;&amp;#039;S&amp;#039;&amp;#039; = {{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039;}}}}, to get the [[isomorphism]] with the binary representations of numbers from 0 to {{math|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; − 1}}, with {{mvar|n}} being the number of elements in the set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} or {{math|1={{abs|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}. First, the enumerated set {{math|1={{mset| (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, 1), (&amp;#039;&amp;#039;y&amp;#039;&amp;#039;, 2), (&amp;#039;&amp;#039;z&amp;#039;&amp;#039;, 3) }}}} is defined in which the number in each ordered pair represents the position of the paired element of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} in a sequence of binary digits such as {{math|1={{mset|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;}} = 011&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}}; {{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}} of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is located at the first from the right of this sequence and {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}} is at the second from the right, and 1 in the sequence means the element of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} corresponding to the position of it in the sequence exists in the subset of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} for the sequence while 0 means it does not.&lt;br /&gt;
&lt;br /&gt;
For the whole power set of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}, we get:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| Subset&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| Sequence&amp;lt;br /&amp;gt; of binary digits&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| Binary&amp;lt;br /&amp;gt; interpretation&lt;br /&gt;
!scope=&amp;quot;col&amp;quot;| Decimal&amp;lt;br /&amp;gt; equivalent&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset|                     }} }} || {{math|0, 0, 0}} || {{math|000&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|0&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset| &amp;#039;&amp;#039;x&amp;#039;&amp;#039;               }} }} || {{math|0, 0, 1}} || {{math|001&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|1&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset|        &amp;#039;&amp;#039;y&amp;#039;&amp;#039;        }} }} || {{math|0, 1, 0}} || {{math|010&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|2&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset| &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;        }} }} || {{math|0, 1, 1}} || {{math|011&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|3&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset|               &amp;#039;&amp;#039;z&amp;#039;&amp;#039; }} }} || {{math|1, 0, 0}} || {{math|100&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|4&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset| &amp;#039;&amp;#039;x&amp;#039;&amp;#039;,        &amp;#039;&amp;#039;z&amp;#039;&amp;#039; }} }} || {{math|1, 0, 1}} || {{math|101&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|5&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset|        &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039; }} }} || {{math|1, 1, 0}} || {{math|110&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|6&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1={{mset| &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;z&amp;#039;&amp;#039; }} }} || {{math|1, 1, 1}} || {{math|111&amp;lt;sub&amp;gt;(2)&amp;lt;/sub&amp;gt;}} || {{math|7&amp;lt;sub&amp;gt;(10)&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Such an [[Injective function|injective mapping]] from {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} to integers is arbitrary, so this representation of all the subsets of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is not unique, but the sort order of the enumerated set does not change its cardinality. (E.g., {{math|{{mset| (&amp;#039;&amp;#039;y&amp;#039;&amp;#039;, 1), (&amp;#039;&amp;#039;z&amp;#039;&amp;#039;, 2), (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, 3) }}}} can be used to construct another injective mapping from {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} to the integers without changing the number of one-to-one correspondences.)&lt;br /&gt;
&lt;br /&gt;
However, such finite binary representation is only possible if {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} can be enumerated. (In this example, {{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}, {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}, and {{math|1=&amp;#039;&amp;#039;z&amp;#039;&amp;#039;}} are enumerated with {{math|1}}, {{math|2}}, and {{math|3}} respectively as the position of binary digit sequences.) The enumeration is possible even if {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} has an infinite cardinality (i.e., the number of elements in {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is infinite), such as the set of integers or rationals, but not possible for example if {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is the set of real numbers, in which case we cannot enumerate all irrational numbers.&lt;br /&gt;
&lt;br /&gt;
== Relation to binomial theorem ==&lt;br /&gt;
The [[binomial theorem]] is closely related to the power set. A {{math|&amp;#039;&amp;#039;k&amp;#039;&amp;#039;}}–elements combination from some set is another name for a {{math|&amp;#039;&amp;#039;k&amp;#039;&amp;#039;}}–elements subset, so the number of [[combination]]s, denoted as {{math|C(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;, &amp;#039;&amp;#039;k&amp;#039;&amp;#039;)}} (also called [[binomial coefficient]]) is a number of subsets with {{mvar|k}} elements in a set with {{mvar|n}} elements; in other words it&amp;#039;s the number of sets with {{math|k}} elements which are elements of the power set of a set with {{math|n}} elements.&lt;br /&gt;
&lt;br /&gt;
For example, the power set of a set with three elements, has:&lt;br /&gt;
* {{math|1=C(3, 0) = 1}} subset with {{math|0}} elements (the empty subset),&lt;br /&gt;
* {{math|1=C(3, 1) = 3}} subsets with {{math|1}} element (the singleton subsets),&lt;br /&gt;
* {{math|1=C(3, 2) = 3}} subsets with {{math|2}} elements (the complements of the singleton subsets),&lt;br /&gt;
* {{math|1=C(3, 3) = 1}} subset with {{math|3}} elements (the original set itself).&lt;br /&gt;
&lt;br /&gt;
Using this relationship, we can compute {{math|{{abs|2&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}}} using the formula:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left|2^S \right | = \sum_{k=0}^{|S|} \binom{|S|}{k} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, one can deduce the following identity, assuming {{math|1={{abs|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left |2^S \right| = 2^n = \sum_{k=0}^{n} \binom{n}{k} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Recursive definition ==&lt;br /&gt;
If {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is a [[finite set]], then a [[recursive definition]] of {{math|{{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} proceeds as follows:&lt;br /&gt;
* If {{math|1=&amp;#039;&amp;#039;S&amp;#039;&amp;#039; = {{mset}}}}, then {{math|1={{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;) = {{mset| {{mset}} }}}}.&lt;br /&gt;
* Otherwise, let {{math|&amp;#039;&amp;#039;e&amp;#039;&amp;#039; ∈ &amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} and {{math|1=&amp;#039;&amp;#039;T&amp;#039;&amp;#039; = &amp;#039;&amp;#039;S&amp;#039;&amp;#039; &amp;amp;setminus; {{mset|&amp;#039;&amp;#039;e&amp;#039;&amp;#039;}}}}; then {{math|1={{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;) = {{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;T&amp;#039;&amp;#039;) ∪ {{mset|&amp;#039;&amp;#039;t&amp;#039;&amp;#039; ∪ {{mset|&amp;#039;&amp;#039;e&amp;#039;&amp;#039;}} : &amp;#039;&amp;#039;t&amp;#039;&amp;#039; ∈ {{itco|{{mathcal|P}}}}(&amp;#039;&amp;#039;T&amp;#039;&amp;#039;)}}}}.&lt;br /&gt;
&lt;br /&gt;
In words: &lt;br /&gt;
* The power set of the [[empty set]] is a [[singleton (mathematics)|singleton]] whose only element is the empty set.&lt;br /&gt;
* For a non-empty set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}}, let &amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt; be any element of the set and {{math|&amp;#039;&amp;#039;T&amp;#039;&amp;#039;}} its [[relative complement]]; then the power set of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} is a [[union (set theory)|union]] of a power set of {{math|&amp;#039;&amp;#039;T&amp;#039;&amp;#039;}} and a power set of {{math|&amp;#039;&amp;#039;T&amp;#039;&amp;#039;}} whose each element is expanded with the {{math|&amp;#039;&amp;#039;e&amp;#039;&amp;#039;}} element.&lt;br /&gt;
&lt;br /&gt;
== Subsets of limited cardinality ==&lt;br /&gt;
The set of subsets of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} of [[cardinality]] less than or equal to {{math|&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;}} is sometimes denoted by {{math|{{mathcal|P}}&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} or {{math|[&amp;#039;&amp;#039;S&amp;#039;&amp;#039;]&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, and the set of subsets with cardinality strictly less than {{math|&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;}} is sometimes denoted {{math|{{mathcal|P}}&amp;lt;sub&amp;gt;&amp;lt;&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} or {{math|[&amp;#039;&amp;#039;S&amp;#039;&amp;#039;]&amp;lt;sup&amp;gt;&amp;lt;&amp;#039;&amp;#039;κ&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}. Similarly, the set of non-empty subsets of {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} might be denoted by {{math|{{mathcal|P}}&amp;lt;sub&amp;gt;≥1&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} or {{math|{{itco|{{mathcal|P}}}}&amp;lt;sup&amp;gt;+&amp;lt;/sup&amp;gt;(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}}.&lt;br /&gt;
&lt;br /&gt;
== Power object ==&lt;br /&gt;
{{unsourced|section|date=February 2025}}&lt;br /&gt;
A set can be regarded as an [[algebra (universal algebra)|algebra]] having no nontrivial operations or defining equations.  From this perspective, the concept of the power set of {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} as the set of all subsets of {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} generalizes naturally to the set to all subalgebras of an [[algebraic structure]] or algebra.&lt;br /&gt;
&lt;br /&gt;
The power set of a set, when ordered by inclusion, is always a complete atomic Boolean algebra, and every complete atomic Boolean algebra arises as the [[lattice (order)|lattice]] of all subsets of some set. The generalization to arbitrary algebras is that the set of subalgebras of an algebra, again ordered by inclusion, is always an [[algebraic lattice]], and every algebraic lattice arises as the lattice of subalgebras of some algebra.&amp;lt;ref&amp;gt;{{cite journal&lt;br /&gt;
 | last1 = Birkhoff&lt;br /&gt;
 | first1 = Garrett&lt;br /&gt;
 | last2 = Frink&lt;br /&gt;
 | first2 = Orrin, Jr.&lt;br /&gt;
 | title = Representations of Lattices by Sets&lt;br /&gt;
 | journal = Transactions of the American Mathematical Society&lt;br /&gt;
 | volume = 64&lt;br /&gt;
 | issue = 2&lt;br /&gt;
 | pages = 299–316&lt;br /&gt;
 | year = 1948&lt;br /&gt;
 | doi = 10.1090/S0002-9947-1948-0027263-2&lt;br /&gt;
 | url = https://www.ams.org/journals/tran/1948-064-02/S0002-9947-1948-0027263-2/S0002-9947-1948-0027263-2.pdf&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/ref&amp;gt; So in that regard, subalgebras behave analogously to subsets.&lt;br /&gt;
&lt;br /&gt;
However, there are two important properties of subsets that do not carry over to subalgebras in general.  First, although the subsets of a set form a set (as well as a lattice), in some classes it may not be possible to organize the subalgebras of an algebra as itself an algebra in that class, although they can always be organized as a lattice.  Secondly, whereas the subsets of a set are in bijection with the functions from that set to the set {{math|1={{mset|0, 1}} = 2}}, there is no guarantee that a class of algebras contains an algebra that can play the role of {{math|2}} in this way.&lt;br /&gt;
&lt;br /&gt;
Certain classes of algebras enjoy both of these properties.  The first property is more common; the case of having both is relatively rare.  One class that does have both is that of [[multigraph]]s.  Given two multigraphs {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} and {{math|&amp;#039;&amp;#039;H&amp;#039;&amp;#039;}}, a [[homomorphism]] {{math|&amp;#039;&amp;#039;h&amp;#039;&amp;#039; : &amp;#039;&amp;#039;G&amp;#039;&amp;#039; → &amp;#039;&amp;#039;H&amp;#039;&amp;#039;}} consists of two functions, one mapping vertices to vertices and the other mapping edges to edges.  The set {{math|&amp;#039;&amp;#039;H&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;G&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}} of homomorphisms from {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} to {{math|&amp;#039;&amp;#039;H&amp;#039;&amp;#039;}} can then be organized as the graph whose vertices and edges are respectively the vertex and edge functions appearing in that set.  Furthermore, the subgraphs of a multigraph {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} are in bijection with the graph homomorphisms from {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} to the multigraph {{math|Ω}} definable as the [[complete graph|complete directed graph]] on two vertices (hence four edges, namely two self-loops and two more edges forming a cycle) augmented with a fifth edge, namely a second self-loop at one of the vertices.  We can therefore organize the subgraphs of {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} as the multigraph {{math|Ω&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;G&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, called the &amp;#039;&amp;#039;&amp;#039;power object&amp;#039;&amp;#039;&amp;#039; of {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}}.&lt;br /&gt;
&lt;br /&gt;
What is special about a multigraph as an algebra is that its operations are unary.  A multigraph has two sorts of elements forming a set {{math|&amp;#039;&amp;#039;V&amp;#039;&amp;#039;}} of vertices and {{math|&amp;#039;&amp;#039;E&amp;#039;&amp;#039;}} of edges, and has two unary operations {{math|&amp;#039;&amp;#039;s&amp;#039;&amp;#039;, &amp;#039;&amp;#039;t&amp;#039;&amp;#039; : &amp;#039;&amp;#039;E&amp;#039;&amp;#039; → &amp;#039;&amp;#039;V&amp;#039;&amp;#039;}} giving the source (start) and target (end) vertices of each edge.  An algebra all of whose operations are unary is called a [[presheaf]].  Every class of presheaves contains a presheaf {{math|Ω}} that plays the role for subalgebras that {{math|2}} plays for subsets.  Such a class is a special case of the more general notion of elementary [[topos]] as a [[category (mathematics)|category]] that is [[closed category|closed]] (and moreover [[cartesian closed category|cartesian closed]]) and has an object {{math|Ω}}, called a [[subobject classifier]].  Although the term &amp;quot;power object&amp;quot; is sometimes used synonymously with [[exponential object]] {{math|{{itco|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;X&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, in topos theory {{math|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}} is required to be {{math|Ω}}.&lt;br /&gt;
&lt;br /&gt;
== Functors and quantifiers ==&lt;br /&gt;
There is both a covariant and contravariant power set [[functor]], {{math|{{itco|{{mathcal|P}}}}: Set → Set}} and {{math|{{overbar|{{itco|{{mathcal|P}}}}}}: Set {{sup|op}} → Set}}. The covariant functor is defined more simply as the functor which sends a set {{math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} to {{math|{{mathcal|P}}(&amp;#039;&amp;#039;S&amp;#039;&amp;#039;)}} and a morphism {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;: &amp;#039;&amp;#039;S&amp;#039;&amp;#039; → &amp;#039;&amp;#039;T&amp;#039;&amp;#039;}} (here, a function between sets) to the image morphism. That is, for &amp;lt;math&amp;gt;A = \{x_1, x_2, ...\} \in \mathsf{P}(S), \mathsf{P}f(A) = \{f(x_1), f(x_2), ...\} \in \mathsf{P}(T)&amp;lt;/math&amp;gt;. Elsewhere in this article, the power set was defined as the set of functions of {{Math|&amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} into the set with 2 elements. Formally, this defines a natural isomorphism &amp;lt;math&amp;gt;\overline{\mathsf{P}} \cong \text{Set}(-,2)&amp;lt;/math&amp;gt;. The contravariant power set functor is different from the covariant version in that it sends {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} to the &amp;#039;&amp;#039;pre&amp;#039;&amp;#039;image morphism, so that if &amp;lt;math&amp;gt;f(A) = B \subseteq T, \overline\mathsf{P}f(B) = A&amp;lt;/math&amp;gt;. This is because a general functor &amp;lt;math&amp;gt;\text{C}(-,c)&amp;lt;/math&amp;gt; takes a morphism &amp;lt;math&amp;gt;h:a \rightarrow b&amp;lt;/math&amp;gt; to precomposition by &amp;#039;&amp;#039;h&amp;#039;&amp;#039;, so a function &amp;lt;math&amp;gt;h^*: C(b,c) \rightarrow C(a,c)&amp;lt;/math&amp;gt;, which takes morphisms from &amp;#039;&amp;#039;b&amp;#039;&amp;#039; to &amp;#039;&amp;#039;c&amp;#039;&amp;#039; and takes them to morphisms from &amp;#039;&amp;#039;a&amp;#039;&amp;#039; to &amp;#039;&amp;#039;c&amp;#039;&amp;#039;, through &amp;#039;&amp;#039;b&amp;#039;&amp;#039; via &amp;#039;&amp;#039;h&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;{{Cite book |last=Riehl |first=Emily |title=Category Theory in Context |date=16 November 2016 |publisher=Courier Dover Publications |isbn=978-0486809038}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In [[category theory]] and the theory of [[elementary topos|elementary topoi]], the [[universal quantifier]] can be understood as the [[right adjoint]] of a [[functor]] between power sets, the [[inverse image]] functor of a function between sets; likewise, the [[existential quantifier]] is the [[left adjoint]].{{sfn|ps=|Mac Lane|Moerdijk|1992|p=58}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cantor&amp;#039;s theorem]]&lt;br /&gt;
* [[Family of sets]]&lt;br /&gt;
* [[Field of sets]]&lt;br /&gt;
* [[Combination#Number of k-combinations for all k|Combination]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{notelist}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Bibliography ==&lt;br /&gt;
* {{cite book | last=Devlin | first=Keith J. | author-link=Keith Devlin | title=Fundamentals of contemporary set theory | series=Universitext | publisher=[[Springer-Verlag]] | year=1979 | isbn=0-387-90441-7 | zbl=0407.04003 }}&lt;br /&gt;
* {{cite book | last=Halmos | first=Paul R. | author-link=Paul Halmos | title=Naive set theory | url=https://archive.org/details/naivesettheory00halm | url-access=registration | series=The University Series in Undergraduate Mathematics | publisher=van Nostrand Company | year=1960 | zbl=0087.04403 }}&lt;br /&gt;
* {{citation | last1=Mac Lane | first1=Saunders | author-link1=Saunders Mac Lane | last2=Moerdijk | first2=Ieke | author-link2=Ieke Moerdijk | year=1992 | title=Sheaves in Geometry and Logic |publisher=Springer-Verlag | isbn=0-387-97710-4 }}&lt;br /&gt;
* {{cite book | last=Puntambekar | first=A. A. | title=Theory Of Automata And Formal Languages | year=2007 | publisher=Technical Publications | isbn=978-81-8431-193-8 }}&lt;br /&gt;
* {{Cite web |last=Weisstein |first=Eric W. |title=Power Set |url=https://mathworld.wolfram.com/PowerSet.html |url-status=live |archive-url=https://web.archive.org/web/20230406123410/https://mathworld.wolfram.com/PowerSet.html |archive-date=2023-04-06 |access-date=2020-09-05 |website=mathworld.wolfram.com |language=en}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
{{Wiktionary|power set}}&lt;br /&gt;
* {{PlanetMath |urlname=powerset |title=Power set}}&lt;br /&gt;
* {{nlab|id=power+set|title=Power set}}&lt;br /&gt;
* {{nlab|id=power+object|title=Power object}}&lt;br /&gt;
* [http://www.programminglogic.com/powerset-algorithm-in-c/ Power set Algorithm] in [[C++]]&lt;br /&gt;
&lt;br /&gt;
{{Mathematical logic}}&lt;br /&gt;
{{Set theory}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Operations on sets]]&lt;/div&gt;</summary>
		<author><name>imported&gt;CiaPan</name></author>
	</entry>
</feed>