A deliberately loose input-size bound is enough to choose the word width before evaluating any optimizer or random input.
Equations
Instances For
theorem
MindFormal.A695LogicPaper.IntegerProgram.fits_of_bound
(M b : ℕ)
(v : Values)
(hv : ∀ (r : ℕ), v r ≤ M)
(cs : List Command)
(hw : growth M cs.length < 2 ^ (b + 1))
:
Fits b cs v
Every finite input-bounded program has an explicit sufficient word width. The size depends only on the input bound and instruction count.
Equations
Instances For
theorem
MindFormal.A695LogicPaper.IntegerProgram.sufficientWidth_fits
(M : ℕ)
(v : Values)
(hv : ∀ (r : ℕ), v r ≤ M)
(cs : List Command)
:
Fits (sufficientWidth M cs) cs v