MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.IntegerWidths

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.operation_bound (M : ℕ) (v : Values) (hv : ∀ (r : ℕ), v r ≤ M) (op : Operation) :
    Operation.eval v op ≤ (M + 1) ^ 2
    theorem MindFormal.A695LogicPaper.IntegerProgram.command_bound (M : ℕ) (v : Values) (hv : ∀ (r : ℕ), v r ≤ M) (c : Command) (r : ℕ) :
    Command.eval v c r ≤ (M + 1) ^ 2
    theorem MindFormal.A695LogicPaper.IntegerProgram.evaluate_bound (M : ℕ) (v : Values) (hv : ∀ (r : ℕ), v r ≤ M) (cs : List Command) (r : ℕ) :
    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.