I don't understand well in what way idempotent element is wired to identity element in a magma context.
idempotent: $x \cdot x = x$
identity element: $1 \cdot x = x = x \cdot 1$
For example subtraction has $0$ as a right identity since $x−0=x$, but it doesn’t have a left identity. So is not a unital magma.
An example of a unital magma that is neither a monoid nor a loop is given by this table but I want understand if this is or is not a idempotent semigroup
$\begin{array}{c|rrrr}& 1 & a & b \\\hline {1} & 1 & a & b \\ {a} & a & 1 & a \\ {b} & b & b & a & \end{array}$
I want understand with examples these differences
- an example of unital magma that is not a idempotent semigroup
- an example of unital magma that is not a idempotent magma
- an example of idempotent magma that is not an idempotent semigroup
- if every idempotent magma requires the identity element then is an idempotent element an identity element of itself ?
I'm little confuse between idempotency and identity, I need some examples.
For example, can you provide me a closed operation under some set $S$ but not associative nor commutative but with identity element ?
There are lots of very nice non-idempotent structures, so let's start there. Consider $\mathbb{Z}$ (with addition). This is in fact a group (so in particular an associative unital semigroup), but clearly not idempotent (since the only idempotent element is $0$).
What about idempotent magmas and semigroups? The only difference between the two is associativity, so to separate the two we just need a non-associative idempotent operation. A useful example of this is the "midpoint" algebra on a three-element set $\{a,b,c\}$: the operation is given by setting $$a*b=b*a=c, \quad a*c=c*a=b, \quad b*c=c*b=a$$ and $$a*a=a,\quad b*b=b,\quad c*c=c.$$ This is obviously idempotent, but it is not associative since e.g. $$(a*a)*b=a*b=c\color{red}{\not=}b=a*c=a*(a*b).$$ Note that in fact this is a commutative idempotent magma which is non-unital and non-associative (= not a semigroup).
Meanwhile, the "left projection" operation on a nonempty set $A$ (given by $a*b=a$ for all $a,b\in A$) is trivially associative and idempotent (so an idempotent semigroup) but neither unital (unless $\vert A\vert=1$) nor commutative.
Finally, you ask for an associative, commutative, and non-unital magma. Here we get back to nice natural examples: for instance, the positive reals with addition works.
Of course, that's not idempotent. If you want an idempotent, commutative, associative, non-unital magma, simply consider for $X$ a set with more than one element the magma $(\mathcal{P}_{\not=\emptyset}(X); \cup)$ - elements of this magma are nonempty subsets of $X$, and the binary operation is union.
For an example of a unital, non-associative, non-commutative magma, we can start with subtraction on the integers and use a neat trick: adjoining a new element with desired properties.
Specifically, let $X=\mathbb{Z}\sqcup\{\xi\}$ for a new element $\xi$, and let $*$ be the binary operation on $X$ defined as follows:
If $a,b\in\mathbb{Z}$ then $a*b=a-b$.
If $a=\xi$ then $a*b=b$, and if $b=\xi$ then $a*b=a$.
That is, we've forcibly adjoined an identity element to the integers with subtraction. The resulting magma is still non-associative and non-commutative (any magma with a non-associative/non-commutative submagma is itself non-associative/non-commutative) but is now also unital.