The target is stronger than a minimal DFA
Let be a regular language. Two words are syntactically congruent when no left or right context can distinguish them:
This is a congruence with respect to concatenation. If denotes the equivalence class of , multiplication is defined by
The quotient
is the syntactic monoid of . It is the smallest monoid recognizing and is isomorphic to the transition monoid of the minimal DFA for .
Classical L-star learning distinguishes words by their future behavior. That is enough to identify minimal-DFA states, but syntactic congruence also quantifies over prefixes placed before a word. The extended learner must therefore collect both right experiments and left contexts.
Query access
The learner does not inspect the target language directly. It communicates with a teacher through two interfaces.
Membership query
For a chosen word , the teacher returns its characteristic value
In the implementation, a membership query is abbreviated as MQ(w).
Equivalence query
The learner submits a hypothesis DFA . An exact teacher answers whether
If the languages differ, the teacher returns a counterexample in their symmetric difference. The current experimental Oracle knows the target DFA and uses breadth-first search to return a shortest counterexample.
This exact EQ model is useful for validating the algorithm. It is not assumed to be a realistic interface for every black-box system; the distinction becomes important in the experimental cost model.
The observation structure
The learner maintains three finite sets:
- : current representative words;
- : known left contexts;
- : known suffix experiments.
All three initially contain only . The one-letter right boundary of the representative set is
The finite observation function is
where , and . This can be viewed as a three-dimensional table, although the current implementation also keeps a global query cache keyed by the complete word .
Full rows and suffix rows
For any word , its full row is the vector
Two words are status-equivalent under the current finite observation when
This is only a finite approximation to syntactic congruence. Enlarging or can split a class that looked equal before.
Right consistency uses a second, deliberately narrower row:
Keeping these notions separate matters. Full rows represent the current two-sided quotient, while suffix rows maintain the ordinary right behavior required for a well-formed hypothesis DFA.
From rows to a hypothesis
Once every boundary word in has a representative with the same full row, the distinct rows of become hypothesis states:
The initial state is the row of . A state is accepting when its representative belongs to . For , its transition is determined by the row of the representative followed by :
Closedness guarantees that this target row is represented inside . Right consistency ensures that choosing equivalent representatives does not change the transition behavior.
The next article develops these two refinement conditions and explains why language equivalence alone is not yet enough to certify the learned monoid.