How this calculation works
Build a regular language’s syntactic monoid by minimizing its complete DFA and enumerating all induced state transformations.
M(L) is the transition monoid of the minimal reachable DFA; word product reads the left word and then the right word.A worked example
The default DFA accepts words with an even number of a letters. Its two-state minimal automaton has a two-element syntactic monoid, and the a transformation has period 2.
Good to know
Complete DFA with 1–5 states, 1–3 letter columns, initial label and final-state subset. Removes unreachable states, minimizes exactly, then enumerates transformation closure with a 128-element cap. Full multiplication table and aperiodicity check.
A language has an algebra of words
Every word read by a deterministic finite automaton induces a function from states to states. Words that induce the same function act identically on the automaton, so these functions form a finite monoid under word concatenation. For the minimal reachable DFA of a language, that transition monoid is its syntactic monoid.
Minimization is essential to obtain the language invariant. An arbitrary larger DFA may contain redundant states whose distinctions are invisible to acceptance but still enlarge its raw transformation monoid. The calculator therefore removes unreachable states and minimizes before enumeration, instead of calling every entered transition table’s transformation closure the syntactic monoid.
Compare this with the Finite semigroup Green relations calculator from an operation table. Build a language invariant from a DFA: minimize the reachable automaton and enumerate its word-induced state transformations. The existing semigroup page analyzes an already supplied multiplication table and does not infer it from an automaton or accepted language.
Enter a complete deterministic automaton
Each transition-table row corresponds to a zero-based state and each column to one letter, named a, b and c in column order. Every entry must be a valid state label. Also specify one initial state and the set of accepting states; none is allowed when no state accepts.
A missing transition is not silently treated as rejection or self-looping. If your automaton has a dead state, include it explicitly and route the appropriate letters to it. Likewise, nondeterministic transition sets and regular-expression syntax are not accepted by this interface; they require a separate determinization or parsing step before these finite-table operations apply.
Remove redundancy through language equivalence
Starting from the initial state, reachability discards states no word can visit. Among the remaining states, the minimization process begins by separating accepting from rejecting states, then repeatedly refines blocks according to where each letter leads. Stable blocks identify states with identical future acceptance behavior.
The output lists the original states belonging to each minimal-state block. This lets you see which labels were merged and which were removed altogether. The minimal transition table is renumbered reproducibly from its initial block, so a returned transformation acts on those new minimal-state labels rather than directly on every original entered state.
Enumerate the word-induced transformations
The empty word induces the identity function. From each discovered transformation, appending one letter produces another function by following that letter from every image state. Repeating this closure operation discovers all transformations generated by the letter actions and stores a representative word for each one.
The multiplication table follows temporal reading order: product u·v means first read u and then v. As state functions, that is v acting after u. This convention is stated because mathematical function composition is often written in the opposite textual order; comparing tables without aligning that convention can transpose an apparently noncommutative product.
Understand the parity-language example
The default has two states. Letter a toggles between them, while b leaves the current state unchanged. The initial state 0 is accepting, so a word is accepted precisely when it contains an even number of a letters; b letters do not change that parity.
Only two transformations occur: the identity and the swap of the two states. Applying a twice gives the identity, so the swap has period two and the monoid is not aperiodic. Removing acceptance from both states would collapse the recognized language to the empty language, whose minimal DFA and syntactic monoid each have only one element.
Check aperiodicity by eventual powers
A finite monoid is aperiodic when every element eventually stabilizes under repeated multiplication, with eventual period one. The calculator follows powers of each transformation until a previously seen element returns. If the detected cycle length exceeds one, that element supplies a concrete witness to nonaperiodicity.
This is an exact finite structural test, not a frequency estimate from a sampled word sequence. Aperiodicity does not mean that every transformation is already idempotent on its first repetition; some elements may pass through a transient chain before stabilizing. The test therefore checks eventual power cycles instead of only comparing x² with x.
Respect closure and presentation limits
Five minimal states can generate far more than a hundred transformations, so a complete multiplication table may become unsuitable for a compact calculator. This interface caps closure at 128 elements and rejects larger results rather than truncating transformations or claiming closure when products are missing.
The computation does not infer an automaton from an arbitrary multiplication table, parse a regular expression or perform an NFA powerset construction. Its representative words are witnesses for transformations, not shortest accepted-word examples for the language. Use the acceptance data and the minimal DFA to interpret language questions separately from the algebraic structure of its syntactic monoid.
A few questions, answered
Why minimize the DFA first?
The raw transition monoid of a redundant automaton may depend on its presentation; the minimal reachable DFA gives the language’s syntactic monoid.
What does the empty word represent?
It acts as the identity transformation on every minimal state and is included as a monoid element.
Which order does a table product use?
The left representative word is read first, then the right word; the corresponding state functions compose in that temporal order.
Does aperiodic mean every element is idempotent?
No. Powers may have a transient phase; aperiodicity requires their eventual cycle to have length one.