Idempotents in finite semigroups #
This file proves the basic facts about idempotents in finite monoids and semigroups. In a finite monoid the powers of an element must repeat, so some positive power of every element is idempotent; adjoining an identity transfers this to semigroups, and in particular every nonempty finite semigroup contains an idempotent.
The main result is the factorization of long products: if S is a finite semigroup with n
elements, every product s₁ ⋯ sₙ has a prefix s₁ ⋯ sᵢ fixed on the right by an idempotent e,
and so lies in S e S.
Main results #
Monoid.exists_pos_pow_isIdempotent: every element of a finite monoid has an idempotent positive power.Semigroup.exists_isIdempotentElem: a nonempty finite semigroup contains an idempotent.Semigroup.exists_isIdempotentElem_map_eq: a surjective homomorphism of finite semigroups lifts idempotents to idempotents.Semigroup.exists_lt_card_isIdempotentElem_mul_eq: among the first|S|terms of a sequence in which each term is a right multiple of the previous one, some term is fixed on the right by an idempotent.FreeSemigroup.exists_isIdempotentElem_map_eq_mul_mul: a homomorphism out of the free semigroup sends every word of length at least|S|intoS e Sfor an idempotente.
Implementation notes #
The last two results are Proposition II.6.34 and Corollary II.6.35 of Pin's lecture notes.
Products of sequences are expressed through a homomorphism out of FreeSemigroup α, which covers
products of arbitrary elements by taking α = S and FreeSemigroup.lift id.
References #
Periodicity of powers #
Existence of an idempotent power #
In a finite monoid the powers of an element repeat, so x ^ i = x ^ j for some i < j.
In a finite monoid every element has an idempotent positive power.
Semigroups: transfer through WithOne #
WithOne S is a finite monoid when S is a finite semigroup, positive
powers of a coerced element are themselves coerced, and WithOne.coe_inj
transfers idempotency back. The payoff is the structural fact behind the
equational description of semigroup pseudovarieties: a preimage of an
idempotent need not be idempotent, but an idempotent power of a
preimage is one and has the same image.
WithOne S is Option S, so it inherits finiteness.
Idempotency is detected by the coercion into WithOne.
A positive power of a coerced element of WithOne S is itself coerced.
A finite nonempty semigroup contains an idempotent.
A surjective homomorphism of finite semigroups lifts every idempotent to an idempotent, since an idempotent power of a preimage is still sent to it.
Long products #
An element fixed on the right by u is fixed on the right by an idempotent power of u.
Let p be a sequence in a finite nonempty semigroup S in which each of the first |S| terms
is a right multiple of the previous one. Then one of these terms is fixed on the right by an
idempotent.
An idempotent value of f is attained on words of every length.
A word of length at least |S| is sent into S e S for an idempotent e.