Compile a fixed-access LP worker from ideal banks to ordinary finite input
ProvedSmaleNinth.fixed_access_finite_bootAn abstract dimension-bounded LP worker starts in the ideal odd/even bank model. For any fixed finite set of final address registers to be inspected, a single fragment starting on the ordinary input reproduces the entire scalar data and all required address registers, in dimension-polynomial time. This simulation over any ordered field makes the finite register support explicit and can be used before the output branch or final halt.
Preamble
import Definitions.Def_OAILP_RAM_CallablePublicDecision open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable
Formal statement
theorem SmaleNinth.fixed_access_finite_boot {K : Type*} [Field K] [LinearOrder K]
[IsStrictOrderedRing K] (f : Fragment) [Fragment.FixedAccess f] (readout C E : ℕ) :
∃ (g : Fragment) (C' E' : ℕ), ∀ (m d : ℕ) (xs : List K) (z : Memory K),
xs.length = m*d+m →
f.Run (fun _ : K => True) (Odd.memory (start [] ([] : List K)).memory (start [m,d] xs).memory)
(polyBound C E (m+d)) z →
∃ t, g.Run (fun _ : K => True) (start [m,d] xs).memory (polyBound C' E' (m+d)) t ∧
t.data = z.data ∧ ∀ i ≤ readout, t.index i = z.index i := by sorrySource