1用語と定義
束 (B,\vee,\wedge) が最小元 0 と最大元 1 を持ち、任意の x,y,z\in B について
x\wedge(y\vee z)=(x\wedge y)\vee(x\wedge z),
x\vee(y\wedge z)=(x\vee y)\wedge(x\vee z)
という 2 つの分配律を満たすとする。さらに各 x\in B に、
x\wedge x'=0,
\qquad
x\vee x'=1
を満たす補元 x' を備えるとき、(B,\vee,\wedge,{}',0,1) をブール代数という。つまり、ブール代数は補元を持つ有界分配束である。この後で、これらの公理から補元が一意であることを証明する。
1Terms and definition
Let the lattice (B,\vee,\wedge) have a least element 0 and a greatest element 1. Suppose that for every x,y,z\in B it satisfies both distributive laws分配律ぶんぱいりつ:
x\wedge(y\vee z)=(x\wedge y)\vee(x\wedge z),
x\vee(y\wedge z)=(x\vee y)\wedge(x\vee z).
If every x\in B has a complement補元ほげん x' satisfying
x\wedge x'=0,
\qquad
x\vee x'=1,
then (B,\vee,\wedge,{}',0,1) is a Boolean algebraブール代数だいすう. Thus a Boolean algebra is a bounded distributive lattice有界分配束ゆうかいぶんぱいそく equipped with a complement for every element. We will prove below that these axioms make the complement unique.
2述語じゅつごの真理集合しんりしゅうごうとの対応たいおう
全体集合ぜんたいしゅうごうuniversal set U を固定こていし、U 上うえの述語じゅつご P(x),Q(x) を考かんがえる。P の真理集合しんりしゅうごうtruth setを
S_P=\{x\in U\mid P(x)\}
とし、同様どうように S_Q=\{x\in U\mid Q(x)\} とする。
とする。このとき、論理演算ろんりえんざんと集合演算しゅうごうえんざんは次つぎのように対応たいおうする。
| 論理式ろんりしき | 真理集合しんりしゅうごう |
| P\land Q | S_P\cap S_Q |
| P\lor Q | S_P\cup S_Q |
| \lnot P | U\setminus S_P |
| P\Rightarrow Q | (U\setminus S_P)\cup S_Q |
| P\Leftrightarrow Q | (S_P\cap S_Q)\cup((U\setminus S_P)\cap(U\setminus S_Q)) |
この対応たいおうにより、論理式ろんりしきの変形へんけいを集合演算しゅうごうえんざんとして読よむことができる。とくに P\Rightarrow Q がすべての x\in U で真しんであることは S_P\subseteq S_Q と同値どうちであり、P\Leftrightarrow Q がすべての x\in U で真しんであることは S_P=S_Q と同値どうちである。
2Correspondence with truth sets of predicates
Fix a universal set全体集合ぜんたいしゅうごう U and predicates P(x),Q(x) on U. Let the truth set真理集合しんりしゅうごう of P be
S_P=\{x\in U\mid P(x)\}.
Similarly, let S_Q=\{x\in U\mid Q(x)\}.
Then logical operations and set operations correspond as follows.
| Formula | Truth set |
| P\land Q | S_P\cap S_Q |
| P\lor Q | S_P\cup S_Q |
| \lnot P | U\setminus S_P |
| P\Rightarrow Q | (U\setminus S_P)\cup S_Q |
| P\Leftrightarrow Q | (S_P\cap S_Q)\cup((U\setminus S_P)\cap(U\setminus S_Q)) |
This correspondence lets us read transformations of logical formulas as set operations集合演算しゅうごうえんざん. In particular, P\Rightarrow Q is true for every x\in U exactly when S_P\subseteq S_Q, and P\Leftrightarrow Q is true for every x\in U exactly when S_P=S_Q.
3冪集合べきしゅうごうpower setはブール代数Boolean algebraになる
任意にんいの集合しゅうごう U に対たいして、冪集合べきしゅうごうpower set \mathcal P(U) は、包含順序ほうがんじゅんじょ、和集合わしゅうごう、共通部分きょうつうぶぶん、補集合ほしゅうごうによってブール代数Boolean algebraになる。
X\vee Y=X\cup Y
X\wedge Y=X\cap Y
X'=U\setminus X
ここで \vee は結むすびjoin、\wedge は交まじわりmeet、' は補元ほげんを表あらわす。したがって、論理ろんりの \lor,\land,\lnot は、この例れいではそれぞれ \cup,\cap,U\setminus(-) に対応たいおうする。
この例れいでは 0=\varnothing、1=U である。和集合わしゅうごうと共通部分きょうつうぶぶんは 2 つの分配律ぶんぱいりつを満みたし、X'=U\setminus X は X\cap X'=\varnothing、X\cup X'=U を満みたす。したがって、上うえのブール代数だいすうBoolean algebraの定義ていぎをすべて満みたす。
data/lecture/math/discrete-math/power-set-basics.lecture.n.md
3A power set冪集合べきしゅうごう is a Boolean algebraブール代数だいすう
For any set U, the power set冪集合べきしゅうごう \mathcal P(U) becomes a Boolean algebra using the inclusion order, union, intersection, and complement.
X\vee Y=X\cup Y
X\wedge Y=X\cap Y
X'=U\setminus X
Here \vee denotes join結むすび, \wedge denotes meet交まじわり, and ' denotes complementation. Thus the logical operations \lor,\land,\lnot correspond in this example to \cup,\cap,U\setminus(-), respectively.
Here 0=\varnothing and 1=U. Union and intersection satisfy both distributive laws, and X'=U\setminus X satisfies X\cap X'=\varnothing and X\cup X'=U. Thus every part of the definition of a Boolean algebra is satisfied.
data/lecture/math/discrete-math/power-set-basics.lecture.n.md
4ド・モルガンの法則De Morgan's laws
ド・モルガンの法則De Morgan's lawsは、否定ひていが「かつ」と「または」を入いれ替かえることを表あらわす。
論理ろんりでは
\lnot(P\land Q)\Leftrightarrow (\lnot P)\lor(\lnot Q)
\lnot(P\lor Q)\Leftrightarrow (\lnot P)\land(\lnot Q)
である。集合しゅうごうでは
U\setminus(A\cap B)=(U\setminus A)\cup(U\setminus B)
U\setminus(A\cup B)=(U\setminus A)\cap(U\setminus B)
である。
4De Morgan's lawsド・モルガンの法則
De Morgan's lawsド・モルガンの法則 say that negation interchanges “and” and “or.”
In logic,
\lnot(P\land Q)\Leftrightarrow (\lnot P)\lor(\lnot Q)
\lnot(P\lor Q)\Leftrightarrow (\lnot P)\land(\lnot Q)
and for sets,
U\setminus(A\cap B)=(U\setminus A)\cup(U\setminus B)
U\setminus(A\cup B)=(U\setminus A)\cap(U\setminus B).
5何なにを抽象化ちゅうしょうかしているか
ブール代数Boolean algebraは、対象たいしょうが命題めいだいなのか集合しゅうごうなのかをいったん忘わすれて、演算えんざんの満みたす法則ほうそくだけを見みる。保存ほぞんされるのは、結むすび、交まじわり、補元ほげん、最大元さいだいげん、最小元さいしょうげんに関かんする構造こうぞうである。
この抽象化ちゅうしょうかにより、論理回路ろんりかいろ、集合族しゅうごうぞく、条件分岐じょうけんぶんき、検索条件けんさくじょうけんの組くみ合あわせを同おなじ形式けいしきで扱あつかえる。
具体的ぐたいてきな命題めいだいpropositionや集合しゅうごうsetを置おき換かえても、同おなじ結むすびjoin・交まじわりmeet・補元ほげんcomplementの法則ほうそくで計算けいさんできることが要点ようてんである。対象たいしょうそのものではなく、演算えんざんが保存ほぞんする構造こうぞうを見みている。
5What is being abstracted
Boolean algebraブール代数だいすう temporarily ignores whether the objects are propositions or sets, and focuses only on the laws satisfied by the operations. The preserved structure concerns joins結むすび, meets交まじわり, complements補元ほげん, greatest elements, and least elements.
This abstraction lets logical circuits, families of sets, conditional branches, and search conditions be handled by the same formal rules.
The point is that even after replacing concrete propositions命題めいだい or sets集合しゅうごう, calculations use the same laws for joins結むすび, meets交まじわり, and complements補元ほげん. We are looking at the structure preserved by the operations, not at the objects themselves.
6証明しょうめい補足ほそく:補元ほげんcomplementの一意性いちいせい
ブール代数だいすうBoolean algebra で x の補元ほげんcomplement が一意いちいであることを示しめす。y と z がどちらも x の補元ほげんだとする。つまり
x\wedge y=0,
\quad x\vee y=1,
\qquad
x\wedge z=0,
\quad x\vee z=1
である。このとき
y=y\wedge 1
=y\wedge (x\vee z)
=(y\wedge x)\vee (y\wedge z)
=0\vee (y\wedge z)
=y\wedge z
\le z.
同おなじ議論ぎろんで z\le y も従したがうので、反対称性はんたいしょうせいantisymmetryより y=z である。
6Proof supplement: uniqueness of complements補元ほげん
In a Boolean algebraブール代数だいすう, the complement補元ほげん of x is unique. Suppose y and z are both complements of x, meaning
x\wedge y=0,
\quad x\vee y=1,
\qquad
x\wedge z=0,
\quad x\vee z=1.
Then
y=y\wedge 1
=y\wedge (x\vee z)
=(y\wedge x)\vee (y\wedge z)
=0\vee (y\wedge z)
=y\wedge z
\le z.
The same argument gives z\le y, so antisymmetry反対称性はんたいしょうせい implies y=z.
7証明しょうめい補足ほそく:ド・モルガンの法則De Morgan's laws
補元ほげんcomplementの一意性いちいせいを使つかうと、ド・モルガンの法則ほうそくDe Morgan's laws も見通みとおしよく証明しょうめいできる。たとえば x\wedge y の補元ほげんが x'\vee y' であることを示しめせばよい。
(x\wedge y)\wedge (x'\vee y')
=((x\wedge y)\wedge x')\vee((x\wedge y)\wedge y')=0,
(x\wedge y)\vee (x'\vee y')
=(x\vee x'\vee y')\wedge (y\vee x'\vee y')=1.
よって補元ほげんの一意性いちいせいから
(x\wedge y)'=x'\vee y'
である。同おなじ方法ほうほうで (x\vee y)'=x'\wedge y' も得えられる。
7Proof supplement: De Morgan's lawsド・モルガンの法則
Using uniqueness of complements補元ほげん, De Morgan's lawsド・モルガンの法則 can be proved cleanly. For example, it is enough to show that x'\vee y' is a complement of x\wedge y.
(x\wedge y)\wedge (x'\vee y')
=((x\wedge y)\wedge x')\vee((x\wedge y)\wedge y')=0,
(x\wedge y)\vee (x'\vee y')
=(x\vee x'\vee y')\wedge (y\vee x'\vee y')=1.
Therefore uniqueness of complements gives
(x\wedge y)'=x'\vee y'.
The same method gives (x\vee y)'=x'\wedge y'.