markdown
ブール代数の基本md c719f41
lecture/math/discrete-math/boolean-algebra-basics.lecture.n.md
Download PDF

ブール代数Boolean algebraの基本きほん

document_iddoc_f2c1125c4185993d00a57c7b4f3e09detitleブール代数の基本 講義type講義content_typelecturedate2026-07-01categorymathdescription命題論理、集合演算、べき集合の束をつなぐブール代数の基本を説明する。prerequisites集合演算 / 論理演算 / 半順序関係 / 束の基本relateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md / data/lecture/math/discrete-math/power-set-basics.lecture.n.md / data/lecture/math/discrete-math/lattice-basics.lecture.n.md / data/exercise/math/discrete-math/order-isomorphisms-and-boolean-algebras.exercise.n.md

Basics of Boolean algebraブール代数だいすう

ブール代数Boolean algebraは、論理ろんりlogicと集合演算しゅうごうえんざんset operationを同おなじ形かたちで扱あつかうための構造こうぞうである。命題めいだいpropositionの「かつ」「または」「でない」と、集合しゅうごうsetの共通部分きょうつうぶぶんintersection、和集合わしゅうごうunion、補集合ほしゅうごうcomplementは対応たいおうしている。

data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md data/lecture/math/discrete-math/lattice-basics.lecture.n.md

Boolean algebraブール代数だいすう is a structure for treating logic論理ろんり and set operations集合演算しゅうごうえんざん in the same formal shape. The propositional operations “and,” “or,” and “not” correspond to intersection共通部分きょうつうぶぶん, union和集合わしゅうごう, and complement補集合ほしゅうごう of sets集合しゅうごう.

data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md data/lecture/math/discrete-math/lattice-basics.lecture.n.md

1用語ようごと定義ていぎ

束そくlattice (B,∨,∧) が最小元さいしょうげん 0 と最大元さいだいげん 1 を持もち、任意にんいの x,y,z∈B について

x∧(y∨z)=(x∧y)∨(x∧z),
x∨(y∧z)=(x∨y)∧(x∨z)

という 2 つの分配律ぶんぱいりつdistributive lawを満みたすとする。さらに各かく x∈B に、

x∧x′=0,x∨x′=1

を満みたす補元ほげんcomplement x′ を備そなえるとき、(B,∨,∧,′,0,1) をブール代数だいすうBoolean algebraという。つまり、ブール代数だいすうBoolean algebraは補元ほげんを持もつ有界分配束ゆうかいぶんぱいそくbounded distributive latticeである。この後あとで、これらの公理こうりから補元ほげんが一意いちいであることを証明しょうめいする。

1Terms and definition

Let the lattice束そく (B,∨,∧) have a least element 0 and a greatest element 1. Suppose that for every x,y,z∈B it satisfies both distributive laws分配律ぶんぱいりつ:

x∧(y∨z)=(x∧y)∨(x∧z),
x∨(y∧z)=(x∨y)∧(x∨z).

If every x∈B has a complement補元ほげん x′ satisfying

x∧x′=0,x∨x′=1,

then (B,∨,∧,′,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を

SP={x∈U∣P(x)}

とし、同様どうように SQ={x∈U∣Q(x)} とする。

とする。このとき、論理演算ろんりえんざんと集合演算しゅうごうえんざんは次つぎのように対応たいおうする。

論理式ろんりしき真理集合しんりしゅうごう
P∧QSP∩SQ
P∨QSP∪SQ
¬PU∖SP
P⇒Q(U∖SP)∪SQ
P⇔Q(SP∩SQ)∪((U∖SP)∩(U∖SQ))

この対応たいおうにより、論理式ろんりしきの変形へんけいを集合演算しゅうごうえんざんとして読よむことができる。とくに P⇒Q がすべての x∈U で真しんであることは SP⊆SQ と同値どうちであり、P⇔Q がすべての x∈U で真しんであることは SP=SQ と同値どうちである。

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

SP={x∈U∣P(x)}.

Similarly, let SQ={x∈U∣Q(x)}.

Then logical operations and set operations correspond as follows.

FormulaTruth set
P∧QSP∩SQ
P∨QSP∪SQ
¬PU∖SP
P⇒Q(U∖SP)∪SQ
P⇔Q(SP∩SQ)∪((U∖SP)∩(U∖SQ))

This correspondence lets us read transformations of logical formulas as set operations集合演算しゅうごうえんざん. In particular, P⇒Q is true for every x∈U exactly when SP⊆SQ, and P⇔Q is true for every x∈U exactly when SP=SQ.

3冪集合べきしゅうごうpower setはブール代数Boolean algebraになる

任意にんいの集合しゅうごう U に対たいして、冪集合べきしゅうごうpower set [PARSE ERROR: Undefined("Command(\"mathcal\")")]P(U) は、包含順序ほうがんじゅんじょ、和集合わしゅうごう、共通部分きょうつうぶぶん、補集合ほしゅうごうによってブール代数Boolean algebraになる。

X∨Y=X∪Y
X∧Y=X∩Y
X′=U∖X

ここで ∨ は結むすびjoin、∧ は交まじわりmeet、' は補元ほげんを表あらわす。したがって、論理ろんりの ∨,∧,¬ は、この例れいではそれぞれ ∪,∩,U∖(-) に対応たいおうする。

この例れいでは 0=[PARSE ERROR: Undefined("Command(\"varnothing\")")]、1=U である。和集合わしゅうごうと共通部分きょうつうぶぶんは 2 つの分配律ぶんぱいりつを満みたし、X′=U∖X は X∩X′=[PARSE ERROR: Undefined("Command(\"varnothing\")")]、X∪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冪集合べきしゅうごう [PARSE ERROR: Undefined("Command(\"mathcal\")")]P(U) becomes a Boolean algebra using the inclusion order, union, intersection, and complement.

X∨Y=X∪Y
X∧Y=X∩Y
X′=U∖X

Here ∨ denotes join結むすび, ∧ denotes meet交まじわり, and ' denotes complementation. Thus the logical operations ∨,∧,¬ correspond in this example to ∪,∩,U∖(-), respectively.

Here 0=[PARSE ERROR: Undefined("Command(\"varnothing\")")] and 1=U. Union and intersection satisfy both distributive laws, and X′=U∖X satisfies X∩X′=[PARSE ERROR: Undefined("Command(\"varnothing\")")] and X∪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は、否定ひていが「かつ」と「または」を入いれ替かえることを表あらわす。

論理ろんりでは

¬(P∧Q)⇔(¬P)∨(¬Q)
¬(P∨Q)⇔(¬P)∧(¬Q)

である。集合しゅうごうでは

U∖(A∩B)=(U∖A)∪(U∖B)
U∖(A∪B)=(U∖A)∩(U∖B)

である。

4De Morgan's lawsド・モルガンの法則

De Morgan's lawsド・モルガンの法則 say that negation interchanges “and” and “or.”

In logic,

¬(P∧Q)⇔(¬P)∨(¬Q)
¬(P∨Q)⇔(¬P)∧(¬Q)

and for sets,

U∖(A∩B)=(U∖A)∪(U∖B)
U∖(A∪B)=(U∖A)∩(U∖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∧y=0,x∨y=1,x∧z=0,x∨z=1

である。このとき

y=y∧1=y∧(x∨z)=(y∧x)∨(y∧z)=0∨(y∧z)=y∧z[PARSE ERROR: Undefined("Command(\"le\")")]z.

同おなじ議論ぎろんで z[PARSE ERROR: Undefined("Command(\"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∧y=0,x∨y=1,x∧z=0,x∨z=1.

Then

y=y∧1=y∧(x∨z)=(y∧x)∨(y∧z)=0∨(y∧z)=y∧z[PARSE ERROR: Undefined("Command(\"le\")")]z.

The same argument gives z[PARSE ERROR: Undefined("Command(\"le\")")]y, so antisymmetry反対称性はんたいしょうせい implies y=z.

7証明しょうめい補足ほそく:ド・モルガンの法則De Morgan's laws

補元ほげんcomplementの一意性いちいせいを使つかうと、ド・モルガンの法則ほうそくDe Morgan's laws も見通みとおしよく証明しょうめいできる。たとえば x∧y の補元ほげんが x′∨y′ であることを示しめせばよい。

(x∧y)∧(x′∨y′)=((x∧y)∧x′)∨((x∧y)∧y′)=0,
(x∧y)∨(x′∨y′)=(x∨x′∨y′)∧(y∨x′∨y′)=1.

よって補元ほげんの一意性いちいせいから

(x∧y)′=x′∨y′

である。同おなじ方法ほうほうで (x∨y)′=x′∧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′∨y′ is a complement of x∧y.

(x∧y)∧(x′∨y′)=((x∧y)∧x′)∨((x∧y)∧y′)=0,
(x∧y)∨(x′∨y′)=(x∨x′∨y′)∧(y∨x′∨y′)=1.

Therefore uniqueness of complements gives

(x∧y)′=x′∨y′.

The same method gives (x∨y)′=x′∧y′.

8演習えんしゅうリンクとまとめ

data/exercise/math/discrete-math/order-isomorphisms-and-boolean-algebras.exercise.n.md

ブール代数Boolean algebraは、論理ろんりと集合演算しゅうごうえんざんをつなぐ構造こうぞうである。冪集合べきしゅうごうpower setは標準的ひょうじゅんてきなブール代数Boolean algebraの例れいであり、ド・モルガンの法則De Morgan's lawsはその中心ちゅうしん的てきな計算けいさん法則ほうそくである。

8Exercise link and summary

data/exercise/math/discrete-math/order-isomorphisms-and-boolean-algebras.exercise.n.md

Boolean algebraブール代数だいすう is a structure connecting logic論理ろんり and set operations集合演算しゅうごうえんざん. A power set冪集合べきしゅうごう is a standard example of a Boolean algebra, and De Morgan's lawsド・モルガンの法則 are central calculation laws in it.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる