What must be proved
The final goal is stronger than language recognition. At termination, equality of learned classes should coincide with syntactic congruence:
The proof is easier to follow as a chain of separate obligations rather than as one large argument.
1. Closedness supplies transition targets
For every and , closedness gives a representative such that
Therefore every one-letter transition from a hypothesis state has a target represented in .
2. Right consistency supplies path representatives
Define as the representative reached by reading in the hypothesis. Right consistency ensures that extending equivalent right behaviors by the same letter produces equivalent right behaviors.
By induction over , every word has a path representative satisfying
where denotes equality of suffix rows. Once the hypothesis has passed the EQ, this representative agrees with on acceptance after every continuation represented by the hypothesis.
3. The hypothesis transition is well-defined
A hypothesis state is a row, not a particular spelling of its representative. We must show that choosing another representative of the same state cannot change the transition.
Closedness gives existence of a target row. Separability of representatives and the consistency refinements give uniqueness. Consequently
and its extension are well-defined.
4. EQ connects the finite hypothesis to the target
After an exact EQ succeeds,
Acceptance calculations made through the hypothesis can then be transferred to the unknown language. This supplies the right-context part of syntactic congruence, but it still does not justify arbitrary left multiplication.
5. Monoid consistency supplies left compatibility
The post-check examines a current merge between and . If there exists an observed left context and suffix such that
then is added to and the merge is split.
When no such witness remains, multiplication by known representatives preserves every current representative-boundary merge. Together with the path-representative argument, this property extends from one-letter boundary steps to arbitrary finite words.
6. From finite compatibility to syntactic congruence
At termination, consider two words with the same learned class. Right consistency and the successful EQ preserve equality under arbitrary suffixes. Monoid consistency propagates that equality through arbitrary prefixes represented by paths in the hypothesis.
Thus, for all ,
This is exactly . Conversely, syntactically congruent words cannot be separated by any finite observation, so they must have the same learned row. The final quotient is therefore isomorphic to .
Complexity parameters
Let
- be the alphabet size;
- be the size of the target syntactic monoid;
- be the maximum counterexample length.
The theoretical analysis treats membership queries, equivalence queries and local structure computation as different resources.
Observation size
The conceptual table contains values for
At convergence, and . Under the report’s refinement bound ,
Hence the materialized observation structure is bounded by
The implementation reports a theoretical Cells statistic based on this coordinate space. It must not be confused with the number of unique teacher calls, because multiple coordinates can concatenate to the same complete query word.
Query and local-computation bounds
Filling the observation space contributes membership-query coordinates. Breakpoint processing contributes
queries over at most counterexamples. Repeated Monoid Consistency Checks give the largest coarse term, producing the report’s combined bound
for membership-query work.
The number of exact equivalence queries is at most under the refinement argument. Closedness, right consistency and monoid consistency together have a coarse internal bound of .
These are worst-case structural bounds, not runtime predictions. Hashing, query deduplication, row caching, language shape and the cost of the external teacher determine observed performance. The experiments therefore report MQ, EQ, Cells and local time separately rather than compressing them into a single number.