Bit words within a fixed workspace budget #
Budget-preserving fun_prop rules for words of bits held in registers: a test of every bit, the
binary counter Cslib.BitString.increment, the word that repeats a bit to a width given in unary,
the value of a word, concatenation and a unary number in binary. Each costs space linear in its
arguments, which the caller's certificates already pay for, so a body of
Turing.MultiTapeTM.ComputableInSpace.loopWith or
Turing.MultiTapeTM.ComputableInSpace.recWith that steps a counter or compares stored words is
composed by space without a hand-written certificate. Stored words are compared by
Turing.MultiTapeTM.ComputableInSpace.budget_decideEq.
Main results #
Turing.MultiTapeTM.ComputableInSpace.budget_bitsAll,Turing.MultiTapeTM.ComputableInSpace.budget_bitsIncrement: a test of every bit, such as the overflow test, and the successor of a binary counter.Turing.MultiTapeTM.ComputableInSpace.budget_bitsReplicate: the word that repeats a bit, such as the words of zeros and of ones.Turing.MultiTapeTM.ComputableInSpace.budget_ofBits: the value of a word.Turing.MultiTapeTM.ComputableInSpace.budget_bitsAppend,Turing.MultiTapeTM.ComputableInSpace.budget_unaryToNat: concatenation, and a unary number in binary.
Whether every bit of a word satisfies p, within the budget. With p := id this is the
overflow test of a binary counter.
The successor of a binary counter, least significant bit first, within the budget.
The word that repeats a fixed bit, of a width given in unary, within the budget.
The value of a word, least significant bit first, within the budget.
The concatenation of two words, within the budget.
A number given in unary, in binary, within the budget.