Definition. Grammar Quotients
For formal grammars and , the quotient of by is the grammar of what is left of once an has been read off the front:
A parse of the quotient consists of an -parses at prefix and a -parse of the full string .
This operation has a right adjoint:
Intuitively, parses if: for all splittings of into a prefix and suffix, if the prefix matches then the suffix must match .
Together, these form the adjunction:
This is an instance of the Day quotient over the discrete monoidal category of strings.