RE Closure Under Right Quotient #
This file proves that recursively enumerable languages over finite alphabets are
closed under right quotient, both by another RE language and by a regular
language. The key result is RE_of_RE_rightQuotient_RE: a search witness
consists of a suffix v, a derivation sequence for w ++ v in the grammar for
L, and a derivation sequence for v in the grammar for R.
Main declarations #
Search test for membership in the right quotient of two grammar languages.
Equations
- reRightQuotientTest g₁ g₂ p w = (grammarTest g₁ p.2.1 (w ++ p.1) && grammarTest g₂ p.2.2 p.1)
Instances For
The suffix-and-two-derivations search test for right quotient is computable.
RE languages are closed under right quotient with RE languages.
The class of RE languages is closed under right quotient.
Search test for membership in the right quotient of a grammar language by a DFA language.
Equations
- reRightQuotientRegularTest g M p w = (grammarTest g p.2 (w ++ p.1) && decide (M.eval p.1 ∈ M.accept))
Instances For
The suffix-and-derivation search test for right quotient by a DFA language is computable.
RE languages are closed under right quotient with regular languages.
The class of RE languages is closed under right quotient with regular languages.