Describing a Set by Listing or by Rule
A set records which objects belong to it. An explicit list or a predicate over a universe can describe the same set.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Choose a small universe
Over the integers from zero through five, the even values form \(\{0,2,4\}\). Testing \(x\bmod2=0\) gives the same membership for that universe. See set membership in code.
Keep the universe in the specification
Applying the predicate to every integer admits infinitely many values and therefore describes another set. A selection feature can first specify allowed inputs and then select eligible items. Domain validation formalizes that boundary.[1]
Define the universe that limits the rule
The description “even positive integers at most nine” produces the set \(\{2,4,6,8\}\). A rule saying only “even integers at most nine” over all integers also includes zero and indefinitely many negative values. The universe matters even when a few displayed examples look alike. See complements and their universe.
Domain even elements at most 9
positive integers {2,4,6,8}
integers 0 through 9 {0,2,4,6,8}
Test −2: excluded by both stated finite domains
Prove that each representation covers the other
Every displayed element satisfies the bounded rule. Any element satisfying it is twice one of the integers one through four, so it appears in the listing. This argument checks omissions and accidental extra elements.