A polynomial binary interpretation of every OCT field-register program
ProvedOCTKernel.Main.binary_field_program_refinementbit-complexityfinite-fieldsregister-machinesstoc
Fix a finite field-register program and a fuel schedule. On every encoded matrix over a positive modulus, the binary interpreter returns a valid matrix within an explicit work budget. At each prime modulus its bytes agree with the registered abstract machine: a halted state exports its rows, and fuel exhaustion exports one zero row. For the cubic fuel schedule of Lemma 3.5, its whole cost, including binary input parsing, sparse-register execution and output serialization, is bounded by a degree-15 polynomial in the bit length with program-dependent constants. The quantified cost is the interpreter’s explicit bit tariff.
Preamble
import Mathlib import Definitions.Def_OCTKernel_Main_Algorithms import Definitions.Def_OCTKernel_Main_ChargedBinaryFieldInterpreter
Formal statement
theorem OCTKernel.Main.binary_field_program_refinement :
(∀ (code : List OCTKernel.Main.FieldInstruction) (fuel : ℕ → ℕ → ℕ → ℕ)
(a : OCTKernel.Main.DualInput),
let out := OCTKernel_Main_ChargedBinaryFieldInterpreter code fuel a.code
out.1 = (OCTKernel.BinaryFieldMachine.answer code fuel a).code ∧
out.2 ≤ OCTKernel.BinaryFieldMachine.fullBudget code a.prime a.n a.data.rows a.scale
(fuel a.n a.data.rows a.scale) a.code.length ∧
∀ hp : Nat.Prime a.prime, letI : Fact (Nat.Prime a.prime) := ⟨hp⟩
out.1 =
((OCTKernel.Main.fieldRun code (fuel a.n a.data.rows a.scale)
(OCTKernel.Main.fieldInitial a.data.matrix)).map
(fun s => (OCTKernel.BinaryFieldMachine.exportState a.n a.scale s).code)).getD
(OCTKernel.BinaryFieldMachine.zeroData a.prime a.n a.scale).code) ∧
(∀ (code : List OCTKernel.Main.FieldInstruction) (a : OCTKernel.Main.DualInput),
let L := a.code.length
let fuel := fun n m t => 4000*(OCTKernel.Main.fieldInputSize n m t+1)^3
(OCTKernel_Main_ChargedBinaryFieldInterpreter code fuel a.code).2 ≤
(1000005*4001^5)*(OCTKernel.BinaryFieldMachine.tapeScale code L)^15 +
(L*((L+1)^2+5*L+8)+1)+L+5) := by sorry
Source
A refinement of the field-register semantics in STOC project #810, Lemma 3.5, Definitions.Def_OCTKernel_Main_Algorithms; cubic fuel matches OCTKernel.Main.lemma_3_5_register_kernels (Theorem ID 5a5b54e0-0086-4f65-8ced-a51171b6cb76).