Documentation

Cslib.Computability.Automata.DA.Congr

Deterministic automaton corresponding to a right congruence. #

def Cslib.RightCongruence.toDA {Symbol : Type u_1} [c : RightCongruence Symbol] :

Every right congruence gives rise to a DA whose states are the equivalence classes of the right congruence, whose start state is the empty word, and whose transition functiuon is concatenation on the right of the input symbol. Note that the transition function is well-defined only because c is a right congruence.

Equations
Instances For
    @[simp]

    After consuming a finite word xs, c.toDA reaches the state ⟦ xs ⟧ which is the equivalence class of xs.

    @[simp]

    The language of c.toDA with a single accepting state s is exactly the equivalence class corresponding to s.