词条 | Power set | ||||||||||||||||||||||||||||||||||||
释义 |
In mathematics, the power set (or powerset) of any set {{mvar|S}} is the set of all subsets of {{mvar|S}}, including the empty set and {{mvar|S}} itself, variously denoted as {{mathcal|P}}({{mvar|S}}), 𝒫({{mvar|S}}), ℘({{mvar|S}}) (using the "Weierstrass p"), {{math|P(S)}}, {{math|ℙ(S)}}, or, identifying the powerset of {{mvar|S}} with the set of all functions from {{mvar|S}} to a given set of two elements, {{math|2S}}. 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.[1] Any subset of {{mathcal|P}}({{mvar|S}}) is called a family of sets over {{mvar|S}}. ExampleIf {{mvar|S}} is the set {{math|{{mset|x, y, z}}}}, then the subsets of {{mvar|S}} are
and hence the power set of {{mvar|S}} is {{math|{{mset|{{mset}}, {{mset|x}},{{mset|y}},{{mset|z}},{{mset|x, y}},{{mset|x, z}},{{mset|y, z}},{{mset|x, y, z}}}}}}.[2]PropertiesIf {{mvar|S}} is a finite set with {{math|1={{!}}S{{!}} = n}} elements, then the number of subsets of {{mvar|S}} is {{math|1={{!}}{{mathcal|P}}(S){{!}} = 2n}}. This fact, which is the motivation for the notation {{math|2S}}, may be demonstrated simply as follows, First, order the elements of {{mvar|S}} in any manner. We write any subset of {{mvar|S}} in the format {{math|{γ1, γ2, ..., γn }}} where {{math|γi , 1 ≤ i ≤ n}}, can take the value of {{math|0}} or {{math|1}}. If {{math|1=γi = 1}}, the {{mvar|i}}-th element of {{mvar|S}} is in the subset; otherwise, the {{mvar|i}}-th element is not in the subset. Clearly the number of distinct subsets that can be constructed this way is {{math|2n}} as {{math|γi ∈ {0, 1} }}. Cantor's diagonal argument shows that the power set of a set (whether infinite or not) always has strictly higher cardinality than the set itself (informally the power set must be larger than the original set). In particular, Cantor's theorem shows that the power set of a countably infinite set is uncountably infinite. The power set of the set of natural numbers can be put in a one-to-one correspondence with the set of real numbers (see Cardinality of the continuum). The power set of a set {{mvar|S}}, together with the operations of union, intersection and complement can be viewed as the prototypical example of a Boolean algebra. In fact, one can show that any finite Boolean algebra is isomorphic to the Boolean algebra of the power set of a finite set. For infinite 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's representation theorem). The power set of a set {{mvar|S}} forms an abelian group when 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. It can hence be shown (by proving the distributive laws) that the power set considered together with both of these operations forms a Boolean ring. ==Representing subsets as functions== In set theory, {{math|XY}} is the set of all functions from {{mvar|Y}} to {{mvar|X}}. As "2" can be defined as {{math|{{mset|0,1}}}} (see natural number), {{math|2S}} (i.e., {{math|{{mset|0,1}}S}}) is the set of all functions from {{mvar|S}} to {0,1}. By identifying a function in {{math|2S}} with the corresponding preimage of {{math|1}}, we see that there is a bijection between {{math|2S}} and {{mathcal|P}}({{mvar|S}}), where each function is the characteristic function of the subset in {{mathcal|P}}({{mvar|S}}) with which it is identified. Hence {{math|2S}} and {{mathcal|P}}({{mvar|S}}) could be considered identical set-theoretically. (Thus there are two distinct notational motivations for denoting the power set by {{math|2S}}: the fact that this function-representation of subsets makes it a special case of the {{math|XY}} notation and the property, mentioned above, that {{math|1={{abs|2S}} = 2{{abs|S}}}}.) This notion can be applied to the example above in which {{math|1=S = {{mset|x, y, z}}}} to see the isomorphism with the binary numbers from 0 to {{math|2n − 1}} with {{mvar|n}} being the number of elements in the set. In {{mvar|S}}, a "1" in the position corresponding to the location in the enumerated set {{math|1={{mset| (x, 0), (y, 1), (z, 2) }}}} indicates the presence of the element. So {{math|1={{mset|x, y}} = 011(2)}}. For the whole power set of {{mvar|S}} we get:
Such bijective mapping of S to integers is arbitrary, so this representation of subsets of S is not unique, but the sort order of the enumerated set does not change its cardinality. However, such finite binary representation is only possible if S can be enumerated (this is possible even if S has an infinite cardinality, such as the set of integers or rationals, but not for example if S is the set of real numbers, in which we cannot enumerate all irrational numbers to assign them a defined finite location in an ordered set containing all irrational numbers). Relation to binomial theoremThe power set is closely related to the binomial theorem. The number of subsets with {{mvar|k}} elements in the power set of a set with {{mvar|n}} elements is given by the number of combinations, {{math|C(n, k)}}, also called binomial coefficients. For example, the power set of a set with three elements, has:
Using this relationship we can compute using the formula: Therefore one can deduce the following identity, assuming : AlgorithmsIf {{mvar|S}} is a finite set, there is a recursive algorithm to calculate {{mathcal|P}}({{mvar|S}}). Define the operation {{math|1={{mathcal|F}} (e, T) = {X ∪ {e} {{!}} X ∈ T}}}. In English, return the set with the element {{mvar|e}} added to each set {{mvar|X}} in {{mvar|T}}.
In other words, the power set of the empty set is the set containing the empty set and the power set of any other set is all the subsets of the set containing some specific element and all the subsets of the set not containing that specific element. Subsets of limited cardinalityThe set of subsets of {{mvar|S}} of cardinality less than or equal to {{math|κ}} is sometimes denoted by {{math|{{mathcal|P}}κ(S)}} or {{math|[S]κ}}, and the set of subsets with cardinality strictly less than {{math|κ}} is sometimes denoted {{math|{{mathcal|P}}< κ(S)}} or {{math|[S]<κ}}. Similarly, the set of non-empty subsets of {{mvar|S}} might be denoted by {{math|{{mathcal|P}}≥ 1(S)}} or {{math|{{mathcal|P}}+(S)}}. Power objectA set can be regarded as an algebra having no nontrivial operations or defining equations. From this perspective the idea of the power set of {{mvar|X}} as the set of subsets of {{mvar|X}} generalizes naturally to the subalgebras of an algebraic structure or algebra. Now 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 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. So in that regard subalgebras behave analogously to subsets. 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 {0,1} = 2, there is no guarantee that a class of algebras contains an algebra that can play the role of 2 in this way. 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 multigraphs. Given two multigraphs {{mvar|G}} and {{mvar|H}}, a homomorphism {{math|h: G → H}} consists of two functions, one mapping vertices to vertices and the other mapping edges to edges. The set {{math|HG}} of homomorphisms from {{mvar|G}} to {{mvar|H}} 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 {{mvar|G}} are in bijection with the graph homomorphisms from {{mvar|G}} to the multigraph {{math|Ω}} definable as the 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 {{mvar|G}} as the multigraph {{math|ΩG}}, called the power object of {{mvar|G}}. 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 {{mvar|V}} of vertices and {{mvar|E}} of edges, and has two unary operations {{math|s,t: E → V}} 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 2 plays for subsets. Such a class is a special case of the more general notion of elementary topos as a category that is closed (and moreover cartesian closed) and has an object {{math|Ω}}, called a subobject classifier. Although the term "power object" is sometimes used synonymously with exponential object {{math|YX}}, in topos theory {{mvar|Y}} is required to be {{math|Ω}}. Functors and quantifiersIn category theory and the theory of 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.[3] See also
Notes1. ^{{harvnb|Devlin|1979|page=50}} 2. ^{{harvnb|Puntambekar|2007|pages=1–2}} 3. ^Saunders Mac Lane, Ieke Moerdijk, (1992) Sheaves in Geometry and Logic Springer-Verlag. {{isbn|0-387-97710-4}} See page 58 References
External links{{Wiktionary|power set}}
3 : Abstract algebra|Algebra|Basic concepts in set theory |
||||||||||||||||||||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。