markdown
二項演算と閉包性md d1cf62a
lecture/math/abstract-algebra/binary-operations-and-closure.lecture.n.md
Download PDF

二項演算にこうえんざんbinary operation閉包性へいほうせいclosure

date2026-07-14document_iddoc_d880ab6a7d6c67f0e8c73039b8a9c338description二項演算、閉包性、結合法則、可換性、単位元、逆元を、群・環・体へ進むための共通語彙として説明する。prerequisites[集合/しゅうごう]の基[本/ほん]type講義content_typelecturestatusactiverelateddata/lecture/math/abstract-algebra/introduction-to-algebraic-structures.lecture.n.md / data/lecture/math/abstract-algebra/semigroups-monoids-and-groups.lecture.n.md / data/exercise/math/abstract-algebra/algebraic-structures-and-binary-operations.exercise.n.md
mathabstract-algebraundergraduatelecture

抽象代数ちゅうしょうだいすう最初さいしょ確認かくにんすべき操作そうさは、ふたつのげんからひとつのげんつく操作そうさである。これを二項演算にこうえんざんbinary operationという。

集合しゅうごう S じょう二項演算にこうえんざんとは、写像しゃぞう

[PARSE ERROR: Undefined("Command(\"ast\")")]:S×SS

のことである。つまり、任意にんいa,bSたいして、結果けっか a[PARSE ERROR: Undefined("Command(\"ast\")")]b一意いちいさだまり、しかもふたたSげんになる。

ここでいう写像しゃぞうは、入力にゅうりょくたいして出力しゅつりょくひとさだめる規則きそくである。S×SSげんふたならべたくみ集合しゅうごうあらわす。

この「結果けっかおな集合しゅうごうなかもどる」という条件じょうけん閉包性へいほうせいである。したがって、[PARSE ERROR: Undefined("Command(\"ast\")")]:S×SSいた時点じてん閉包性へいほうせい二項演算にこうえんざん定義ていぎふくまれている。実際じっさい判定はんていでは、まずざんざんのような、よりひろ範囲はんい意味いみ規則きそくかんがえ、それを Sげんどうしに使つかった結果けっかがいつも Sのこるかを調しらべる。

binary operation二項演算にこうえんざん and closure閉包性へいほうせい

The first operation to check in abstract algebra抽象代数ちゅうしょうだいすう is an operation that takes two elements and produces one element. This is called a binary operation二項演算にこうえんざん.

A binary operation二項演算にこうえんざん on a set S is a map

[PARSE ERROR: Undefined("Command(\"ast\")")]:S×SS

That is, for any a,bS, the result a[PARSE ERROR: Undefined("Command(\"ast\")")]b is uniquely determined and is again an element of S.

Here a map means a rule that assigns one output to each input. The set S×S means the set of ordered pairs of elements of S.

The condition that "the result returns to the same set" is closure閉包性へいほうせい. Thus closure is already built into the definition once we write [PARSE ERROR: Undefined("Command(\"ast\")")]:S×SS. In practice, we often begin with a rule, such as addition or subtraction, that is meaningful on a larger domain and then test whether applying it to elements of S always produces an element of S.

1何故なぜ閉包性へいほうせい必要ひつよう

閉包性へいほうせいがないと、演算えんざんS内部ないぶでいつでもかえせない。

たとえば自然数全体しぜんすうぜんたい Nざんかんがえると、

2-5=-3

自然数しぜんすうではない。したがってざんN じょう二項演算にこうえんざんではない。

一方いっぽう整数全体せいすうぜんたい Zざんかんがえると、任意にんい整数せいすう a,bたいして a-b整数せいすうである。したがってざんZ じょう二項演算にこうえんざんである。

1Why closure閉包性へいほうせい is necessary

Without closure閉包性へいほうせい, an operation cannot be repeated inside the same set.

For example, consider subtraction on the natural numbers N:

2-5=-3

The result is not a natural number. Therefore subtraction is not a binary operation二項演算にこうえんざん on N.

On the other hand, if subtraction is considered on the integers Z, then for any integers a,b, the result a-b is an integer. Thus subtraction is a binary operation二項演算にこうえんざん on Z.

2結合法則けつごうほうそく可換性かかんせい

結合法則けつごうほうそくassociative lawは、任意にんいa,b,cSたいして、みっうえげん演算えんざんするときに括弧かっこ位置いち結果けっか影響えいきょうしないことをあらわす。

(a[PARSE ERROR: Undefined("Command(\"ast\")")]b)[PARSE ERROR: Undefined("Command(\"ast\")")]c=a[PARSE ERROR: Undefined("Command(\"ast\")")](b[PARSE ERROR: Undefined("Command(\"ast\")")]c)

結合法則けつごうほうそくがあると、a[PARSE ERROR: Undefined("Command(\"ast\")")]b[PARSE ERROR: Undefined("Command(\"ast\")")]cいても意味いみ曖昧あいまいにならない。

可換性かかんせいcommutativityは、任意にんいa,bSたいして、順序じゅんじょえても結果けっかわらないことをあらわす。

a[PARSE ERROR: Undefined("Command(\"ast\")")]b=b[PARSE ERROR: Undefined("Command(\"ast\")")]a

可換性かかんせいつね仮定かていされるわけではない。行列積ぎょうれつせき置換ちかん合成ごうせい一般いっぱん可換かかんでない。

data/lecture/math/linear-algebra/meaning-of-matrix-multiplication.lecture.n.md

行列ぎょうれつ置換ちかん非可換ひかかん演算えんざんれいとしてげているだけで、このページの判定はんていには使つかわない。

2Associative law and commutativity

The associative law結合法則けつごうほうそく says that for every a,b,cS, the position of parentheses does not affect the result when three or more elements are combined.

(a[PARSE ERROR: Undefined("Command(\"ast\")")]b)[PARSE ERROR: Undefined("Command(\"ast\")")]c=a[PARSE ERROR: Undefined("Command(\"ast\")")](b[PARSE ERROR: Undefined("Command(\"ast\")")]c)

When the associative law結合法則けつごうほうそく holds, writing a[PARSE ERROR: Undefined("Command(\"ast\")")]b[PARSE ERROR: Undefined("Command(\"ast\")")]c is not ambiguous.

Commutativity可換性かかんせい says that for every a,bS, changing the order順序じゅんじょ does not change the result.

a[PARSE ERROR: Undefined("Command(\"ast\")")]b=b[PARSE ERROR: Undefined("Command(\"ast\")")]a

Commutativity is not always assumed. Matrix multiplication and composition of permutations are generally not commutative.

data/lecture/math/linear-algebra/meaning-of-matrix-multiplication.lecture.n.md

Matrices and permutations are mentioned only as examples of noncommutative operations; they are not used in the tests on this page.

3単位元たんいげん逆元ぎゃくげん

単位元たんいげんidentity elementとは、すべての aSたいして演算えんざんしても相手あいてえない eS である。

e[PARSE ERROR: Undefined("Command(\"ast\")")]a=a[PARSE ERROR: Undefined("Command(\"ast\")")]e=a

e単位元たんいげんとする。aS逆元ぎゃくげんinverse elementとは、a左右さゆうどちらのじゅん演算えんざんしても単位元たんいげんもどa-1S である。

a[PARSE ERROR: Undefined("Command(\"ast\")")]a-1=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]a=e

両側りょうがわ単位元たんいげん存在そんざいすれば一意いちいである。実際じっさいe,f がともに両側りょうがわ単位元たんいげんなら、e=e[PARSE ERROR: Undefined("Command(\"ast\")")]f=f となる。

単位元たんいげん逆元ぎゃくげんは、方程式ほうていしきくために重要じゅうようである。a[PARSE ERROR: Undefined("Command(\"ast\")")]x=bひだりから a-1演算えんざんし、括弧かっこえて x=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]bみちびくには、逆元ぎゃくげんくわえて結合法則けつごうほうそく単位元たんいげん仮定かていする。すると、

a-1[PARSE ERROR: Undefined("Command(\"ast\")")](a[PARSE ERROR: Undefined("Command(\"ast\")")]x)=(a-1[PARSE ERROR: Undefined("Command(\"ast\")")]a)[PARSE ERROR: Undefined("Command(\"ast\")")]x=e[PARSE ERROR: Undefined("Command(\"ast\")")]x=x

だから、a[PARSE ERROR: Undefined("Command(\"ast\")")]x=b両辺りょうへんひだりから a-1演算えんざんして x=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]bる。ぎゃくにこの x代入だいにゅうすれば a[PARSE ERROR: Undefined("Command(\"ast\")")](a-1[PARSE ERROR: Undefined("Command(\"ast\")")]b)=(a[PARSE ERROR: Undefined("Command(\"ast\")")]a-1)[PARSE ERROR: Undefined("Command(\"ast\")")]b=e[PARSE ERROR: Undefined("Command(\"ast\")")]b=b なので、これは実際じっさいかいである。

さらに、結合法則けつごうほうそく両側りょうがわ単位元たんいげんがあるとき、あるげん両側りょうがわ逆元ぎゃくげん存在そんざいすれば一意いちいである。u,v がともに a両側りょうがわ逆元ぎゃくげんなら、

u=u[PARSE ERROR: Undefined("Command(\"ast\")")]e=u[PARSE ERROR: Undefined("Command(\"ast\")")](a[PARSE ERROR: Undefined("Command(\"ast\")")]v)=(u[PARSE ERROR: Undefined("Command(\"ast\")")]a)[PARSE ERROR: Undefined("Command(\"ast\")")]v=e[PARSE ERROR: Undefined("Command(\"ast\")")]v=v

となる。ここで結合法則けつごうほうそく使つかったことが重要じゅうようである。

3Identity element and inverse element逆元ぎゃくげん

An identity element単位元たんいげん is an element eS that leaves every aS unchanged on both sides.

e[PARSE ERROR: Undefined("Command(\"ast\")")]a=a[PARSE ERROR: Undefined("Command(\"ast\")")]e=a

Let e be an identity element. An inverse element逆元ぎゃくげん of aS is an element a-1S that brings a back to the identity in either order.

a[PARSE ERROR: Undefined("Command(\"ast\")")]a-1=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]a=e

A two-sided identity, if it exists, is unique. Indeed, if both e and f are two-sided identities, then e=e[PARSE ERROR: Undefined("Command(\"ast\")")]f=f.

Identity elements and inverses are important for solving equations. To derive x=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]b from a[PARSE ERROR: Undefined("Command(\"ast\")")]x=b by operating with a-1 on the left and reassociating, assume associativity and an identity in addition to the inverse. Then

a-1[PARSE ERROR: Undefined("Command(\"ast\")")](a[PARSE ERROR: Undefined("Command(\"ast\")")]x)=(a-1[PARSE ERROR: Undefined("Command(\"ast\")")]a)[PARSE ERROR: Undefined("Command(\"ast\")")]x=e[PARSE ERROR: Undefined("Command(\"ast\")")]x=x.

Thus applying a-1 on the left of both sides gives x=a-1[PARSE ERROR: Undefined("Command(\"ast\")")]b. Conversely, substituting this value gives a[PARSE ERROR: Undefined("Command(\"ast\")")](a-1[PARSE ERROR: Undefined("Command(\"ast\")")]b)=(a[PARSE ERROR: Undefined("Command(\"ast\")")]a-1)[PARSE ERROR: Undefined("Command(\"ast\")")]b=e[PARSE ERROR: Undefined("Command(\"ast\")")]b=b, so it really is a solution.

Moreover, when associativity and a two-sided identity hold, a two-sided inverse of an element is unique if it exists. If u and v are both two-sided inverses of a, then

u=u[PARSE ERROR: Undefined("Command(\"ast\")")]e=u[PARSE ERROR: Undefined("Command(\"ast\")")](a[PARSE ERROR: Undefined("Command(\"ast\")")]v)=(u[PARSE ERROR: Undefined("Command(\"ast\")")]a)[PARSE ERROR: Undefined("Command(\"ast\")")]v=e[PARSE ERROR: Undefined("Command(\"ast\")")]v=v.

The use of associativity in this argument is essential.

4具体例ぐたいれい演算表えんざんひょう

集合しゅうごう S={0,1,2} に、3 でったあまりのざんれる。

a[PARSE ERROR: Undefined("Command(\"ast\")")]b を、a+b を 3 でったあまりとさだめる。

このとき演算表えんざんひょうつぎのようになる。ぎょうひだりげんれつみぎげんとする。

[PARSE ERROR: Undefined("Command(\"ast\")")]012
0012
1120
2201

すべての結果けっかSはいっているので閉包性へいほうせいがある。0 は単位元たんいげんであり、0 の逆元ぎゃくげんは 0、1 の逆元ぎゃくげんは 2、2 の逆元ぎゃくげんは 1 である。また、(a[PARSE ERROR: Undefined("Command(\"ast\")")]b)[PARSE ERROR: Undefined("Command(\"ast\")")]ca[PARSE ERROR: Undefined("Command(\"ast\")")](b[PARSE ERROR: Undefined("Command(\"ast\")")]c) はどちらも a+b+c を 3 でったあまりになるのでひとしく、結合法則けつごうほうそく成立せいりつする。したがって、このれいつぎ講義こうぎ定義ていぎするぐんになる。

4Concrete example: reading an operation table

Put addition modulo 3 on the set S={0,1,2}: define a[PARSE ERROR: Undefined("Command(\"ast\")")]b to be the remainder of a+b upon division by 3.

The operation table is as follows, with the left operand indexing the row and the right operand indexing the column.

[PARSE ERROR: Undefined("Command(\"ast\")")]012
0012
1120
2201

Every result lies in S, so closure holds. The element 0 is the identity; the inverse of 0 is 0, the inverse of 1 is 2, and the inverse of 2 is 1. Both (a[PARSE ERROR: Undefined("Command(\"ast\")")]b)[PARSE ERROR: Undefined("Command(\"ast\")")]c and a[PARSE ERROR: Undefined("Command(\"ast\")")](b[PARSE ERROR: Undefined("Command(\"ast\")")]c) are the remainder of a+b+c upon division by 3, so they are equal and the operation is associative. Thus this example is a groupぐん, as defined in the next lecture.

6判定はんてい補足ほそく演算えんざん性質せいしつ別々べつべつ確認かくにんする

集合しゅうごう S規則きそく [PARSE ERROR: Undefined("Command(\"ast\")")]あたえられたとき、まず a,bSa[PARSE ERROR: Undefined("Command(\"ast\")")]bS確認かくにんして、[PARSE ERROR: Undefined("Command(\"ast\")")]:S×SS二項演算にこうえんざんbinary operationとしてさだまっているかをる。これは閉包性へいほうせいclosureだけの確認かくにんであり、結合法則けつごうほうそく可換性かかんせい単位元たんいげん逆元ぎゃくげんはまだ保証ほしょうしない。

たとえば Z じょうざんsubtraction a[PARSE ERROR: Undefined("Command(\"ast\")")]b=a-b閉包性へいほうせいclosureつが、

(5-3)-1=1,5-(3-1)=3

なので結合法則けつごうほうそくたさない。したがって、閉包性へいほうせいclosureがあることとぐんちか性質せいしつつことは別問題べつもんだいである。

6Test supplement: check properties of an operation演算えんざん separately

Given a set S and a rule [PARSE ERROR: Undefined("Command(\"ast\")")], first check a,bSa[PARSE ERROR: Undefined("Command(\"ast\")")]bS to see whether [PARSE ERROR: Undefined("Command(\"ast\")")]:S×SS is a binary operation二項演算にこうえんざん. This checks only closure閉包性へいほうせい; it does not yet guarantee associativity, commutativity, an identity element単位元たんいげん, or inverse elements.

For example, subtraction a[PARSE ERROR: Undefined("Command(\"ast\")")]b=a-b on Z has closure, but

(5-3)-1=1,5-(3-1)=3

so it does not satisfy associativity. Thus having closure and having group-like properties are separate questions.

7まとめ

二項演算にこうえんざんは、集合しゅうごうふたつのげんからおな集合しゅうごうげんつく写像しゃぞうである。閉包性へいほうせい結合法則けつごうほうそく可換性かかんせい単位元たんいげん逆元ぎゃくげんは、ぐんかんたい定義ていぎするための基本きほん語彙ごいである。

7Summary

A binary operation二項演算にこうえんざん is a map that takes two elements of a set and produces an element of the same set. Closure閉包性へいほうせい, the associative law結合法則けつごうほうそく, commutativity可換性かかんせい, an identity element単位元たんいげん, and inverse elements逆元ぎゃくげん are the basic vocabulary used to define groupsぐん, ringsかん, and fieldsたい.

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
タブを全て閉じる