How this calculation works
Find the minimum number of generators of a finite associative semigroup, with minimum generating subsets and explicit product words.
rank(S)=min{|A|: every element of S is a nonempty finite product of elements of A}.A worked example
In the left-zero semigroup with table[[0,0],[1,1]], every product equals its first factor. Neither singleton generates both elements, so the minimum semigroup rank is2.
Good to know
Associative operation tables of order1–16. Semigroup generation uses nonempty products and does not insert an identity automatically. Enumerate subsets in increasing size with complete closure caching; fixed search and output caps, count/all-witness completeness stated separately. Monoid and inverse-semigroup generation are separate conventions and are not mixed in.
Reference: GAP Semigroups MinimalSemigroupGeneratingSet documentation (opens in a new tab) ↗
Generation uses multiplication repeatedly
A generating set is a collection of semigroup elements whose finite nonempty products reach every element of the semigroup. Its rank is the smallest possible size of such a collection. The word rank here is not matrix rank, the number of Green classes or the size of a subgroup of units. It is an optimization over subsets of the complete multiplication table.
Associativity makes the value of a product independent of parenthesization, while order of factors can still matter. Commutativity is not assumed. The calculator distinguishes semigroup generation from monoid generation: it does not automatically allow an empty product or insert an identity for free. That convention can change which subsets generate a structure, especially in small identity-containing examples.
Compare this with the Finite semigroup Green relations calculator from an operation table. Find the minimum number of elements generating an explicit associative semigroup, enumerate minimum generating subsets within an output cap, and give a product word reaching each element. Existing Green-relation analysis studies ideals and equivalence classes; it does not optimize generators.
Validate the operation table first
Supply a square table of element labels0 through n−1. Every entry must be a valid label, and every triple must satisfy associativity. Unlike a group, a semigroup need not have identity or inverses, so their absence is not an error. A nonassociative table describes a different algebraic object and must be rejected before applying semigroup-generation claims.
The order bound keeps all candidate subsets finite and explicit. Labels identify elements, not numerical values on which ordinary arithmetic is performed. If a table is relabeled consistently, its minimum generating size remains unchanged. A repeated row does not mean two labels should automatically be merged; distinct elements can have identical multiplication behavior in one direction and still be distinct generators.
Compute closure of one candidate subset
Start with the candidate generators as reached elements. Repeatedly multiply reached elements and add any new result until no more elements appear. Associativity ensures that this closure is exactly the set of all nonempty words in the chosen generators. Recording how each new element was produced yields a word certificate for it.
A closure equal to the whole semigroup proves that the candidate generates. A proper closure proves that candidate fails, with unreached element labels as a witness. Closure caching can avoid repeating the same computation for multiple subsets, but it must preserve the nonempty-product convention. The empty candidate has empty semigroup closure unless another convention is explicitly introduced.
Search for smallest rather than irredundant
An irredundant generating set loses its generating property when any one selected element is removed. Such a set need not have the smallest possible cardinality among all generating subsets. The calculator must therefore search candidate sizes in increasing order, or use another exact method that supplies an equivalent lower-bound proof.
Once a generating subset of size k is found after every smaller subset has failed, rank k is established. There may be many different minimum subsets of that size. A bounded output can display selected witnesses while an exact count of all minimum subsets requires the full size-k enumeration. Computation caps and display caps must be described separately so an incomplete list is not mistaken for a complete classification.
Analyze the left-zero example
The default multiplication table has a*b=a for both element labels0 and1. A word evaluates to its first letter, regardless of how many factors follow it. Starting with generator{0} therefore reaches only0, and starting with{1} reaches only1. Neither singleton generates the whole two-element semigroup.
The set{0,1} already contains every element, so it generates and has size two. Since all smaller nonempty candidates fail, the rank is exactly two. The one-letter words[0] and[1] certify the reached elements. The same argument shows that a left-zero semigroup of order n needs all n elements; a right-zero semigroup behaves analogously using the final letter instead.
Read product-word certificates
A certificate word lists selected generator labels in multiplication order. Evaluate it from left to right using the original table; associativity guarantees agreement with any other parenthesization. Each word must reach the element it claims. A word is a constructive membership witness, but it does not need to be shortest unless that extra optimization is explicitly reported.
Identity-containing semigroups need particular care. If only monoid generation were intended, the empty word could supply identity automatically. Under the semigroup convention used here, identity must be reached by a nonempty product. In a finite group, a generator’s positive powers can often do that; in a general monoid, the same shortcut may fail. Do not transfer a generator count between conventions without checking it.
Separate structural analysis from optimization
Green’s relations organize elements by the principal ideals they generate and provide valuable structural information. They do not by themselves return a smallest generating subset. This page adds the subset optimization and explicit factorization witnesses to the existing operation-table family, without relabeling ideal classes as generators or confusing semigroup rank with a matrix dimension.
The implementation supports small validated tables, exact closure and bounded exhaustive search. A cutoff means that the minimum remains unresolved, even if a generating set has been found. That set supplies an upper bound only. For a completed result, preserve both the minimum-size claim and the word certificates so another reader can verify generation and distinguish it from the separate proof that no smaller subset works.
A few questions, answered
Does the empty word supply identity?
No. This page uses semigroup generation by nonempty products rather than inserting an identity for free.
Is an irredundant generating set always smallest?
No. Irredundancy is a local removal property; a different generating subset can have fewer elements.
Must the semigroup have inverses?
No. Only closure and associativity are required; identity and inverses are optional structural features.
Are the returned product words shortest?
They certify generation. Shortest-word status is a separate property and is not implied unless explicitly stated.