# Right-associative elements of magma form submagma

## Contents

## Statement

Let be a magma (a set with binary operation ). Call an element a **right-associative element** if the following holds:

Then:

- The set of right-associative elements of forms a submagma of . This submagma is termed the Right nucleus (?) of the magma.
- If contains a right neutral element , then is right-associative, and is a right neutral element for the submagma of right-associative elements.
- If contains a right nil , then is right-associative, and is a right nil for the submagma of right-associative elements.

## Related facts

All these proofs make crucial use of the associativity pentagon: the pentagon describing the relation between the five different ways of associating a product of length four.

## Proof

### Proof idea

The idea behind the proof is the associativity pentagon, which states that the five different ways of parenthesizing an expression of length four form a cyclic pentagon, with each expression related to exactly two others via a single application of the associativity law. In order to move along one edge of the pentagon, we instead move along the path comprising the remaining four edges, and use the fact that each step there is allowed because one of and is the *right* term in each of the applications of the law.

### Proof of (1)

**Given**: A magma , two right-associative (i.e., right nuclear) elements

**To prove**: is right-associative (i.e., right nuclear)

**Proof**: We need to show that, for any , we have:

.

Let's do this. Start with the left side and proceed as follows:

.

Here is a diagrammatic depiction of the proof:

### Proof of (2)

**Given**: A magma with right neutral element .

**To prove**: is in the submagma of right-associative elements and is right neutral for the submagma.

**Proof**: For any , , so is right-associative. Since for all , for all right-associative elements in particular.

### Proof of (3)

**Given**: A magma with right nil .

**To prove**: is in the submagma of right-associative elements and is a right nil for that submagma.

**Proof**: For any , , so is right-associative. Since for all , for all right-associative elements in particular.