Surface configurations and realizable pairs for auxiliary pushdown automata #
A surface configuration (Turing.AuxPDA.SurfaceCfg) of a binary auxiliary pushdown automaton
retains the control state, input head position, work-tape contents and head positions
(Turing.Storage), the top stack symbol (Option StackSym), and the three-value acceptance summary
of the write-only output tape (Turing.AuxPDA.OutputSummary), discarding the stack contents below
the top.
A realizable pair (Turing.AuxPDA.Realizable M input s₁ s₂ d) characterizes same-height
non-dipping subcomputations of length d from surface configuration s₁ to s₂:
0steps (refl),- a single
stayor halted step (stay), - a matched
push/poppair wrapping a length-(d - 2)realizable pair at one higher stack level (pushPop), or - composition at an intermediate surface configuration (
trans).
This file proves:
- Exact soundness and completeness (
realizable_iff_exists_sameHeightRun):Realizableholds iff there exists a concrete same-height non-dippingRunPathof lengthdfrom any matching starting configuration, and every such path preserves the stack verbatim. - Decomposition (
realizable_decomp): every realizable pair of lengthd ≥ 2splits either into a matched push/pop pair or at an intermediate surface configurations_midwith positive sublengthsd₁ + d₂ = d— the exact inductive structure needed for the semi-unbounded circuit reduction in Work Package 4 of #7920. - Empty-stack halting normalization (
withEmptyStackHalt,accepts_iff_exists_realizable_of_emptyStackHalt): adding one draining state preserves space and acceptance while emptying the stack before halting within2 * t + 1steps. - Finiteness and polynomial cardinality (
encard_reachable_surfaceCfg_le,encard_reachable_surfaceCfg_le_pow,surfaceCfgBound_log_polynomiallyBounded): under spaces, at most(n + 2) * 2 ^ O(s)surface configurations are reachable — polynomial innwhens(n) = O(log n).
This is original formalization infrastructure for cslib-frontier #7920 (Work Package 3), preparing the surface-configuration / realizable-pair interface of Ruzzo and Venkateswaran for Work Package 4.
Main definitions #
Turing.AuxPDA.OutputSummary: three-value acceptance summary of the write-only binary output.Turing.AuxPDA.SurfaceCfg: surface configurations.Turing.AuxPDA.StayStep,Turing.AuxPDA.PushStep,Turing.AuxPDA.PopStep: elementary surface transitions.Turing.AuxPDA.SameHeightRun,Turing.AuxPDA.Realizable: concrete same-height non-dipping runs and their inductive characterization.Turing.AuxPDA.withEmptyStackHalt: single-state stack-draining normal form.Turing.AuxPDA.surfaceCfgBound: explicit cardinality bound on bounded-space surface configurations.
Main results #
Turing.AuxPDA.SameHeightRun.last_stack_eq: same-height non-dipping runs preserve the stack.Turing.AuxPDA.realizable_iff_exists_sameHeightRun: soundness and completeness ofRealizable.Turing.AuxPDA.realizable_decomp: push-pop vs intermediate-midpoint decomposition ford ≥ 2.Turing.AuxPDA.withEmptyStackHalt_accepts_iff,Turing.AuxPDA.withEmptyStackHalt_runsInSpace,Turing.AuxPDA.withEmptyStackHalt_runsInTime: empty-stack halting preserves space, acceptance, and polynomial time.Turing.AuxPDA.encard_reachable_surfaceCfg_le_pow,Turing.AuxPDA.surfaceCfgBound_log_polynomiallyBounded:2 ^ O(s)and polynomial logspace cardinality bounds on surface configurations.
References #
Output summary and surface configurations #
Three-value summary of the write-only binary output tape sufficient to determine [true]
acceptance: empty ([]), exactly [true], or any other word.
- empty : OutputSummary
Empty output
[]. - accept : OutputSummary
Exactly the accepting output
[true]. - other : OutputSummary
Any output other than
[]and[true].
Instances For
Summarize a binary output word.
A canonical representative word realizing a given OutputSummary.
Update an output summary when appending an optional output bit.
A surface configuration of a binary AuxPDA on input: input head position, work-tape storage
(control state, tape contents and head positions), top stack symbol (none if empty), and
three-value output summary.
Input head position (shifted by one, matching
Turing.Cfg.inputPos).Control state, work-tape contents and work-tape head positions.
- topSym : Option StackSym
Top symbol of the pushdown stack, or
nonewhen the stack is empty. - outputSummary : OutputSummary
Acceptance summary of the write-only binary output tape.
The input symbol under the head of a surface configuration (identical to
Turing.Cfg.inputSymbol).
A surface configuration is halted when its control state is none.
A surface configuration is accepting when it is halted with output summary .accept.
A canonical concrete configuration having surface s (stack s.topSym.toList and canonical
output word s.outputSummary.toList).
Project a concrete binary AuxPDA configuration to its surface configuration.
The surface input head uses the same blank end cells as the native tape.
The initial surface configuration of M on input.
Apply the tape and output components of a Turing.Action to a surface configuration, installing
newTop as the resulting top stack symbol.
Elementary surface steps and realizable pairs #
A single .push γ surface transition from s₁ to s₂ (so s₂.topSym = some γ).
A single .pop surface transition from s₁ (whose top is some γ) exposing underlying stack
top baseTop in s₂.
A concrete run path is a same-height non-dipping run when its final stack height equals its initial stack height and no intermediate configuration drops below that height.
Inductive characterization of realizable surface pairs of exact step length d:
M.Realizable input s₁ s₂ d holds iff s₁ reaches s₂ in d steps while never dropping below
its starting stack height and ending at the same stack height.
- refl {k : ℕ} {StackSym : Type u_1} {State : Type u_2} {M : AuxPDA k Bool StackSym State} {input : List Bool} (s : SurfaceCfg k StackSym State input) : M.Realizable input s s 0
Zero-step realizability.
- stay {k : ℕ} {StackSym : Type u_1} {State : Type u_2} {M : AuxPDA k Bool StackSym State} {input : List Bool} {s₁ s₂ : SurfaceCfg k StackSym State input} (h : M.StayStep s₁ s₂) : M.Realizable input s₁ s₂ 1
A single height-preserving (
stayor halted) step. - pushPop {k : ℕ} {StackSym : Type u_1} {State : Type u_2} {M : AuxPDA k Bool StackSym State} {input : List Bool} {s₁ s₂ s' s'' : SurfaceCfg k StackSym State input} {γ : StackSym} {d : ℕ} (hpush : M.PushStep s₁ γ s') (hmid : M.Realizable input s' s'' d) (hpop : M.PopStep s'' γ s₁.topSym s₂) : M.Realizable input s₁ s₂ (d + 2)
A matched push-pop pair wrapping a realizable pair at one higher stack level.
- trans {k : ℕ} {StackSym : Type u_1} {State : Type u_2} {M : AuxPDA k Bool StackSym State} {input : List Bool} {s₁ s_mid s₂ : SurfaceCfg k StackSym State input} {d₁ d₂ : ℕ} (h₁ : M.Realizable input s₁ s_mid d₁) (h₂ : M.Realizable input s_mid s₂ d₂) : M.Realizable input s₁ s₂ (d₁ + d₂)
Sequential composition at an intermediate surface configuration
s_mid.
Soundness of Realizable: every realizable pair lifts from any matching concrete starting
configuration c₁ to a same-height non-dipping run path preserving the stack verbatim.
Structural split of any SameHeightRun of length d' + 2: either it hits the base stack
height at an interior index 0 < j < p.length, or it consists of a first push γ, an interior
SameHeightRun of length d' one level higher whose configurations all belong to p, and a
final pop step.
Stack preservation: every concrete same-height non-dipping run preserves the stack verbatim.
Soundness and completeness of Realizable: from any concrete configuration c₁ with
surface s₁, M.Realizable input s₁ s₂ d holds iff there is a length-d same-height non-dipping
run path from c₁ to a configuration with surface s₂.
Surface-pair realizability decomposition (Ruzzo / Venkateswaran): for d ≥ 2, a surface
pair (s₁, s₂) is realizable in d steps iff it either splits as a matched push-pop pair
wrapping a (d - 2)-step realizable pair, or splits at an intermediate surface configuration
s_mid with positive sublengths d₁ + d₂ = d.
When every halted computation path of M ends with an empty stack, acceptance is equivalent
to realizability from initSurface to some empty-stack accepting surface configuration.
Empty-stack halting normalization #
Normalize an AuxPDA so every halted computation path ends with an empty stack: add one
stack-draining state (none : Option State) entered whenever the original machine would halt,
popping until the stack is empty without moving any tape heads or emitting output.
Every halted computation path of M.withEmptyStackHalt has an empty stack.
withEmptyStackHalt preserves work-tape space bounds identically.
withEmptyStackHalt preserves all-branches time bounds with at most 2 * t + 1 steps.
withEmptyStackHalt preserves acceptance exactly.
Finiteness and polynomial cardinality of surface configurations #
Surface configurations whose storage fits in per-tape windows w with ∑ i, w i ≤ s have
cardinality at most surfaceCfgBound StackSym State k input.length s.
Under work-tape space bound s, at most surfaceCfgBound StackSym State k n (k * s) surface
configurations are reachable from the initial configuration (regardless of stack height).
Exponential form: the number of reachable surface configurations under work space s is at
most (n + 2) * a * 2 ^ (c * s) with constants a, c depending only on k, StackSym, and
State.
Polynomial surface-configuration bound in logarithmic space: for s(n) = c * (log₂ n + 1),
the surface-configuration bound surfaceCfgBound StackSym State k n (k * s n) is polynomially
bounded in n.