U
{a,b,c,d,e,f,g,h,...,z}
B
a,b,c,d,e
V
a,e,i,o,u
E
x,y,z}
{a,b,c,d,e}
{a,e,i,o,u}
{Color.RED, Color,GREEN, Color.BLUE}
{1, 2, 3, 4}
{ expression : conditions_on_variables_in_expression }
:
{ x : x is a positive integer less than 5 }
{x : x is a positive prime integer}
{2, 3, 5, 7, 11, 13, 17, 19, ...}
{ x + y : x is an odd prime and y is an odd prime }
:= {}
{ x | x is a positive integer less than 5 }
{x | x is a positive prime integer}
{red,green,blue}
{green,blue,red}
S
A
S1
S2
{1,2,3,4}
{ }
∅
{x : x < 5 and x > 12}
{x : x is a pizza-topping and x is an ice-cream flavor}
{x : false}
element ∈ set
green ∈ {red,green,blue}
∈
∉
yellow ∉ {red,green,blue}
green ∉ ∅
5 ∉ ∅
∀x∀S[x ∉ S ↔ ¬(x ∈ S)]
∀x[x ∉ ∅]
{0,1,2,3,...}
{...,-2,-1,0,1,2,...}
√3 ∈ R
√(-1) ∉ R
{ a/b : a ∈ Z and b ∈ Z and b ≠ 0 }
{red, green, -5, √3}
{ N, -2, R, yellow, {red,green} }
-2 ∈ { N, -2, R, yellow, {red,green} }
{red,green} ∈ { N, -2, R, yellow, {red,green} }
green ?∈? { N, -2, R, yellow, {red,green} }
-2 =?= N -2 =?= -2 . . . green =?= N green =?= -2 green =?= R green =?= yellow green =?= {red,green}
{ {a,b}, {a}, {b}, ∅ }
{ {a,b}, {a}, {b} }
String
"helo"
"world"
""
.length()
.substring()
.toCharArray()
.compareTo()
{"helo", "world", ""}
{"helo", "world"}
array.length
|{red,green,blue}|
|∅|
|N|
|R|
|{N}|
{ {0,1,2,3,...} }
|{∅}|
{ {} }
=
{1,2,3,4} = {x : x is a positive integer less than 5}
{red,green,blue} = {red,blue,green}
{red,green,yellow} ≠ {red,green,blue}
∀S1∀S2[S1 = S2 ↔ (∀x)(x ∈ S1 ↔ x ∈ S2)]
{{red,green},yellow} ?=?/?≠? {red,green,yellow}
set1 ⊂ set2
{green,blue} ⊂ {red,green,blue}
{blue,green} ⊂ {red,green,blue}
¬({green,yellow} ⊂ {red,green,blue})
{green} ?⊂? {red,green,blue}
green ?⊂? {red,green,blue}
∅ ?⊂? {red,green,blue}
{green} ⊂ {red,green,blue}
∅ ⊂ {red,green,blue}
{red} ?⊂? {red,{green,yellow}}
{green,yellow} ?⊂? {red,{green,yellow}}
{{green,yellow}} ⊂ {red,{green,yellow}}
{red,green,blue} ?⊂? {red,green,blue}
{red,green,blue} ?⊆? {red,green,blue}
{green,blue} ?⊆? {red,green,blue}
∅ ⊆ ∅
∅ ⊂ ∅
{red,blue}
{a,b}
{ X : X ⊆ {a,b} }
{ X : X is a subset of {a,b} }
{ ∅, {a}, {b}, {a,b} }
∀S1∀S2[S1 ⊆ S2 ↔ ∀x(if x ∈ S1 then x ∈ S2)]
∀S1∀S2[S1 ⊂ S2 ↔ (S1 ⊆ S2 ∧ S1 ≠ S2)]
{1,4}
⊄
{1,2,3}
℘(S)
℘({a,b}) = { ∅, {a}, {b}, {a,b} }
℘({a}) = { ∅, {a} }
℘(∅) = { ∅ }
℘(∅) ≠ ∅
℘({a,b,c}) = { ∅, {a}, {b}, {a,b}, {a,c}, {b,c}, {a,c,b}, {c} }
℘({a,b,c,d}) = { ∅, {a}, {b}, {a,b}, {a,c}, {b,c}, {a,c,b}, {c}, {d}, {a,d}, {b,d}, {a,b,d}, {a,c,d}, {b,c,d}, {a,c,b,d}, {c,d} }
|S| |℘(S)| ----------- 0 1 2 3 4 n
{red,blue,green,red} = {red,green,blue}
(20,50) ?==? (50,20)
(20,20) ?==? (20)
{20,20} = {20}
(red,green,blue) == (red,green,blue)
(red,blue,green) ≠ (red,green,blue)
(20,20) ≠ (20)
(20,50) ≠ (50,20)
{163} × {Dulimarta,Ferguson} × {easy,moderate,hard}
{t,f} × {t,f} :=
{t,f} × ∅ := { (t,), (f,) }
{ (t), (f) }
{t,f} × {r,g,b}
{t,f} × {r,g}
{t,f} × {r}
{t,f} × {}
{t,f} × ∅
{x,y,z}
S1 ∪ S2
∀S1∀S2∀x[x ∈ S1 ∪ S2 ↔ (x ∈ S1 or x ∈ S2)]
B ∪ V :=
B ∪ V ≠ {{a,b,c,d,e},{a,e,i,o,u}}
{a} ∪ {b,c} := {a,b,c}
∅ ∪ {a,b,c} := {a,b,c}
∀S1∀S2∀x[x ∈ S1 ∩ S2 iff (x ∈ S1 and x ∈ S2)]
B ∩ V
∩ := ∅
∩ ∅ := ∅
(∀S)[S ∩ ∅ := ∅]
∪
∩
(∀S1)(∀S2)(∀S3)[S1 ∩ (S2 ∪ S3) = (S1 ∩ S2) ∪ (S1 ∩ S3)]
W := V ∪ {y} :=
W ∩ (B ∪ E) =?= (W ∩ B) ∪ (W ∩ E) ?
W ∩ =?= ∪ ?
=?= ?
(∀S1)(∀S2)(∀S3)[S1 ∪ (S2 ∩ S3) = (S1 ∪ S2) ∩ (S1 ∪ S3)]
B ∪ (W ∩ E) =?= (B ∪ W) ∩ (B ∪ E) ?
B ∪ =?= ∩ ?
∀S1∀S2[disjoint(S1,S2) ↔ S1 ∩ S2 := ∅]
{ {a,b,c,d}, {e,f,g}, {h,i,j,k}, {l,m,n,o,p}, {q,r,s}, {t,u,v}, {w,x,y,z} }
{B, V, E}
{{r,g,b}, V, E}
{ {1}, {1,2}, {1,3}, {1,2,4}, {1,5}, {1,2,3,6}, ... }
gcc
∪ Si // stands for "S1 ∪ S2 ∪ S3 ∪ . . . ∪ S20" 1≤i≤20
∩ Si // stands for "S1 ∩ S2 ∩ S3 ∩ . . . ∩ S20" 1≤i≤20
∪ Si := 1≤i≤3
∩ Si := 1≤i≤3
∪Si := 1≤i
∩Si := 1≤i
∪Si
∩Si
S1 - S2
S1 \ S2
B - V := {b,c,d}
∀S1∀S2∀x[x ∈ S1 - S2 iff (x ∈ S1 and x ∉ S2)]
S1 ⊆ S2
T = {a,i}
T - V :=
~S
Sc
S′
~V
Vc
V'
V′
∀S∀x[x ∈ ~S iff x ∉ S]
red
3
~B :=
Bc
B'
B′
~(S1 ∪ S2) == ~S1 ∩ ~S2
~B ∩ ~V :=
{a,b,c,d,e,i,o,u}
B ∪ V
~B ∩ ~V := ~(B ∪ V)
∀S1∀S2[~(S1 ∪ S2) == ~S1 ∩ ~S2]
(∀S)[~~S == S]
~(~V)
A ∩ (B - C)
(A ∩ ~B) ∪ (A ∩ ~C)
(∀S)[S ∪ ∅ = S]
(∀S1)(∀S2)(S1 ∩ [S1 ∪ S2] = S1)