Skip to main content

Module state_merging

Module state_merging 

Source
Expand description

State-merging regular inference for labelled symbol examples.

The implementation follows the classic PTA/APTA plus red-blue state-merging shape used by RPNI, EDSM, and ALERGIA. It is a clean-room Rust implementation derived from the public issue specification and the cited papers/permissive references named there; no GPL or LGPL implementation is linked, vendored, or consulted by this crate.

Structs§

Apta
Augmented prefix-tree acceptor built directly from a Sample.
AptaState
One state in an augmented prefix-tree acceptor.
InferredAutomaton
Inferred deterministic finite automaton.
InferredState
Public state in an inferred partial DFA.
MergeEvent
One accepted state merge performed by a learner.
Sample
Labelled examples over a token or character alphabet.

Enums§

MergeStrategy
State-merging strategy used by infer_dfa.

Functions§

infer_dfa
Infers a regular automaton from labelled examples.

Type Aliases§

Symbol
A token or character symbol consumed by the regular learner.