Associative binary operation: Difference between revisions
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{binary operation property}} | {{binary operation property}} | ||
<section begin= | <section begin=beginner/> | ||
==Definition== | ==Definition== | ||
===Definition | ===Definition in infix notation=== | ||
Let <math>S</math> be a set and <math>*</math> be a binary operation on <math>S</math> (viz, <math>*</math> is a map <math>S \times S \to S</math>). Then, <math>*</math> is said to be '''associative''' if, for every <math>a, b, c</math> in <math>S</math>, the following identity holds: | Let <math>S</math> be a set and <math>*</math> be a binary operation on <math>S</math> (viz, <math>*</math> is a map <math>S \times S \to S</math>), making <math>(S,*)</math> a [[magma]]. We denote <math>*</math> using infix notation, so that its application to <math>x,y \in S</math> is denoted <math>x * y</math>. Then, <math>*</math> is said to be '''associative''' if, for every <math>a, b, c</math> in <math>S</math>, the following identity holds: | ||
<math>(a * b) * c = a * (b * c)</math> | <math>(a * b) * c = a * (b * c)</math> | ||
The | where equality holds as elements of <math>S</math>. | ||
Note that <math>a,b,c</math> are allowed to be equal or distinct. In particular, the above holds when all are equal, all are distinct, or two are equal and the third distinct. | |||
''Detailed explanation of expressions and their interpretation'': The left side expression <math>(a * b) * c</math> is termed the '''left associated expression''' for <math>a,b,c</math> and is interpreted and evaluated as follows. We first consider <math>a * b</math>. Since <math>a,b \in S</math>, we have <math>a * b \in S</math>. We now consider the elements <math>a * b,c \in S</math>. Since both of these are in <math>S</math>, <math>(a * b) * c \in S</math>. | |||
The right side expression <math>a * (b * c)</math> is termed the '''right associated expression''' for <math>a,b,c</math> and is interpreted and evaluated as follows. Since <math>b,c \in S</math>, we have <matH>b * c \in S</math>. We consider consider the elements <math>a, b * c \in S</math>. Since both of these are in <math>S</math>, <math>a * (b * c) \in S</math>. | |||
If, for a given <math>a, b, c</math>, the left associated expression and the right associated expression are equal, <math>a, b, c</math> are said to ''associate''. Associativity basically says that ''every'' ordered triple of elements associates. | |||
===Definition in usual function notation=== | |||
Let <math>S</math> be a set and <math>f: S \times S \to S</math> be a binary operation. We say that <math>f</math> is '''associative''' if it satisfies the following for all <matH>a,b,c \in S</math>: | |||
<math>f(f(a,b),c) = f(a,f(b,c))</math> | |||
We see that the condition feels a lot less intuitive in function notation than with the infix notation, which is why infix notation is generally preferred for describing associativity in the context of binary operations. | |||
===Related term=== | ===Related term=== | ||
A set equipped with an associative binary operation is termed a [[semigroup]]. If, further, there is a [[neutral element]] (identity element) for the associative binary operation, the set is termed a [[monoid]]. | A set equipped with an associative binary operation is termed a [[semigroup]]. If, further, there is a [[neutral element]] (identity element) for the associative binary operation, the set is termed a [[monoid]]. | ||
<section end=beginner/> | |||
==Numerical invariants== | |||
The associative law is typically viewed as a universally quantified identity. In this context, we discuss some invariants that can be associated with the identity. | |||
{| class="sortable" border="1" | |||
! Invariant !! Value !! Significance | |||
|- | |||
| minimum number of variables in terms of which the identity can be expressed || 3 || A [[magma]] is associative if and only if the submagma generated by any <math>3</math> elements is associative; nothing smaller than <math>3</math> works. | |||
|- | |||
| if homogeneous, then total degree || 3 || The associative law is homogeneous of degree three, i.e., all expressions are products of length three. This allows us to use the techniques of operad theory. For more, see [[associativity operad]]. | |||
|- | |||
| degree of the identity in each variable || 1 || when this identity is viewed for the multiplicative operation of a ring or algebra, it is a ''linear'' identity in each variable. In particular, the set of values for each variable such that the identity holds for all values of the other variables is an additive subgroup. | |||
|} | |||
<section begin=beginner/> | |||
==Facts== | ==Facts== | ||
Line 37: | Line 70: | ||
<math>a_1 * (a_2 * (a_3 * a_4)) = a_1 * ((a_2 * a_3) * a_4) = (a_1 * (a_2 * a_3)) * a_4 = ((a_1 * a_2) * a_3) * a_4</math> | <math>a_1 * (a_2 * (a_3 * a_4)) = a_1 * ((a_2 * a_3) * a_4) = (a_1 * (a_2 * a_3)) * a_4 = ((a_1 * a_2) * a_3) * a_4</math> | ||
For this reason, we always use infix operator symbols for associative binary operations, and often even drop the operator symbol, so that the | For this reason, we always use infix operator symbols for associative binary operations, and often even drop the operator symbol, so that the expression <math>a_1 * a_2 ... * a_n</math> is just written as: <math>a_1a_2 \dots a_n</math>. | ||
Also, the re-parenthesization identities (i.e., all identities that are special cases of generalized associativity) are the ''only'' identities that can be proved using associativity. | |||
===Associativity pentagon=== | ===Associativity pentagon=== | ||
Line 43: | Line 78: | ||
{{further|[[Associativity pentagon]]}} | {{further|[[Associativity pentagon]]}} | ||
The associativity pentagon is a pentagon whose vertices are the five different ways of associating a product of length four, with an edge between two vertices if moving from one to the other requires a single application of the associative law. This is a cyclic pentagon. The associativity pentagon is significant because, loosely, it generates all ''relations'' between the different ways of applying the associativity law to re-parenthesize expressions. It also helps to prove results about the set of left-associative, middle-associative, and right-associative elements. | The associativity pentagon is a pentagon whose vertices are the five different ways of associating a product of length four, with an edge between two vertices if moving from one to the other requires a single application of the associative law. This is a cyclic pentagon. The associativity pentagon is significant because, loosely, it generates all ''relations'' between the different ways of applying the associativity law to re-parenthesize expressions. It also helps to prove results about the set of left-associative, middle-associative, and right-associative elements. It is also related to the [[associator identity]]. | ||
===Power structure=== | |||
{{further|[[power-associative magma]]}} | |||
In the presence of associativity, it is possible to unambiguously define positive powers of any element. Explicitly, <math>x^n</math> is the <math>n</math>-fold product <math>x * x * \dots * x</math>. The powers satisfy the usual laws of powers: <math>x^m * x^n = x^{m + n}</math> and <math>(x^m)^n = x^{mn}</math> for all <math>m,n \in \mathbb{N}</math>. Note that this also implies that all powers of <math>x</math> commute with each other. | |||
Note that to define powers, we do not actually need global associativity, but only [[power-associative magma|power-associativity]]: the submagma generated by any single element must be associative. | |||
===Invertibility=== | |||
* [[Equality of left and right inverses in monoid]]: Associativity can be used to deduce that any left inverse and right inverse with respect to a [[neutral element]] must be equal. | |||
* [[Two-sided inverse is unique if it exists in monoid]]: Associativity can be used to show uniqueness of two-sided inverses in a monoid. | |||
* [[Invertible implies cancellative in monoid]]: Associativity can be used to show that an element with a left inverse is left-cancellative, and an element with a right inverse is right-cancellative. | |||
In a | <section end="beginner"/> | ||
===Verification of associativity for a ring=== | |||
Suppose <math>R</math> is a commutative unital ring and <math>A</math> is a (possibly associative, possibly non-associative) algebra over <math>R</math>. In other words, <math>A</math> is a <math>R</math>-module and <math>*: A \times A \to A</math> is a (possibly associative, possibly non-associative) binary operation. | |||
Note first that in order to verify the associativity of multiplication globally, it suffices to verify associativity on a generating set for the additive group of <math>A</math> as a <math>R</math>-module. This is because the [[associator function]] is <math>R</math>-linear in each input: | |||
<math>a(x,y,z) = ((x * y) * z) - (x * (y * z))</math> | |||
'''In the special case that <math>A</math> is freely generated as a <math>R</math>-module, the following test works for associativity''': If <math>e_i, i \in I</math> form a freely generating set of <math>A</math> as a <math>R</math>-module, and <math>\lambda_{ij}^k</math> denote the [[structure constants for a bilinear map|structure constants]], then associativity is the following identity for all <math>i,j,k,l \in I</math>: | |||
<math>\sum_{m \in I} \lambda_{ij}^m\lambda_{mk}^l = \sum_{m \in I} \lambda_{im}^l \lambda_{jk}^m</math> | |||
===Associator on a non-associative ring and the associator identity=== | |||
{{further|[[associator on a non-associative ring]]}} | |||
For a [[non-associative ring]] <math>R</math> with multiplication <math>*</math>, we can define the associator <math>a:R \times R \times R \to R</math> as: | |||
<math>a(x,y,z) = ((x * y) * z) - (x * (y * z))</math> | |||
This is linear in each of its variables. | |||
==Related element properties== | ==Related element properties== | ||
Line 53: | Line 121: | ||
===Left-associative element=== | ===Left-associative element=== | ||
An element is said to be '''left-associative''' with respect to a binary operation if any ordered triple starting with that element associates. | An element is said to be '''left-associative''' or '''left nuclear''' with respect to a binary operation if any ordered triple starting with that element associates. | ||
The set of left-associative elements in any [[magma]] is a [[subsemigroup]] | The set of left-associative elements in any [[magma]] is a [[subsemigroup]] called the [[left nucleus]]. If the magma contains a neutral element, it is a [[submonoid]]. | ||
{{proofat|[[Left-associative elements of magma form submagma]]}} | {{proofat|[[Left-associative elements of magma form submagma]]}} | ||
Line 61: | Line 129: | ||
===Middle-associative element=== | ===Middle-associative element=== | ||
An element is said to be '''middle-associative''' with respect to a binary operation if any ordered triple with that element in the middle, associates. | An element is said to be '''middle-associative''' or '''middle nuclear''' with respect to a binary operation if any ordered triple with that element in the middle, associates. | ||
The set of middle-associative elements in any [[magma]] is a [[subsemigroup]] | The set of middle-associative elements in any [[magma]] is a [[subsemigroup]] called the [[middle nucleus]]. and if the magma contains a neutral element, it is a [[submonoid]]. | ||
{{proofat|[[Middle-associative elements of magma form submagma]]}} | {{proofat|[[Middle-associative elements of magma form submagma]]}} | ||
===Right associative element=== | ===Right-associative element=== | ||
An element is said to be '''right-associative''' with respect to a binary operation if any ordered triple ending with that element associates. | An element is said to be '''right-associative''' with respect to a binary operation if any ordered triple ending with that element associates. | ||
The set of right associative elements in any [[magma]] is a [[subsemigroup]] | The set of right associative elements in any [[magma]] is a [[subsemigroup]] called the [[right nucleus]]. If the magma contains a neutral element, it is a [[submonoid]]. | ||
{{proofat|[[Right-associative elements of magma form submagma]]}} | {{proofat|[[Right-associative elements of magma form submagma]]}} | ||
Line 79: | Line 147: | ||
{{further|[[associative element]]}} | {{further|[[associative element]]}} | ||
An element is said to be '''associative''' if it is left, middle and right associative. The set of associative elements forms a submagma (which contains the neutral element if it exists) termed the [[associative center]] of the magma. | An element is said to be '''associative''' if it is left, middle and right associative. The set of associative elements forms a submagma (which contains the neutral element if it exists) termed the [[associative center]] (or sometimes, the '''nucleus''') of the magma. | ||
< | |||
==Weaker identities== | |||
===Identities obtained directly by duplicating variables=== | |||
{| class="sortable" border="1" | |||
! Algebraic formulation of identity !! Name of identity !! Name of magma satisfying identity !! Name of [[non-associative ring]] satisfying identity | |||
|- | |||
| <math>\! x * (x * y) = (x * x) * y</math> || left-alternativity || [[left-alternative magma]] || [[left-alternative ring]] | |||
|- | |||
| <math>\! x * (y * y) = (x * y) * y</math> || right-alternativity || [[right-alternative magma]] || [[right-alternative ring]] | |||
|- | |||
| <math>\! x * (y * x) = (x * y) * x</math> || flexibility || [[flexible magma]] || [[flexible ring]] | |||
|- | |||
| <math>\! x * (x * x) = (x * x) * x</math> || ? || [[magma in which cubes are well-defined]] || [[ring in which cubes are well-defined]] | |||
|} | |||
===Identities obtained from generalized associativity by duplicating variables=== | |||
We here discuss identities with products of length at most four: | |||
{| class="sortable" border="1" | |||
! Algebraic formulation of identity !! Name of identity !! Name of magma satisfying identity !! Name of [[non-associative ring]] satisfying identity | |||
|- | |||
| <math>\! (x * y) * (x * x) = x * (y * (x * x))</math> || Jordan's identity || ? (if we also assume commutativity, then [[Jordan magma]]) || ? (if we also assume commutativity, then [[Jordan ring]]) | |||
|- | |||
| <math>\! z * (x * (z * y)) = ((z * x) * z) * y</math> || One of Moufang's identities || ? || ? | |||
|- | |||
| <math>\! x * (z * (y * z)) = ((x * z) * y) * z</math> || One of Moufang's identities || ? || ? | |||
|- | |||
| <math>\! (z * x) * (y * z) = (z * (x * y)) * z</math> || One of Moufang's identities || ? || ? | |||
|} |
Latest revision as of 16:10, 22 September 2021
This article defines a property of binary operations (and hence, of magmas)
Definition
Definition in infix notation
Let be a set and be a binary operation on (viz, is a map ), making a magma. We denote using infix notation, so that its application to is denoted . Then, is said to be associative if, for every in , the following identity holds:
where equality holds as elements of .
Note that are allowed to be equal or distinct. In particular, the above holds when all are equal, all are distinct, or two are equal and the third distinct.
Detailed explanation of expressions and their interpretation: The left side expression is termed the left associated expression for and is interpreted and evaluated as follows. We first consider . Since , we have . We now consider the elements . Since both of these are in , .
The right side expression is termed the right associated expression for and is interpreted and evaluated as follows. Since , we have . We consider consider the elements . Since both of these are in , .
If, for a given , the left associated expression and the right associated expression are equal, are said to associate. Associativity basically says that every ordered triple of elements associates.
Definition in usual function notation
Let be a set and be a binary operation. We say that is associative if it satisfies the following for all :
We see that the condition feels a lot less intuitive in function notation than with the infix notation, which is why infix notation is generally preferred for describing associativity in the context of binary operations.
Related term
A set equipped with an associative binary operation is termed a semigroup. If, further, there is a neutral element (identity element) for the associative binary operation, the set is termed a monoid.
Numerical invariants
The associative law is typically viewed as a universally quantified identity. In this context, we discuss some invariants that can be associated with the identity.
Invariant | Value | Significance |
---|---|---|
minimum number of variables in terms of which the identity can be expressed | 3 | A magma is associative if and only if the submagma generated by any elements is associative; nothing smaller than works. |
if homogeneous, then total degree | 3 | The associative law is homogeneous of degree three, i.e., all expressions are products of length three. This allows us to use the techniques of operad theory. For more, see associativity operad. |
degree of the identity in each variable | 1 | when this identity is viewed for the multiplicative operation of a ring or algebra, it is a linear identity in each variable. In particular, the set of values for each variable such that the identity holds for all values of the other variables is an additive subgroup. |
Facts
Parenthesization can be dropped
For full proof, refer: Associative implies generalized associative
When a binary operation is associative, it turns out that we can drop parenthesization from products of many elements. That is, given an expression of the form:
any choice of bracketing will give the same result.
The result is proved by induction, with the base case () following from the definition of associativity.
As an illustration, suppose we want to show that:
Then, we apply associativity in a chain:
For this reason, we always use infix operator symbols for associative binary operations, and often even drop the operator symbol, so that the expression is just written as: .
Also, the re-parenthesization identities (i.e., all identities that are special cases of generalized associativity) are the only identities that can be proved using associativity.
Associativity pentagon
Further information: Associativity pentagon
The associativity pentagon is a pentagon whose vertices are the five different ways of associating a product of length four, with an edge between two vertices if moving from one to the other requires a single application of the associative law. This is a cyclic pentagon. The associativity pentagon is significant because, loosely, it generates all relations between the different ways of applying the associativity law to re-parenthesize expressions. It also helps to prove results about the set of left-associative, middle-associative, and right-associative elements. It is also related to the associator identity.
Power structure
Further information: power-associative magma
In the presence of associativity, it is possible to unambiguously define positive powers of any element. Explicitly, is the -fold product . The powers satisfy the usual laws of powers: and for all . Note that this also implies that all powers of commute with each other.
Note that to define powers, we do not actually need global associativity, but only power-associativity: the submagma generated by any single element must be associative.
Invertibility
- Equality of left and right inverses in monoid: Associativity can be used to deduce that any left inverse and right inverse with respect to a neutral element must be equal.
- Two-sided inverse is unique if it exists in monoid: Associativity can be used to show uniqueness of two-sided inverses in a monoid.
- Invertible implies cancellative in monoid: Associativity can be used to show that an element with a left inverse is left-cancellative, and an element with a right inverse is right-cancellative.
Verification of associativity for a ring
Suppose is a commutative unital ring and is a (possibly associative, possibly non-associative) algebra over . In other words, is a -module and is a (possibly associative, possibly non-associative) binary operation.
Note first that in order to verify the associativity of multiplication globally, it suffices to verify associativity on a generating set for the additive group of as a -module. This is because the associator function is -linear in each input:
In the special case that is freely generated as a -module, the following test works for associativity: If form a freely generating set of as a -module, and denote the structure constants, then associativity is the following identity for all :
Associator on a non-associative ring and the associator identity
Further information: associator on a non-associative ring
For a non-associative ring with multiplication , we can define the associator as:
This is linear in each of its variables.
Related element properties
Left-associative element
An element is said to be left-associative or left nuclear with respect to a binary operation if any ordered triple starting with that element associates.
The set of left-associative elements in any magma is a subsemigroup called the left nucleus. If the magma contains a neutral element, it is a submonoid.
For full proof, refer: Left-associative elements of magma form submagma
Middle-associative element
An element is said to be middle-associative or middle nuclear with respect to a binary operation if any ordered triple with that element in the middle, associates.
The set of middle-associative elements in any magma is a subsemigroup called the middle nucleus. and if the magma contains a neutral element, it is a submonoid.
For full proof, refer: Middle-associative elements of magma form submagma
Right-associative element
An element is said to be right-associative with respect to a binary operation if any ordered triple ending with that element associates.
The set of right associative elements in any magma is a subsemigroup called the right nucleus. If the magma contains a neutral element, it is a submonoid.
For full proof, refer: Right-associative elements of magma form submagma
Associative element
Further information: associative element
An element is said to be associative if it is left, middle and right associative. The set of associative elements forms a submagma (which contains the neutral element if it exists) termed the associative center (or sometimes, the nucleus) of the magma.
Weaker identities
Identities obtained directly by duplicating variables
Algebraic formulation of identity | Name of identity | Name of magma satisfying identity | Name of non-associative ring satisfying identity |
---|---|---|---|
left-alternativity | left-alternative magma | left-alternative ring | |
right-alternativity | right-alternative magma | right-alternative ring | |
flexibility | flexible magma | flexible ring | |
? | magma in which cubes are well-defined | ring in which cubes are well-defined |
Identities obtained from generalized associativity by duplicating variables
We here discuss identities with products of length at most four:
Algebraic formulation of identity | Name of identity | Name of magma satisfying identity | Name of non-associative ring satisfying identity |
---|---|---|---|
Jordan's identity | ? (if we also assume commutativity, then Jordan magma) | ? (if we also assume commutativity, then Jordan ring) | |
One of Moufang's identities | ? | ? | |
One of Moufang's identities | ? | ? | |
One of Moufang's identities | ? | ? |