markdown
ブール代数の基本md 98cb7db
lecture/math/discrete-math/ブール代数の基本-講義.n.md
Download PDF

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

titleブール代数の基本 講義type講義content_typelecturedate2026-06-06categorymathdescription命題論理、集合演算、べき集合の束をつなぐブール代数の基本を説明する。relateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md

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

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

data/lecture/math/discrete-math/命題・述語と量化-講義.n.md data/lecture/math/discrete-math/束の基本-講義.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/命題・述語と量化-講義.n.md data/lecture/math/discrete-math/束の基本-講義.n.md

1命題めいだい集合しゅうごう対応たいおう

全体集合ぜんたいしゅうごうuniversal set U固定こていし、述語じゅつご P(x)真理集合しんりしゅうごうtruth set

SP={xUP(x)}

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

論理ろんり集合しゅうごう
PQSPSQ
PQSPSQ
¬PUSP
PQSPSQ
PQSP=SQ

この対応たいおうにより、論理式ろんりしき変形へんけい集合演算しゅうごうえんざんとしてむことができる。

1Correspondence between propositions and sets

Fix a universal set全体集合ぜんたいしゅうごう U, and let the truth set真理集合しんりしゅうごう of a predicate P(x) be

SP={xUP(x)}.

Then logical operations and set operations correspond as follows.

LogicSet
PQSPSQ
PQSPSQ
¬PUSP
PQSPSQ
PQSP=SQ

This correspondence lets us read transformations of logical formulas as set operations集合演算しゅうごうえんざん.

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

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

XY=XY
XY=XY
[PARSE ERROR: Undefined("Command(\"neg\")")]X=UX

ここで むすjoinまじわりmeet対応たいおうする。

data/lecture/math/discrete-math/べき集合の基本-講義.n.md

2A 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.

XY=XY
XY=XY
[PARSE ERROR: Undefined("Command(\"neg\")")]X=UX

Here corresponds to joinむす, and corresponds to meetまじわり.

data/lecture/math/discrete-math/べき集合の基本-講義.n.md

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

ド・モルガンの法則De Morgan's lawsは、否定ひていが「かつ」と「または」をえることをあらわす。

論理ろんりでは

¬(PQ)(¬P)(¬Q)
¬(PQ)(¬P)(¬Q)

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

U(AB)=(UA)(UB)
U(AB)=(UA)(UB)

である。

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

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

In logic,

¬(PQ)(¬P)(¬Q)
¬(PQ)(¬P)(¬Q)

and for sets,

U(AB)=(UA)(UB)
U(AB)=(UA)(UB).

4なに抽象化ちゅうしょうかしているか

ブール代数Boolean algebraは、対象たいしょう命題めいだいなのか集合しゅうごうなのかをいったんわすれて、演算えんざんたす法則ほうそくだけをる。保存ほぞんされるのは、むすび、まじわり、補元ほげん最大元さいだいげん最小元さいしょうげんかんする構造こうぞうである。

この抽象化ちゅうしょうかにより、論理回路ろんりかいろ集合族しゅうごうぞく条件分岐じょうけんぶんき検索条件けんさくじょうけんわせをおな形式けいしきあつかえる。

具体的ぐたいてき命題めいだいproposition集合しゅうごうsetえても、おなむすjoinまじわりmeet補元ほげんcomplement法則ほうそく計算けいさんできることが要点ようてんである。対象たいしょうそのものではなく、演算えんざん保存ほぞんする構造こうぞうている。

4What 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.

5証明しょうめい補足ほそく補元ほげんcomplement一意性いちいせい

ブール代数だいすうBoolean algebrax補元ほげんcomplement一意いちいであることをしめす。yz がどちらも x補元ほげんだとする。つまり

xy=0,xy=1,xz=0,xz=1

である。このとき

y=y1=y(xz)=(yx)(yz)=0(yz)=yz[PARSE ERROR: Undefined("Command(\"le\")")]z.

おな議論ぎろんz[PARSE ERROR: Undefined("Command(\"le\")")]yしたがうので、反対称性はんたいしょうせいantisymmetryより y=z である。

5Proof supplement: uniqueness of complements補元ほげん

In a Boolean algebraブール代数だいすう, the complement補元ほげん of x is unique. Suppose y and z are both complements of x, meaning

xy=0,xy=1,xz=0,xz=1.

Then

y=y1=y(xz)=(yx)(yz)=0(yz)=yz[PARSE ERROR: Undefined("Command(\"le\")")]z.

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

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

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

(xy)(xy)=((xy)x)((xy)y)=0,
(xy)(xy)=(xxy)(yxy)=1.

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

(xy)=xy

である。おな方法ほうほう(xy)=xyられる。

6Proof 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 xy is a complement of xy.

(xy)(xy)=((xy)x)((xy)y)=0,
(xy)(xy)=(xxy)(yxy)=1.

Therefore uniqueness of complements gives

(xy)=xy.

The same method gives (xy)=xy.

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

data/exercise/math/discrete-math/順序同型とブール代数-基本演習.n.md

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

7Exercise link and summary

data/exercise/math/discrete-math/順序同型とブール代数-基本演習.n.md

Boolean algebraブール代数だいすう is a structure connecting logic論理ろんり and set operations集合演算しゅうごうえんざん. The power set冪集合べきしゅうごう is the most basic 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
タブを全て閉じる