Polynomial native resources for the arbitrary-parameter pruned program
ProvedThreeSumSharpTail.pruned_program_solves3sumsharp-tailword-ram-costs
For every rational parameter record G there is a polynomial native Need which, under CostsWithinP and the native Lop-count task precondition, guarantees the actual offline32 Meets specification of program31P G. The conclusion holds for every appended program, free pointer and sufficiently large word, space and depth limits. The runtime is the original natural tOffline32P step count.
Preamble
import Definitions.Def_APSP299791_Defs5
Formal statement
theorem ThreeSumSharpTail.pruned_program_solves (G : Light.Sec4.RatParams) :
∃ need : List ℕ → Light.Need, Light.PolyNeedN need ∧
∀ (R : Light.Program) (lim : Light.Limits) (fr d : ℕ)
(x : Light.ThinInst) (μ : ℕ → ℤ) (C tp tq : ℝ),
0 ≤ C → Light.lopCountTask.Pre x μ fr →
Light.Sec4.CostsWithinP G C x.N x.D tp tq →
(need [x.N, x.D, x.w, x.U]).Ok lim fr d →
Light.Meets lim (Light.Sec4.program31P G ++ R) Light.Sec4.Proc.offline32 (d + 1)
[x.N, x.D, x.w, x.U, x.x, x.y, x.wi, x.wj, x.out, fr] μ
(Light.Sec4.tOffline32P Light.Sec4.cShared30 G x.N x.D x.w)
(fun r μ' => Light.lopCountTask.Post x μ fr r μ') := by sorrySource
Generic resource and execution assembly from the accepted pruned program source. Uses actual Hyp30 below/top bounds and the proved generic program correctness interface; no fixed numerical parameter specialization is assumed.