Construct the complement DPDA by replacing the set of accepting states with its complement. This is a syntactic operation that swaps which states are accepting.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The multi-step reachability relation is the same for a DPDA and its complement, because the step function depends only on the transitions, not the accepting states.
Complementing a total DPDA yields a total DPDA: flipping the accepting states changes neither the transitions (so totality is preserved) nor whether two empty-input configurations agree (so acceptance consistency is preserved).
Complement closure for total presentations. If L is recognized by a total
DPDA, so is Lᶜ: complement the total DPDA.
Complement closure for deterministic context-free languages. Every DCF L
has Lᶜ deterministic context-free as well. An arbitrary final-state DPDA for L
need not decide every input, so the proof first totalizes it
(DPDA.exists_equivalent_total) into an equivalent total DPDA and then complements
that — no DPDA.IsTotal hypothesis on the input is required.
Deterministic context-free languages are closed under complement.