Connects the model kinds of the workspace. It holds the catalogue of 49 translations between models, routes between any two kinds, the language operations and the construction frames that explain each step. The decide scheduler and the app use it to convert models and to lift operands to a common kind.
Translation catalogue. Lists each construction between two model kinds and the language relation it keeps, such as regex to NFA, NFA to DFA, DFA minimization, NFA to regex, PDA to CFG, CFG to CNF and GNF, CFG to LBA and Turing machine, and Turing machine to unrestricted grammar. Each entry delegates to the package that owns the construction. (CATALOGUE, offeredTranslations)
Counter conversions. A checked DPDA in the real-time one-counter fragment converts to a counter machine. A counter machine converts to a DPDA. The guarded DPDA edge is available by explicit conversion and is excluded from kind-only routes.
Regular grammar targets. Offers NFA conversions for unary grammars and for grammars with linear recursive components. The scheduler checks the source before selecting either conditional route. (TranslationId.UnaryCfgToNfa, TranslationId.StronglyRegularToNfa)
Deterministic grammar targets. Builds a DPDA from an LL(1) or canonical LR(1) grammar, retaining the original table for independent composite transport. A conflict refusal names the predictive variable or LR state and its lookahead. (ll1ToDpda, lr1ToDpda, ParserTranslationTable)
Teachable grammar stages. Eliminates left recursion, factors common prefixes and removes epsilon productions as separate checked conversions. (TranslationId.CfgEliminateLeftRecursion, TranslationId.CfgLeftFactor, TranslationId.CfgRemoveEpsilon)
These guarded edges are offered for explicit conversion. Automatic routes based on model kinds omit them because the CFG kind alone supplies no conflict-free table.
Shortest route search. Runs breadth-first search over the catalogue edges to find the shortest chain of translations from one model kind to another. (route, convertRoute)
Route execution. Applies a chain of translations, passes each target to the next step and composes the word maps back to the source. (runRoute)
Language operations. Plans and builds union, concatenation, star, intersection, difference, complement, reversal, prefix closure, homomorphic images, inverse images, regular quotients and shuffle with a regular language. Regular operands use automata constructions and context-free operands use grammar constructions. (planOperation, composeModels, composeMapped, offeredOperations)
DPDA complement. Offers complement for a declared DPDA through exact epsilon completion and retains its original and resulting machines in an independently checked closure frame. (LanguageOperation.Complement)
Finite embeddings. Embeds a finite automaton in a more powerful machine without changing its language. The targets are a PDA, a DPDA, an LBA, a two-way DFA and a Turing machine. (finiteToPda, finiteToDpda, finiteToLba, finiteToTwoWayDfa, finiteToTm)
LBA normalization. Converts every checked LBA to a grammar, retaining a fresh initial control, one accepting halt and virtual marker visits in the construction frames when the entry discipline does not apply. (CATALOGUE[TranslationId.LbaToCsg])
Construction explanations. Describes a retained frame of any owner in words. (explainConstructionFrame)
Frame encoding. Writes a construction frame as plain data. A closure frame can use a supplied model encoder, and its snapshot fixes the frame data before encoding. (encodeConstructionFrame, encodeClosureFrameWith, snapshotClosureFrame)
Target translation. Runs the translation of one id on a source model under a budget. The traced variant returns the construction frames retained by that path. (translateTarget, translateTargetWithFrames)
Typed refusals. Name a reserved symbol and the rule that rejects it. (Declined, DeclineRule)
ConstructionFrame, ConstructionStep, ClosureLiftStep, HomomorphismImage)Translation, TranslationProof)CatalogueEntry, RouteResult, TranslationEndpoints)OperationPlan, Composed, BinaryLanguageOperation, UnaryLanguageOperation, MappedLanguageOperation)Declined, Translated)translationIdDecoder, constructionFrameDecoder, closureFrameDecoder, closureFrameDecoderWith, declinedDecoder, translationProofDecoder, operationPlanDecoder, constructionFrameKindDecoder, constructionIdDecoder, constructionStepDecoder, declineReasonDecoder, languageOperationDecoder, languageRelationDecoder)ConstructionFrameKind, DeclineReason, DeclineRule, LanguageOperation, LanguageRelation, TranslationId)