nLab commutative operation

Redirected from "commutativity".

Contents

Idea

The notion of commutativity of an nn-ary operation in the sense that the order of the parameters can be permuted without changing the result. For n=2n = 2 this results in the notion of a commutative magma.

Definition

An n n -ary operation is a function f:A nAf:A^n \to A from the cartesian power A nA^n to AA.

Let Fin(n)\mathrm{Fin}(n) denote the standard finite set with nn elements. Given a set AA, the Cartesian power A nA^n is isomorphic to the function set Fin(n)A\mathrm{Fin}(n) \to A. As a result, one can equivalently define an nn-ary operation as a function f:(Fin(n)A)Af:(\mathrm{Fin}(n) \to A) \to A from the function set Fin(n)A\mathrm{Fin}(n) \to A to AA. The function set Fin(n)A\mathrm{Fin}(n) \to A represents the set of possible parameters of the nn-ary operation, and individual functions a:Fin(n)Aa:\mathrm{Fin}(n) \to A represents individual possible parameters.

Using the function set definition, a permutation of the parameters of the nn-ary operation is the composition of the parameters a:Fin(n)Aa:\mathrm{Fin}(n) \to A with a bijection h:Fin(n)Fin(n)h:\mathrm{Fin}(n) \simeq \mathrm{Fin}(n) on the standard finite set with nn elements.

Definition

An nn-ary operation f:(Fin(n)A)Af:(\mathrm{Fin}(n) \to A) \to A is commutative if for all functions a:Fin(n)Aa:\mathrm{Fin}(n) \to A and bijections h:Fin(n)Fin(n)h:\mathrm{Fin}(n) \simeq \mathrm{Fin}(n), f(a)=f(ah)f(a) = f(a \circ h).

Examples

Commuative binary operations

When n=2n = 2, the standard finite set with two elements Fin(2)\mathrm{Fin}(2) is in bijection with the boolean domain, which means we can simply use the boolean domain bool\mathrm{bool} in place of Fin(2)\mathrm{Fin}(2). There are two bijections on the boolean domain bool\mathrm{bool}, the identity function and the swap function which swaps the two elements around. By definition of the identity function, it is always true that f(a)=f(aid bool)f(a) = f(a \circ \mathrm{id}_{\mathrm{bool}}). Thus, the only relevant thing left to check is the swap function:

Definition

A binary operation f:(boolA)Af:(\mathrm{bool} \to A) \to A is commutative if for all functions a:boolAa:\mathrm{bool} \to A, f(a)=f(aswap)f(a) = f(a \circ \mathrm{swap}).

After applying the isomorphism between boolA\mathrm{bool} \to A and the cartesian square A 2A^2 constructed from the recursion principle of the boolean domain, this definition results in the usual notion of commutative magma:

Definition

A binary operation f:A 2Af:A^2 \to A is commutative if for all functions a:boolAa:\mathrm{bool} \to A, f(a(0),a(1))=f(a(1),a(0))f(a(0), a(1)) = f(a(1), a(0)).

Commuative unary and nullary operations

By the above definition, every unary operation (n=1n = 1) is commutative because there is only one bijection on the standard finite set with one element, the identity function on Fin(1)\mathrm{Fin}(1), and f(a)=f(aid Fin(1))f(a) = f(a \circ \mathrm{id}_{\mathrm{Fin}(1)}). Similarly, every constant, considered as a nullary operation (n=0n = 0), is commutative because there is only one bijection on the standard finite set with zero elements, the identity function on Fin(0)\mathrm{Fin}(0), and for the unique function u:Fin(0)Au:\mathrm{Fin}(0) \to A (since Fin(0)\mathrm{Fin}(0) is the initial set), f(u)=f(uid Fin(0))f(u) = f(u \circ \mathrm{id}_{\mathrm{Fin}(0)}).

Infinitary operations

The notion of a commutative operation can be extended from finitary operations to infinitary operations. The idea here is that an infinitary operation on a set AA consists of a set II of arities and a function f:(IA)Af:(I \to A) \to A. The notion of commutativity in the sense of permuting the parameters resulting in an equal element still makes sense for infinitary operations:

Definition

An infinitary operation f:(IA)Af:(I \to A) \to A is commutative if for all functions a:IAa:I \to A and bijections b:IIb:I \cong I, f(a)=f(ab)f(a) = f(a \circ b).

Examples of commutative infinitary operations include the II-indexed joins of a complete lattice for arbitrary set II, and the \mathbb{N}-indexed joins of a sigma-complete lattice.

Created on January 11, 2025 at 02:54:55. See the history of this page for a list of all contributions to it.