Understanding Sets Defined by Specification

In summary, when given a set X and a sentence P(x) that is either true or false for any element x in X, there is a set {x ∈ X : P(x)} that consists of all elements in X for which P(x) is true. This set is a proper subset of X and is denoted by {x ∈ X : P(x)}.
  • #1
PhizKid
477
1
SETS DEFINED BY SPECIFICATION: Given a set X and a sentence P(x) that is either true or false whenever x is any particular element of X, there is a set whose elements are precisely those x ∈ X for which P(x) is true, denoted by {x ∈ X : P(x)}.

Does this mean that whenever the function P(x) is true, then x is an element of X, and when P(x) is false, then x is not an element of X?

I'm confused because the wording says that "...a sentence P(x) that is either true or false whenever x is any particular element of X..." which leads me to believe that whether P(x) is either true or false, then it is still an element of set X.

Or is it saying that there is a set within X in which P(x) is true, and there is also another set within X in which P(x) is false?
 
Last edited:
Physics news on Phys.org
  • #2
Hmm, no, it's neither of these.

The set [itex]\{x\in X~\vert~P(x)\}[/itex] are all the elements of X which satisfy P. So, in particular, we want all elements to lie in X.

Maybe some examples may help you to see the concept:
  • [itex]A=\{x\in \mathbb{N}~\vert~x~\text{is even}\}[/itex]
    This means that we take all the elements of [itex]\mathbb{Z}[/itex] which are even. So the elements of our set A are precisely 0,2,4,6,8,10,12,...
  • [itex]B=\{x\in \mathbb{Z}~\vert~x>0\}[/itex]
    This is the set of all positive integers. The set consists out of 1,2,3,4,...
    Note that x=1/2 also satisfies x>0. But 1/2 does not belong to B because it doesn't satisfy [itex]x\in \mathbb{Z}[/itex].
  • [itex]C=\{x\in \mathbb{Q}~\vert~2x+2=0\}[/itex]
    This is the set of all rational numbers x such that 2x+2=0. The only number satisfying that is of course -1. And this number is in [itex]\mathbb{Q}[/itex], so it belongs to C.

Does this clear up some things?
 
  • #3
In those 3 examples, would A be considered a proper subset of N, B a proper subset of Z, and C a proper subset of Q?
 
  • #4
PhizKid said:
In those 3 examples, would A be considered a proper subset of N, B a proper subset of Z, and C a proper subset of Q?

Yes. These are all proper subsets.

Another example would be

[tex]D=\{x\in \mathbb{N}~\vert~x\geq 0\}[/tex]

So this set consists of all elements in [itex]\mathbb{N}[/itex] which are larger than 0. Clearly, this is the entire set. So D is not a proper subset in this case.
 
  • #5
x has to be in the universe of discourse X and pass the truth condition x is an element of P(x).
 

FAQ: Understanding Sets Defined by Specification

1. What is a set?

A set is a collection of distinct objects or elements. These objects can be anything, such as numbers, letters, or even other sets. Sets are often used in mathematics and computer science for organizing and analyzing data.

2. How is a set different from a list?

A set is different from a list in that it does not have any particular order or sequence. In a set, the elements are not arranged in a specific way. Additionally, sets do not allow for duplicate elements, whereas lists can have repeated values.

3. What are the common operations on sets?

The most common operations on sets are union, intersection, difference, and complement. Union combines two sets to create a new set with all the elements from both sets. Intersection finds the common elements between two sets. Difference finds the elements in one set that are not in the other set. Complement finds the elements that are not in a specified set.

4. How are sets represented in computer science?

Sets are typically represented in computer science using curly braces {} to enclose the elements. For example, a set of numbers can be represented as {1, 2, 3}. In programming languages, sets can also be created using built-in data structures or libraries.

5. What is the cardinality of a set?

The cardinality of a set is the number of elements in that set. It is often denoted by the symbol |S|, where S is the set. For example, if a set contains the numbers {1, 2, 3}, the cardinality of that set is 3.

Back
Top