Calling a polynomial-time binary function from fixed-width RAM fields
ProvedTargetedSamplers.Structured.StackMachine.fields_callbinary-encodingbit-complexitydirected-hamiltonicityexact-exponential-algorithmslog-cost-ram
Let have a polynomial-time binary stack-machine implementation. Fix . A register bank contains words and the radix . Write
There exist a fixed workspace boundary and polynomials such that a subroutine at each admissible bank executes on every choice of tapes. For every ambient word bound that the initial store satisfies, it uses at most primitive steps, maintains the bound , and returns in register zero. It preserves the output string and every caller cell at or above the reserved boundary in the bank address representation.
Preamble
import Definitions.Def_LogCostRAM_StructuredExecution import Definitions.Def_QuantumMaxCutFiniteNumericRuntime open TargetedSamplers TargetedSamplers.Structured open Word BinaryStack NumericFields open OAI.MetricKMedian.Binary OAI.MetricKMedian.Binary.Automatic
Formal statement
theorem TargetedSamplers.Structured.StackMachine.fields_call (f : ℕ → ℕ) (poly : Poly f) (count : ℕ) (hn : 1 ≤ count) :
∃ (floor : ℕ) (cmd : ℕ → Cmd) (width steps : Polynomial ℕ), ∀ (bank w : ℕ) (xs : List ℕ)
(len : xs.length=count) (valid : ∀ x∈xs,x < 2^w) (τ : Tapes) (s : Store) (b : ℕ),
floor ≤ bank → width.eval w ≤ b → s.Fits b → s.mem (cell (bank+count))=2^w →
(∀ i (hi : i < count), s.mem (cell (bank+i))=xs[i]'(by omega)) →
∃ t k, Exec τ (fun u => u.Fits b) (cmd bank) s t k ∧ k ≤ steps.eval b ∧ t.mem 0=f (pack w xs) ∧
t.out=s.out ∧ ∀ i ≥ floor, t.mem (cell i)=s.mem (cell i) := by sorrySource
Auxiliary result for the log-cost RAM formalization of Proposition 4 in T. Koana and S. Kumabe, Breaking the 2^n barrier for directed hamiltonicity, STOC 2027 submission 811, PDF pp. 5 and 8–11. https://prove2.me/theorems/aa04b14a-8225-48c8-904c-8725ebdcac66