離散数学 離散数学 離散数学
離散数学University of ElectroUniversity of ElectroUniversity of ElectroUniversity of Electro----CommunicationsCommunicationsCommunicationsCommunications
6. 6. 6.
6. 述語と集合 述語と集合 述語と集合 述語と集合
植野真臣
University of ElectroUniversity of ElectroCommunicationsCommunications
スケジュール スケジュールスケジュール スケジュール
4月14日:第1回:命題と証明
4月21日:第2回:集合の基礎、全称記号、存在記号 4月28日:第3回:命題論理
5月12日:第4回:述語論理 5月19日:第5回:述語と集合 5月26日:第6回:直積と冪集合 6月2日:第7回:様々な証明法(1) 6月9日:第8回:様々な証明法(2)
6月16日:第9回:様々な証明法 (再帰的定義と数学的帰納法)
6月23日:第10回:中間試験 6月30日:第11回:写像(関数)(1) 7月7日:第12回:写像(関数) (2)
7月14日:第13回:写像と関係:二項関係、関係行列、グラフによる表現 7月21日:第14回:同値関係
7月28日:第15回:順序関係:半順序集合、ハッセ図、全順序集合、上界と下界 8月4日:期末試験(補講があればずれていきます。)
2
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
1.本日1.本日1.本日 1.本日の目標の目標の目標の目標
1
.直積2
.集合の冪集合3
.集合系の演算4
.ラッセルのパラドックス離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
2.
2.
2.
2. 先週の復習:先週の復習:先週の復習:先週の復習:
内包的記法での条件部での量化子
1. ∀(())}
は すべてのについて条件()
を満たす共通集合⋂ {| }
という意味2.
内包的記述での∃(())}
は すべてのについて条件(述語)()
を満たす和集合⋃ {| }
という意味4
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
2.
2.
2.
2. 先週の復習:先週の復習:先週の復習:先週の復習:
例題
1. ∈ ℕ ∀ ∈ ℕ( > )}
2. ∈ ℕ ∃ ∈ ℕ( > )}
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
2.
2.
2.
2. 先週の復習:先週の復習:先週の復習:先週の復習:
例題
1. ∈ ℕ ∀ ∈ ℕ( > )}
= ⋂ ∈ℕ ∈ ℕ > } = ∅ 2. ∈ ℕ ∃ ∈ ℕ( > )}
= ⋃ ∈ℕ ∈ ℕ > } = ∈ ℕ > 1 = ℤ
ℤ :1
以上の整数University of ElectroUniversity of ElectroCommunicationsCommunications
3.
3.
3.
3. 直積直積直積直積
Def.1.
集合の要素と要素を順序を考慮して組にしたものを
との「順序対」といい,記号で(, )
と書く。Def.2. = , = b
のときのみ(, )
と(, )
が等し いという。Def. 3.
集合,
に対して,の要素との要素か ら作られる順序対の全体{(, )| ∈ , ∈ }
を との直積といい,×
で表す。7
University of ElectroUniversity of ElectroCommunicationsCommunications
注意 注意 注意 注意
= ∅
または= ∅
のとき× = × ∅ = ∅ × = ∅ × ∅ = ∅
8
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題1 例題1 例題1 例題1
= 1,2 , ! = {3,4}
とすると,× !
は?9
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題1 例題1 例題1 例題1
= 1,2 , ! = {3,4}
とすると,× !
は?× ! = { 1,3 , 1,4 , 2,3 , 2,4 }
10
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題2222
ℕ × ℕ
は,自然数の順序対の全体を示す。= {(, ) ∈ ℕ × ℕ| × = 2}
の要素は?
11
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題2222
ℕ × ℕ
は,自然数の順序対の全体を示す。= {(, ) ∈ ℕ × ℕ| × = 2}
の要素は?
= { 1,2 , 2,1 }
12
University of ElectroUniversity of ElectroCommunicationsCommunications
例題 例題 例題 例題3333
× ! ∪ % = ( × !) ∪ ( × %)
を証明せよ。13
University of ElectroUniversity of ElectroCommunicationsCommunications
例題 例題 例題 例題3333
× ! ∪ % = ( × !) ∪ ( × %)
を証明せよ。[証明]
∀(, ) [ (, ) ∈ × ! ∪ % ⟺ (, ) ∈ ( × !)
∪ ( × %)]
を示せばよい。(, ) ∈ × ! ∪ % ⟺ ∈ ∧ ∈ (! ∪ %) ⟺ ∈ ∧ [ ∈ ! ∨ ∈ %] ⟺ [ ∈ ∧ ∈ !] ∨ [ ∈ ∧ ∈ %] ⟺ [(, ) ∈ ( × !) ] ∨ [(, ) ∈ ( ×
%)] ⟺ (, ) ∈ ( × !) ∪ ( × %)
■14
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題4444
× ! ∩ % = ( × !) ∩ ( × %)
を証明せよ。15
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題4444
× ! ∩ % = ( × !) ∩ ( × %)
を証明せよ。[証明]
∀(, ) [ (, ) ∈ × ! ∩ % ⟺ (, ) ∈ ( ×
!) ∩ ( × %)]
を示せばよい。(, ) ∈ × ! ∩ % ⟺ ∈ ∧ ∈ (! ∩ %) ⟺ ∈ ∧ [ ∈ ! ∧ ∈ %] ⟺ [ ∈ ∧ ∈ !] ∧ [ ∈ ∧ ∈ %] ⟺ [(, ) ∈ ( × !) ] ∧ [(, ) ∈ ( ×
%)] ⟺ (, ) ∈ ( × !) ∩ ( × %)
■16
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
4 44
4....関係関係関係関係 ( ( 本授業の後半で詳しく学習します。( ( 本授業の後半で詳しく学習します。本授業の後半で詳しく学習します。))))本授業の後半で詳しく学習します。
Def 4.
二つの集合
,
の直積集合×
の部分集合,
を からへの「関係」という.また,
, ∋ (, )
のとき, :
とは関係ある, ∌ (, )
のとき, :
とは関係なし と書く.離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
関係の例 関係の例 関係の例 関係の例
= 1,2 , ! = {3,4}
× ! = { 1,3 , 1,4 , 2,3 , 2,4 }
このとき,
, = { 1,4 , 2,4 }
もしくは1,4 , 2,4
は,1が4と関係がある、
2
が4
と関係がある ということを表現している。University of ElectroUniversity of ElectroCommunicationsCommunications
例 例 例 例1111....
ℝ × ℝ
は,実数の順序対の全体を示す。(, ) ∈ ℝ × ℝ
は、座標軸平面上の点。19
University of ElectroUniversity of ElectroCommunicationsCommunications
例 例 例 例2.2.2.2.
ℝ
からℝ
への関数1
に対し,2 3 = {(, ) ∈ ℝ × ℝ| = 1()}
は,「関数
1
のグラフ」を示す。例
2 3 = {(, ) ∈ ℝ × ℝ| = 4567 (89:) 4 }
20
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
5.
5.
5.
5. 冪冪冪冪集合集合集合集合
Def. 4.
の部分集合の集まりをの冪(べき)集合(power )
といい,ℱ
または2 <
で表す。21
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例 例 例 例
= {, , =}
とすると,2 < = {∅, , , = , , , , = , , = , , , = }
22
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
Th Th Th Th 1111
集合 について
= >
のとき, の冪集合2 ?
についてℱ = 2 @ .
23
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
Th Th Th Th 1111
集合 について
= >
のとき, の冪集合2 ?
についてℱ = 2 @ .
[
証明]
= {1,2,3, ⋯ , >}
としても一般性を失わない。この とき, の部分集合の取り方は,1
を含むかどうか、2
を含むかどうか、3
を含むかどうか、⋯ >
を含むか どうかで決まるので,その総数は2 @ .
■24
University of ElectroUniversity of ElectroCommunicationsCommunications
6.
6.
6.
6. 集合系集合系集合系集合系
Def. 5. >
個のの部分集合4 ⋯ @
が与えられて いるとき,= { 4 ⋯ @ } = { B }(C = 1, ⋯ , >)
を集集集集 合系合系 合系
合系 と呼ぶ。集合族と呼ばれることもある。
Th. 2.
普遍集合 普遍集合 普遍集合
普遍集合
の冪集合2 <
の部分集合の集合{ | ⊆ 2 < }
は集合系である。集合系である。集合系である。集合系である。
25
University of ElectroUniversity of ElectroCommunicationsCommunications
注意:集合系と集合族 注意:集合系と集合族 注意:集合系と集合族 注意:集合系と集合族
= { 4 ⋯ @ } = { B }(C = 1, ⋯ , >)
のようにイン デックスがついている場合と冪集合2 <
の部分集 合としてのみ扱われるる場合で、集合系と集合族 を区別することがある。しかし、どちらの場合をどう呼ぶかが様々に異なり 決まっていない。
ここでは、同じとして扱う。
26
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
7.
7. 7.
7. 集合系集合系集合系集合系 の演算の演算の演算の演算
Def. 6.
集合系{ B }(C = 1, ⋯ , >)
について,条件∀C( ∈ B )
を満たす全体の集合を「集合系{ B }(C = 1, ⋯ , >)
の共通部分」といい,⋂ B
BE4
と書 く。すなわち,F B
BE4
ただし、左辺は添え字の集合が自然数集合
ℕ
のと き,⋂ G B
BE4
と書く。27
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
7.
7.
7.
7. 集合系集合系集合系 の演算集合系の演算の演算の演算
Def. 6.
集合系{ B }(C = 1, ⋯ , >)
について,条件∀C( ∈ B )
を満たす全体の集合を「集合系{ B }(C = 1, ⋯ , >)
の共通部分」といい,⋂ B
BE4
と書 く。すなわち,F B BE4
= {|∀C( ∈
B)}
ただし、左辺は添え字の集合が自然数集合
ℕ
のと き,⋂ G B
BE4
と書く。28
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
7.
7.
7.
7. 集合系集合系集合系 の演算集合系の演算の演算の演算
Def. 7.
集合系{ B }(C = 1, ⋯ , >)
について,条件∃C( ∈ B )
を満たす全体の集合を「集合系{ B }(C = 1, ⋯ , >)
の和集合」といい,⋃ H B
BE4
と書く。すなわち,
I B H
BE4
ただし,左辺は添え字の集合が自然数集合
ℕ
の離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
7.
7.
7.
7. 集合系集合系集合系 の演算集合系の演算の演算の演算
Def. 7.
集合系{ B }(C = 1, ⋯ , >)
について,条件∃C( ∈ B )
を満たす全体の集合を「集合系{ B }(C = 1, ⋯ , >)
の和集合」といい,⋃ H B
BE4
と書く。すなわち,
I B H BE4
= {|∃C( ∈
B)}
ただし,左辺は添え字の集合が自然数集合
ℕ
のUniversity of ElectroUniversity of ElectroCommunicationsCommunications
7.
7.
7.
7. 集合系集合系集合系 の演算集合系の演算の演算の演算
J = {1, ⋯ , >}
もしくはJ = ℕ
のときを統一的に 共通部分を⋂ K B B∈L
和集合を
I B
K
B∈L
と書くこともある。
31
University of ElectroUniversity of ElectroCommunicationsCommunications
例 例 例 例
J = {1,2}
のとき,⋂ K B
B∈L = 4 ∩ M . I B
K
B∈L
= 4 ∪ M . J = {1,2, ⋯ }
のとき,⋂ K B
B∈L , ⋃ K B
B∈L
は2個の集合の共通部分,和集 合の一般化である。32
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題1111
∈ ℕ
に対し,集合!
を! = ∈ ℝ| ≥
とし,集合系
{B }( ∈ ℕ)
の共通部分と和集合は33
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題1111
ℕ
の要素n
に対し,集合!
を! = ∈ ℝ| ≥
とし,集合系{B }( ∈ ℕ)
の共通部分と和集合はF !
G E4= ∀ ≥ = ∅,
⋃ G E4 ! = {|∃( ≥ )} = ≥ 0
34
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題2222
ℕ
の1
以上の要素n
に対し,集合を
= ∈ ℝ| < 4
とし,集合系{ B }(C ∈ ℕ)
の共通部 分と和集合は35
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
例題 例題 例題 例題2222
ℕ
の1
以上の要素n
に対し,集合を
= ∈ ℝ| < 4
とし,集合系{ B }(C ∈ ℕ)
の共通部 分と和集合はF
GE4
= ∀ < 1 = ≤ 0 ,
⋃ G
E4 = {|∃( < 4 )} = < 1
36
University of ElectroUniversity of ElectroCommunicationsCommunications
例題 例題 例題 例題3333
ℕ
の1
以上の要素n
に対し,集合を
= ∈ ℝ| < 4
とし,集合系{ B }(C ∈ ℕ)
の共通 部分と和集合は37
University of ElectroUniversity of ElectroCommunicationsCommunications
例題 例題 例題 例題3333
ℕ
の1
以上の要素n
に対し,集合を
= ∈ ℝ| < 4
とし,集合系{ B }(C ∈ ℕ)
の共通 部分と和集合はF G
E4 = ∀
<
1 = {0},⋃ G
E4 = {|∃( < 4 )} = −1 < < 1
38
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
分配律 分配律 分配律 分配律
集合 と集合系
B ∈ ℕ , J ⊆ ℕ
について以下が 成り立つ。39
∪ F !
BK
B∈L
= F( ∪ !
B)
K
B∈L
∩ I !
BK
B∈L
= I( ∩ !
B)
K
B∈L
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
ド・モルガンの法則 ド・モルガンの法則 ド・モルガンの法則 ド・モルガンの法則
普遍集合を
とする集合系B C ∈ ℕ , J ⊆ ℕ
につ いて以下が成り立つ。I B
K
B∈L U
= F K B U B∈L
F B
K
B∈L U
= I B U
K
B∈L
40
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
集合の集合の 集合の集合の 集合の集合の 集合の集合の問題問題問題問題
我々は 本日、集合の集合について考えてきた。し かし、集合の集合を数学的に体系づけるときに重 要な問題が発見されている。
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
ラッセルは集合の集合は次の二つのものしかない と考えた。
A:自分自身を要素とする集合の集合 B:自分自身を要素としない集合の集合 8
88
8....ラッセルのラッセルのラッセルのラッセルのパラドックスパラドックスパラドックスパラドックス
University of ElectroUniversity of ElectroCommunicationsCommunications
集合A:自分自身を要素とする集合の集合 集合B:自分自身を要素としない集合の集合 Aの例:要素の個数が無限の集合の集合
→
要素の個数が無限の集合は無限に存在するので それ自身もAに属する。Bの例:遊びの集合の集合を考える。遊びの集合
は遊びではないので自分自身を要素としない集合 の集合Bに入る。43
ラッセルは集合は次の二つのものしかないと考えた。
University of ElectroUniversity of ElectroCommunicationsCommunications
44
8 88
8...ラッセルのパラドックス.ラッセルのパラドックスラッセルのパラドックスラッセルのパラドックス
自分自身を含まない集合全体の集合
, = {| ∉ }
は存在しない。離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
45
888
8...ラッセルのパラドックス.ラッセルのパラドックスラッセルのパラドックスラッセルのパラドックス
自分自身を含まない集合全体の集合
, = {| ∉ }
は存在しない。証明
1.
, ∈ ,
の場合, = {| ∉ }
より,, ∉ ,
となり矛盾 2., ∉ ,
の場合, = {| ∉ }
より,, ∈ ,
となり矛盾 例:すべての集合を含む集合集合論で,
,
が集合の定義としては許容されないような体系が構築 されてきた。離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
46
8 88
8....ラッセルのラッセルのラッセルのラッセルのパラドックスパラドックスパラドックスパラドックス
床屋の深刻な問題 床屋の深刻な問題 床屋の深刻な問題 床屋の深刻な問題
以下のようなルールを課せられた町に一人だけ存在する床屋がい る。
・自分でひげをそらない町の人全員のひげをそる。
・自分でひげをそる町の人のひげはそらない。
このとき、床屋自身は自分のひげはそるのか?
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
8.
8.
8.
8. ラッセルのパラドックスラッセルのパラドックスラッセルのパラドックス 解決法ラッセルのパラドックス 解決法解決法解決法
A = {| ∈ }
もB = {| ∉ }
も 集合ではな いと考える。→
自分自身が要素となる概念を使って集合を定義し てはならない
→
集合理論:
ZFC
公理系47
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
1 1 1
10000.まとめ.まとめ.まとめ.まとめ
48
1
.直積2
.集合の冪集合3.集合系の演算
4
.ラッセルのパラドックスUniversity of ElectroUniversity of ElectroCommunicationsCommunications
演習問題 演習問題 演習問題 演習問題
49
University of ElectroUniversity of ElectroCommunicationsCommunications
問題 問題 問題 問題1111
= 1,2,3,4 , = {1,2,3,4,5,6,7,8,9,10}
とし,それ ぞれの部分集合を] = ∈ | ≤ 3 , ^ = { ∈
| ≤ 6}
とする。 直積×
を普遍集合とし,次に 示す集合を外延的記法で表せ。(1) (, ) + < 5}
(2) (, ) = 2 +1}
(3) {1,3} × (4) (] × ^) U (5) ] U × ^ U
50
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
問題 問題 問題 問題2222
= ! ∩ % → × = (! × !) ∩ (% × %)
を証明せよ。51
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
問題 問題 問題 問題3333
= 1,2,3,4
の 冪集合ℱ()
を外延的記法で示せ。52
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
問題 問題 問題 問題4444
次の集合系について,共通部分と和集合を求めよ。
(1) | ∈ ℕ = ∈ ℝ| M ≤ 4
(2) ! | ∈ ℕ ! = ∈ ℝ| ≥ − a < 4 (3) % | ∈ ℕ % = ∈ ℝ| > 0 a ≤ 4 (4) b | ∈ ℕ b = { ∈ ℝ| ≥ a <
+ 1}
離散数学離散数学離散数学
離散数学University of ElectroUniversity of Electro----CommunicationsUniversity of ElectroUniversity of ElectroCommunicationsCommunicationsCommunications
問題 問題 問題 問題5555....
次の述語の演算法則を用いて,集合系の分配律を 証明せよ。
「
を含まない命題