Primer: Set Theory
Last updated
Was this helpful?
Last updated
Was this helpful?
[primitive] A set is a collection of objects
set builder notation: { βx | Ξ¦(x) }
the empty set, β
β { βx | x β x }
singleton set, {x} β { βy | y = x }
unordered pair, {x,y} β { βz | z = x β z = y }
union, x βͺ y β { βz | z β x β z β y}
ordered pair
K.Kuratowski: (x,y) β { {x}, {x,y} }
N.Wiener: (x,y) β { {{x},β
}, {{y}} }
recursive definition of unordered n
-tuples for any concrete n
(finite sets given as lists of their elements):
{xβ, β¦, xβ, xβοΉ’β} β {xβ, β¦, xβ} βͺ {xβοΉ’β}
βx. Ξ¨(x) β Ξ¦(x) where, e.g., Ξ¨(x) ~ x β β and Ξ¦(x) ~ x >= 0
βx. Ξ¨(x) β§ Ξ¦(x)
Russell's paradox: { x | x β x }
the empty set
{} or β
β β { βx | x β x }
E = { βx | x β E } = { Β¬βx.x β E }
singleton set
For each object x, there is a set {x} with x as its only element
{x} β { βy | y = x }
unordered pair
For all objects x and y, there is a set {x,y}
{x,y} β { βz | z = x β z = y }
powerset:
π(A) = { βS | S β A }
union: A βͺ B = { βx | x β A β¨ x β B }
intersection: A β© B = { βx | x β A β§ x β B }
difference: A B = { βx | x β A β x β B }
difference: B A = { βx | x β B β x β A }
symmetrical difference:
all items in A or B that are not in their intersection
A β³ B = (A βͺ B) (A β© B)
A β³ B = (A B) βͺ (B A)
A β³ B = { βxβy | (x β A β x β B) β¨ (y β B β y β A) }
π€ = {a,b,c,d,e} S = {a,b,c}, T = {b,c,d}
{a,b,c} βͺ {b,c,d} = {a,b,c,d}
{a,b,c} β© {b,c,d} = {b,c}
{a,b,c} {b,c,d} = {a}
{b,c,d} {a,b,c} = {d}
{a,b,c} β³ {b,c,d} = {a,d}
{a,b,c}' = {d,e}
{b,c,d}' = {a,e}