Deterministic Context-Free Closure Under Inverse Homomorphism #
The construction first totalizes the source DPDA. Besides preserving its language, the totalizer keeps a permanent bottom-of-stack marker and records in its finite control whether the current epsilon phase can accept.
For a homomorphism h : α → List β, the inverse-image machine stores one
source letter and a position in h a in finite control. Consuming a source
letter is deliberately performed before the simulated epsilon phase. This
ordering is essential when h a = []: prioritizing source-machine epsilon
steps can otherwise starve an erasable source letter forever.
A buffered source letter together with the next position of its nonempty image.
Equations
- InvHomBuffer α β h = Option ((a : α) × Fin (h a).length)
Instances For
The part of a buffered homomorphic image which remains to be simulated.
Equations
Instances For
DPDA recognizing the inverse image of M under h, provided final-state
membership of M is invariant along its empty-input epsilon runs.
In the ready state (buffer = none) the machine has no epsilon transition: it
first consumes the next source letter. A nonempty image is then drained through
epsilon transitions, with source-machine epsilon steps taking priority while a
buffer is present.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Correctness of the repaired inverse-homomorphism construction under the two normal-form properties supplied by the DPDA totalizer.
Predicate-form closure theorem used by the README closure table.